Skip to contentSkip to conversation

Documentation: dsa: misc fixes

PATCH In review Florian Fainelli 3 participants 6 messages May 25, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

v2 cover Documentation: dsa: misc fixes

Hi David,

Here are some miscelaneous documentation fixes for DSA, I targeted "net" because these are not functional code changes, but still documentation fixes per-se.

Changes in v2:

- reword what the port_vlan_filtering is about based on feedback from Vivien and Ido

Florian Fainelli (3):
Documentation: networking: dsa: Remove poll_link description
Documentation: networking: dsa: Remove priv_size description
Documentation: networking: dsa: Describe port_vlan_filtering

 Documentation/networking/dsa/dsa.txt | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)
Signature · 1 line
2.7.4
#1 lore raw

PATCH v2 1/3 Documentation: networking: dsa: Remove poll_link description

This function has been removed in 4baee937b8d5 ("net: dsa: remove DSA link polling") in favor of using the PHYLIB polling mechanism.

---
 Documentation/networking/dsa/dsa.txt | 5 -----
 1 file changed, 5 deletions(-)
Documentation/networking/dsa/dsa.txt +0 -5
index 631b0f7ae16f..8303eb8ced79 100644
@@ -416,11 +416,6 @@ PHY devices and link management
   to the switch port MDIO registers. If unavailable return a negative error
   code.
 
-- poll_link: Function invoked by DSA to query the link state of the switch
-  builtin Ethernet PHYs, per port. This function is responsible for calling
-  netif_carrier_{on,off} when appropriate, and can be used to poll all ports in a
-  single call. Executes from workqueue context.
-
 - adjust_link: Function invoked by the PHY library when a slave network device
   is attached to a PHY device. This function is responsible for appropriately
   configuring the switch port link parameters: speed, duplex, pause based on
Signature · 1 line
2.7.4
#2 lore raw

PATCH v2 2/3 Documentation: networking: dsa: Remove priv_size description

In reply to Florian Fainelli

We no longer have a priv_size structure member since 5feebd0a8a79 ("net:
dsa: Remove allocation of driver private memory")

---
 Documentation/networking/dsa/dsa.txt | 2 --
 1 file changed, 2 deletions(-)
Documentation/networking/dsa/dsa.txt +0 -2
index 8303eb8ced79..411b57fd73aa 100644
@@ -369,8 +369,6 @@ does not allocate any driver private context space.
 Switch configuration
 --------------------
 
-- priv_size: additional size needed by the switch driver for its private context
-
 - tag_protocol: this is to indicate what kind of tagging protocol is supported,
   should be a valid value from the dsa_tag_protocol enum
 
Signature · 1 line
2.7.4
#3 lore raw

PATCH v2 3/3 Documentation: networking: dsa: Describe port_vlan_filtering

In reply to Florian Fainelli

Described what the port_vlan_filtering function is supposed to accomplish.

Fixes fb2dabad69f0 ("net: dsa: support VLAN filtering switchdev attr")
---
 Documentation/networking/dsa/dsa.txt | 10 ++++++++++
 1 file changed, 10 insertions(+)
Documentation/networking/dsa/dsa.txt +10 -0
index 411b57fd73aa..9d05ed7f7da5 100644
@@ -535,6 +535,16 @@ Bridge layer
 Bridge VLAN filtering
 ---------------------
 
+- port_vlan_filtering: bridge layer function invoked when the bridge gets
+  configured for turning on or off VLAN filtering. If nothing specific needs to
+  be done at the hardware level, this callback does not need to be implemented.
+  When VLAN filtering is turned on, the hardware must be programmed with
+  rejecting 802.1Q frames which have VLAN IDs outside of the programmed allowed
+  VLAN ID map/rules.  If there is no PVID programmed into the switch port,
+  untagged frames must be rejected as well. When turned off the switch must
+  accept any 802.1Q frames irrespective of their VLAN ID, and untagged frames are
+  allowed.
+
 - port_vlan_prepare: bridge layer function invoked when the bridge prepares the
   configuration of a VLAN on the given port. If the operation is not supported
   by the hardware, this function should return -EOPNOTSUPP to inform the bridge
Signature · 1 line
2.7.4
maintainer
#5 lore raw
In reply to Florian Fainelli

From: Florian Fainelli <[email protected]>
Date: Tue, 24 May 2016 21:26:38 -0700

Quoted 7 lines

Here are some miscelaneous documentation fixes for DSA, I targeted "net" because these are not functional code changes, but still documentation fixes per-se.

Changes in v2:

- reword what the port_vlan_filtering is about based on feedback from Vivien and Ido

Series applied, thanks Florian.