• Ido Schimmel's avatar
    bridge: vlan: Allow setting VLAN neighbor suppression state · 83f6d600
    Ido Schimmel authored
    Add a new VLAN attribute that allows user space to set the neighbor
    suppression state of the port VLAN. Example:
    
     # bridge -d -j -p vlan show dev swp1 vid 10 | jq '.[]["vlans"][]["neigh_suppress"]'
     false
     # bridge vlan set vid 10 dev swp1 neigh_suppress on
     # bridge -d -j -p vlan show dev swp1 vid 10 | jq '.[]["vlans"][]["neigh_suppress"]'
     true
     # bridge vlan set vid 10 dev swp1 neigh_suppress off
     # bridge -d -j -p vlan show dev swp1 vid 10 | jq '.[]["vlans"][]["neigh_suppress"]'
     false
    
     # bridge vlan set vid 10 dev br0 neigh_suppress on
     Error: bridge: Can't set neigh_suppress for non-port vlans.
    Signed-off-by: default avatarIdo Schimmel <idosch@nvidia.com>
    Acked-by: default avatarNikolay Aleksandrov <razor@blackwall.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    83f6d600
br_vlan.c 55.1 KB