switchdev; add VLAN support for port's bridge_getlink
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | switchdev: rename vlan vid_start to vid_begindrivers/ include/ net/ +1 more | +11 | 0 replies | |
| 2/2 | switchdev; add VLAN support for port's bridge_getlinkdrivers/ drivers/ drivers/ +4 more | +172 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH net-next 0/2] switchdev; add VLAN support for port's bridge_getlink
From: Scott Feldman <[email protected]>
One more missing piece of the puzzle. Add vlan dump support to switchdev port's bridge_getlink. iproute2 "bridge vlan show" cmd already knows how to show the vlans installed on the bridge and the device , but (until now) no one implemented the port vlan part of the netlink PF_BRIDGE:RTM_GETLINK msg. Before this patch, "bridge vlan show":
$ bridge -c vlan show port vlan ids sw1p1 30-34 << bridge side vlans 57
sw1p1 << device side vlans (missing) sw1p2 57 sw1p2 sw1p3 sw1p4 br0 None
(When the port is bridged, the output repeats the vlan list for the vlans on the bridge side of the port and the vlans on the device side of the port. The listing above show no vlans for the device side even though they are installed).
After this patch:
$ bridge -c vlan show port vlan ids sw1p1 30-34 << bridge side vlan 57
sw1p1 30-34 << device side vlans 57 3840 PVID sw1p2 57 sw1p2 57 3840 PVID sw1p3 3842 PVID sw1p4 3843 PVID br0 None
Scott Feldman (2):
switchdev: rename vlan vid_start to vid_begin switchdev; add VLAN support for port's bridge_getlink
drivers/net/ethernet/emulex/benet/be_main.c | 2 +- drivers/net/ethernet/intel/i40e/i40e_main.c | 4 +- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 3 +- drivers/net/ethernet/rocker/rocker.c | 29 +++++- include/linux/rtnetlink.h | 6 +- include/net/switchdev.h | 2 +- net/bridge/br_vlan.c | 4 +- net/core/rtnetlink.c | 18 +++- net/switchdev/switchdev.c | 135 +++++++++++++++++++++++-- 9 files changed, 183 insertions(+), 20 deletions(-)
Signature · 1 line
1.7.10.4