public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] net: switchdev: fix duplicate word in documentation
@ 2026-05-02  6:07 Wang Zihan
  2026-05-02 11:24 ` Björn Persson
  0 siblings, 1 reply; 4+ messages in thread
From: Wang Zihan @ 2026-05-02  6:07 UTC (permalink / raw)
  To: kuba; +Cc: netdev, linux-doc, Wang Zihan

Remove duplicate "in" word.

Signed-off-by: Wang Zihan <jiyu03@qq.com>
---
 Documentation/networking/switchdev.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/networking/switchdev.rst b/Documentation/networking/switchdev.rst
index 2966b7122..948bce44c 100644
--- a/Documentation/networking/switchdev.rst
+++ b/Documentation/networking/switchdev.rst
@@ -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
-- 
2.54.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] net: switchdev: fix duplicate word in documentation
  2026-05-02  6:07 [PATCH v2] net: switchdev: fix duplicate word in documentation Wang Zihan
@ 2026-05-02 11:24 ` Björn Persson
  2026-05-02 14:09   ` Andrew Lunn
  0 siblings, 1 reply; 4+ messages in thread
From: Björn Persson @ 2026-05-02 11:24 UTC (permalink / raw)
  To: Wang Zihan; +Cc: netdev, linux-doc, kuba

[-- Attachment #1: Type: text/plain, Size: 879 bytes --]

Wang Zihan wrote:
> @@ -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

This change claims that a port is a position. The preceding sentences,
talking about "a particular port's position" and a port being moved,
make it clear that a port is *in* a position *in* the topology. The
port is not itself a position.

Björn Persson

[-- Attachment #2: OpenPGP digital signatur --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] net: switchdev: fix duplicate word in documentation
  2026-05-02 11:24 ` Björn Persson
@ 2026-05-02 14:09   ` Andrew Lunn
  2026-05-02 14:32     ` Jonas Gorski
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Lunn @ 2026-05-02 14:09 UTC (permalink / raw)
  To: Björn Persson; +Cc: Wang Zihan, netdev, linux-doc, kuba

On Sat, May 02, 2026 at 01:24:46PM +0200, Björn Persson wrote:
> Wang Zihan wrote:
> > @@ -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
> 
> This change claims that a port is a position. The preceding sentences,
> talking about "a particular port's position" and a port being moved,
> make it clear that a port is *in* a position *in* the topology. The
> port is not itself a position.

I assume this is a fix to make a bot happy, without actually checking
if the bot is correct.

Maybe to prevent a recurrence of the bot driver not validating the bot
output, a ',' should be added?

    Andrew

---
pw-bot: cr

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] net: switchdev: fix duplicate word in documentation
  2026-05-02 14:09   ` Andrew Lunn
@ 2026-05-02 14:32     ` Jonas Gorski
  0 siblings, 0 replies; 4+ messages in thread
From: Jonas Gorski @ 2026-05-02 14:32 UTC (permalink / raw)
  To: Andrew Lunn, Björn Persson; +Cc: Wang Zihan, netdev, linux-doc, kuba

On 02/05/2026 16:09, Andrew Lunn wrote:
> On Sat, May 02, 2026 at 01:24:46PM +0200, Björn Persson wrote:
>> Wang Zihan wrote:
>>> @@ -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
>>
>> This change claims that a port is a position. The preceding sentences,
>> talking about "a particular port's position" and a port being moved,
>> make it clear that a port is *in* a position *in* the topology. The
>> port is not itself a position.
> 
> I assume this is a fix to make a bot happy, without actually checking
> if the bot is correct.
> 
> Maybe to prevent a recurrence of the bot driver not validating the bot
> output, a ',' should be added?

I'm not a native speaker, but I think moving the first "in" would also
work:

"... to know in what position a port is in the overall topology ..."

Best regards,
Jonas

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-05-02 14:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-02  6:07 [PATCH v2] net: switchdev: fix duplicate word in documentation Wang Zihan
2026-05-02 11:24 ` Björn Persson
2026-05-02 14:09   ` Andrew Lunn
2026-05-02 14:32     ` Jonas Gorski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox