From: Scott Feldman <sfel...@gmail.com>

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(-)

-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe netdev" in

Reply via email to