diff options
author | Ido Schimmel <idosch@mellanox.com> | 2018-11-28 20:07:04 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-30 17:06:29 -0800 |
commit | d70e42b22dd40a56ee44f451fb5a661ab88e4691 (patch) | |
tree | b75254c31fcc2f3af900592033731d972f95b46f /net/nfc/llcp_sock.c | |
parent | 48fde4660654d5bbaa09c2a38fa9ca7c72f1a95e (diff) |
mlxsw: spectrum: Enable VxLAN enslavement to VLAN-aware bridges
Commit 1c30d1836aeb ("mlxsw: spectrum: Enable VxLAN enslavement to
bridges") enabled the enslavement of VxLAN devices to bridges that have
mlxsw ports (or their upper) as slaves. This patch extends mlxsw to also
support VLAN-aware bridges.
The patch is similar in nature to mentioned commit, but there is one
major difference. With VLAN-aware bridges, the VxLAN device's VNI is
mapped to the VLAN that is configured as PVID and egress untagged on the
bridge port.
Therefore, the driver is extended to listen to VLAN configuration on
VxLAN devices of interest and enable / disable NVE encapsulation on the
corresponding 802.1Q FIDs.
To prevent ambiguity, the driver makes sure that a given VLAN is not
configured as PVID and egress untagged on multiple VxLAN devices. This
sanitization takes place both when a port is enslaved to a bridge with
existing VxLAN devices and when a VLAN is added to / removed from a
VxLAN device of interest.
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/nfc/llcp_sock.c')
0 files changed, 0 insertions, 0 deletions