Home
last modified time | relevance | path

Searched hist:"111495361598205967 f1be4e07d4726b0f762d60" (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/include/net/
H A Ddsa.hdiff 111495361598205967f1be4e07d4726b0f762d60 Thu Aug 13 11:52:17 CDT 2015 Vivien Didelot <vivien.didelot@savoirfairelinux.com> net: dsa: add support for switchdev VLAN objects

Add new functions in DSA drivers to access hardware VLAN entries through
SWITCHDEV_OBJ_PORT_VLAN objects:

- port_pvid_get() and vlan_getnext() to dump a VLAN
- port_vlan_del() to exclude a port from a VLAN
- port_pvid_set() and port_vlan_add() to join a port to a VLAN

The DSA infrastructure will ensure that each VLAN of the given range
does not already belong to another bridge. If it does, it will fallback
to software VLAN and won't program the hardware.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
/openbmc/linux/net/dsa/
H A Dslave.cdiff 111495361598205967f1be4e07d4726b0f762d60 Thu Aug 13 11:52:17 CDT 2015 Vivien Didelot <vivien.didelot@savoirfairelinux.com> net: dsa: add support for switchdev VLAN objects

Add new functions in DSA drivers to access hardware VLAN entries through
SWITCHDEV_OBJ_PORT_VLAN objects:

- port_pvid_get() and vlan_getnext() to dump a VLAN
- port_vlan_del() to exclude a port from a VLAN
- port_pvid_set() and port_vlan_add() to join a port to a VLAN

The DSA infrastructure will ensure that each VLAN of the given range
does not already belong to another bridge. If it does, it will fallback
to software VLAN and won't program the hardware.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>