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.
Showing the changes to include/uapi (1 of 3 files). Show all
Unified · Split
| @@ -525,6 +525,7 @@ enum { · 524 unmodified lines | |||
| 525 | BRIDGE_VLANDB_ENTRY_MCAST_ROUTER, | 525 | BRIDGE_VLANDB_ENTRY_MCAST_ROUTER, |
| 526 | BRIDGE_VLANDB_ENTRY_MCAST_N_GROUPS, | 526 | BRIDGE_VLANDB_ENTRY_MCAST_N_GROUPS, |
| 527 | BRIDGE_VLANDB_ENTRY_MCAST_MAX_GROUPS, | 527 | BRIDGE_VLANDB_ENTRY_MCAST_MAX_GROUPS, |
| 528 | BRIDGE_VLANDB_ENTRY_NEIGH_SUPPRESS, | ||
| 528 | __BRIDGE_VLANDB_ENTRY_MAX, | 529 | __BRIDGE_VLANDB_ENTRY_MAX, |
| 529 | }; | 530 | }; |
| 530 | #define BRIDGE_VLANDB_ENTRY_MAX (__BRIDGE_VLANDB_ENTRY_MAX - 1) | 531 | #define BRIDGE_VLANDB_ENTRY_MAX (__BRIDGE_VLANDB_ENTRY_MAX - 1) |