]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
bridge: Allow setting per-{Port, VLAN} neighbor suppression state
authorIdo Schimmel <idosch@nvidia.com>
Wed, 19 Apr 2023 15:34:59 +0000 (18:34 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Apr 2023 07:25:50 +0000 (08:25 +0100)
commit160656d7201d861a1f2a0bf279a765e8cda2317a
tree7011496406c94efa5515e952c968c44528305756
parent83f6d600796c65ab34b08dbddb5795099dfda4d1
bridge: Allow setting per-{Port, VLAN} neighbor suppression state

Add a new bridge port attribute that allows user space to enable
per-{Port, VLAN} neighbor suppression. Example:

 # bridge -d -j -p link show dev swp1 | jq '.[]["neigh_vlan_suppress"]'
 false
 # bridge link set dev swp1 neigh_vlan_suppress on
 # bridge -d -j -p link show dev swp1 | jq '.[]["neigh_vlan_suppress"]'
 true
 # bridge link set dev swp1 neigh_vlan_suppress off
 # bridge -d -j -p link show dev swp1 | jq '.[]["neigh_vlan_suppress"]'
 false

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/if_link.h
net/bridge/br_netlink.c
net/core/rtnetlink.c