Skip to content

Commit f05e2db

Browse files
ffainellidavem330
authored andcommitted
Documentation: networking: dsa: Describe port_vlan_filtering
Described what the port_vlan_filtering function is supposed to accomplish. Fixes: fb2daba ("net: dsa: support VLAN filtering switchdev attr") Signed-off-by: Florian Fainelli <[email protected]> Reviewed-by: Vivien Didelot <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 7013d8e commit f05e2db

File tree

1 file changed

+10
-0
lines changed
  • Documentation/networking/dsa

1 file changed

+10
-0
lines changed

Documentation/networking/dsa/dsa.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,16 @@ Bridge layer
535535
Bridge VLAN filtering
536536
---------------------
537537

538+
- port_vlan_filtering: bridge layer function invoked when the bridge gets
539+
configured for turning on or off VLAN filtering. If nothing specific needs to
540+
be done at the hardware level, this callback does not need to be implemented.
541+
When VLAN filtering is turned on, the hardware must be programmed with
542+
rejecting 802.1Q frames which have VLAN IDs outside of the programmed allowed
543+
VLAN ID map/rules. If there is no PVID programmed into the switch port,
544+
untagged frames must be rejected as well. When turned off the switch must
545+
accept any 802.1Q frames irrespective of their VLAN ID, and untagged frames are
546+
allowed.
547+
538548
- port_vlan_prepare: bridge layer function invoked when the bridge prepares the
539549
configuration of a VLAN on the given port. If the operation is not supported
540550
by the hardware, this function should return -EOPNOTSUPP to inform the bridge

0 commit comments

Comments
 (0)