summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/cisco
diff options
context:
space:
mode:
authorPetr Machata <petrm@mellanox.com>2018-06-02 21:09:35 +0300
committerDavid S. Miller <davem@davemloft.net>2018-06-04 13:27:57 -0400
commit1fc68bb7c33fbef2216f361cfc23e41984a5edb1 (patch)
treee2810cab7050fd561b60637d945421b430681996 /drivers/net/ethernet/cisco
parentf07ff01406c4f67426cb6065d1a7b2c7f0434f5a (diff)
downloadblackbird-obmc-linux-1fc68bb7c33fbef2216f361cfc23e41984a5edb1.tar.gz
blackbird-obmc-linux-1fc68bb7c33fbef2216f361cfc23e41984a5edb1.zip
mlxsw: spectrum_span: Suppress VLAN on BRIDGE_VLAN_INFO_UNTAGGED
When offloading mirroring to gretap or ip6gretap netdevices, an 802.1q bridge is one of the soft devices permissible in the underlay when resolving the packet path. After the packet path is resolved to a particular bridge egress device, flags on packet VLAN determine whether the egressed packet should be tagged. The current logic however only ever sets the VLAN tag, never suppresses it. Thus if there's a VLAN netdevice above the bridge that determines the packet VLAN, that VLAN is never unset, and mirroring is configured with VLAN tagging. Fix by setting the packet VLAN on both branches: set to zero (for unset) when BRIDGE_VLAN_INFO_UNTAGGED, copy the resolved VLAN (e.g. from bridge PVID) otherwise. Fixes: 946a11e7408e ("mlxsw: spectrum_span: Allow bridge for gretap mirror") Signed-off-by: Petr Machata <petrm@mellanox.com> Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cisco')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud