Skip to contentSkip to conversation

docs: net: Fix text in eth/intel, mlx5 and switchdev docs

PATCH In review Abhinav Saxena 2 participants 3 messages Nov 8, 2024 – Nov 12, 2024

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

PATCH 1/2 docs: net: Fix text in eth/intel, mlx5 and switchdev docs

Fix various issues across networking documentation: remove duplicate word in drivers/ethernet/intel/iavf, fix quote formatting in mlx5/counters, correct typo in rds.rst and improve wording in switchdev topology doc. These changes are purely documentation cleanup.

---
 Documentation/networking/device_drivers/ethernet/intel/iavf.rst | 2 +-
 .../device_drivers/ethernet/mellanox/mlx5/counters.rst          | 2 +-
 Documentation/networking/rds.rst                                | 2 +-
 Documentation/networking/switchdev.rst                          | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
Documentation/networking/device_drivers/ethernet/intel/iavf.rst +1 -1
index eb926c3bd4cd..73ce04c05071 100644
@@ -171,7 +171,7 @@ queues: for each tc, <num queues>@<offset> (e.g. queues 16@0 16@16 assigns
 16 queues to tc0 at offset 0 and 16 queues to tc1 at offset 16. Max total
 number of queues for all tcs is 64 or number of cores, whichever is lower.)
 
-hw 1 mode channel: ‘channel’ with ‘hw’ set to 1 is a new new hardware
+hw 1 mode channel: 'channel' with 'hw' set to 1 is a new hardware
 offload mode in mqprio that makes full use of the mqprio options, the
 TCs, the queue configurations, and the QoS parameters.
 
Documentation/networking/device_drivers/ethernet/mellanox/mlx5/counters.rst +1 -1
index 99d95be4d159..b23f36a2d28c 100644
@@ -1135,7 +1135,7 @@ like flow control, FEC and more.
      - Informative
 
    * - `rx_pcs_symbol_err_phy`
-     - This counter counts the number of symbol errors that wasn’t corrected by
+     - This counter counts the number of symbol errors that wasn't corrected by
        FEC correction algorithm or that FEC algorithm was not active on this
        interface. If this counter is increasing, it implies that the link
        between the NIC and the network is suffering from high BER, and that
Documentation/networking/rds.rst +1 -1
index 498395f5fbcb..955afe0567aa 100644
@@ -339,7 +339,7 @@ The send path
   rds_sendmsg()
     - struct rds_message built from incoming data
     - CMSGs parsed (e.g. RDMA ops)
-    - transport connection alloced and connected if not already
+    - transport connection allocated and connected if not already
     - rds_message placed on send queue
     - send worker awoken
 
Documentation/networking/switchdev.rst +1 -1
index f355f0166f1b..df4b4c4a15d5 100644
@@ -162,7 +162,7 @@ The switchdev driver can know a particular port's position in the topology by
 monitoring NETDEV_CHANGEUPPER notifications.  For example, a port moved into a
 bond will see its upper master change.  If that bond is moved into a bridge,
 the bond's upper master will change.  And so on.  The driver will track such
-movements to know what position a port is in in the overall topology by
+movements to know what position a port is in the overall topology by
 registering for netdevice events and acting on NETDEV_CHANGEUPPER.
 
 L2 Forwarding Offload
Signature · 1 line
2.34.1
#1 lore raw

PATCH 2/2 docs: net: Fix sfp-phylink whitespace

Remove trailing whitespace from sfp-phylink.rst documentation. Trailing whitespace can cause diff formatting issues and violate kernel coding style guidelines. This is a trivial cleanup with no content changes.

---
 Documentation/networking/sfp-phylink.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/networking/sfp-phylink.rst +2 -2
index 5bf285d73e8a..4ce46aef6568 100644
@@ -142,7 +142,7 @@ this documentation.
 						  const struct ethtool_link_ksettings *cmd)
 	{
 		struct foo_priv *priv = netdev_priv(dev);
-	
+
 		return phylink_ethtool_ksettings_set(priv->phylink, cmd);
 	}
 
@@ -150,7 +150,7 @@ this documentation.
 						  struct ethtool_link_ksettings *cmd)
 	{
 		struct foo_priv *priv = netdev_priv(dev);
-	
+
 		return phylink_ethtool_ksettings_get(priv->phylink, cmd);
 	}
 
Signature · 1 line
2.34.1
maintainer
#2 lore raw
In reply to Abhinav Saxena

Documentation/networking/switchdev.rst The switchdev driver can know a particular port's position in the topology by · line 165

Quoted 10 lines · On Fri, 8 Nov 2024 13:25:47 -0700 Abhinav Saxena wrote:
Documentation/networking/switchdev.rst +1 -1
index f355f0166f1b..df4b4c4a15d5 100644
@@ -162,7 +162,7 @@ The switchdev driver can know a particular port's position in the topology by
 monitoring NETDEV_CHANGEUPPER notifications.  For example, a port moved into a
 bond will see its upper master change.  If that bond is moved into a bridge,
 the bond's upper master will change.  And so on.  The driver will track such
-movements to know what position a port is in in the overall topology by
+movements to know what position a port is in the overall topology by

Are you sure? The first 'in' is for position, the second for topology. Equivalent to:

movements to know in what position a port is in the overall topology by
^^ ^^

We can rephrase to avoid the double in:

The driver will track such movements to know the position of a port within the overall topology by registering for netdevice events and acting on NETDEV_CHANGEUPPER.

Quoted 1 line
Documentation/networking/switchdev.rst +0 -0
 registering for netdevice events and acting on NETDEV_CHANGEUPPER.
Signature · 1 line
pw-bot: cr