sr: fix srv6/srv6-ad/srv6-as promisc mode switch 56/28456/2
authorJohn Lo <loj@cisco.com>
Wed, 13 May 2020 05:38:12 +0000 (01:38 -0400)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Tue, 18 Aug 2020 19:47:21 +0000 (19:47 +0000)
commit8563b52376109608574fa0906082f76a0b973e50
treedaac9322368e1e67e7c7f3db9a9ca142429b00f8
parentec77742de79443dbdea84f08ca83d1f2d64edb09
sr: fix srv6/srv6-ad/srv6-as promisc mode switch

Calling ethernet_set_flags() to switch interface to/from promiscuous
mode must use use hw_if_index instead of sw_if_index.

Type: fix

Signed-off-by: John Lo <loj@cisco.com>
Change-Id: I72da286b913893227e32193ee11fbbc56e04804d
(cherry picked from commit 5b960c60f61c937d0f862be8a7573922b616de75)
src/plugins/srv6-ad/ad.c
src/plugins/srv6-as/as.c
src/vnet/srv6/sr_steering.c