]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
net: bridge: fix misspellings using codespell tool
authorMenglong Dong <dong.menglong@zte.com.cn>
Fri, 8 Jan 2021 02:53:32 +0000 (18:53 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 9 Jan 2021 21:54:47 +0000 (13:54 -0800)
Some typos are found out by codespell tool:

$ codespell ./net/bridge/
./net/bridge/br_stp.c:604: permanant  ==> permanent
./net/bridge/br_stp.c:605: persistance  ==> persistence
./net/bridge/br.c:125: underlaying  ==> underlying
./net/bridge/br_input.c:43: modue  ==> mode
./net/bridge/br_mrp.c:828: Determin  ==> Determine
./net/bridge/br_mrp.c:848: Determin  ==> Determine
./net/bridge/br_mrp.c:897: Determin  ==> Determine

Fix typos found by codespell.

Signed-off-by: Menglong Dong <dong.menglong@zte.com.cn>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Link: https://lore.kernel.org/r/20210108025332.52480-1-dong.menglong@zte.com.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/bridge/br.c
net/bridge/br_input.c
net/bridge/br_mrp.c
net/bridge/br_stp.c

index 1b169f8e7491943a57b6529a61219f6d69b494ef..ef743f94254d76362ba15f60bccddd57e3fb6798 100644 (file)
@@ -122,7 +122,7 @@ static int br_device_event(struct notifier_block *unused, unsigned long event, v
                break;
 
        case NETDEV_PRE_TYPE_CHANGE:
-               /* Forbid underlaying device to change its type. */
+               /* Forbid underlying device to change its type. */
                return NOTIFY_BAD;
 
        case NETDEV_RESEND_IGMP:
index 8ca1f1bc6d129976aafde135379b16054baccd16..222285d9dae29b6e0dfbefb4b287112187f006a4 100644 (file)
@@ -40,7 +40,7 @@ static int br_pass_frame_up(struct sk_buff *skb)
 
        vg = br_vlan_group_rcu(br);
        /* Bridge is just like any other port.  Make sure the
-        * packet is allowed except in promisc modue when someone
+        * packet is allowed except in promisc mode when someone
         * may be running packet capture.
         */
        if (!(brdev->flags & IFF_PROMISC) &&
index cec2c4e4561d06540a31a47ca6ae1a8f47c168b2..fc0a98874bfc7dae0af3d5d71a5ed83fb6e33a4e 100644 (file)
@@ -825,7 +825,7 @@ int br_mrp_start_in_test(struct net_bridge *br,
        return 0;
 }
 
-/* Determin if the frame type is a ring frame */
+/* Determine if the frame type is a ring frame */
 static bool br_mrp_ring_frame(struct sk_buff *skb)
 {
        const struct br_mrp_tlv_hdr *hdr;
@@ -845,7 +845,7 @@ static bool br_mrp_ring_frame(struct sk_buff *skb)
        return false;
 }
 
-/* Determin if the frame type is an interconnect frame */
+/* Determine if the frame type is an interconnect frame */
 static bool br_mrp_in_frame(struct sk_buff *skb)
 {
        const struct br_mrp_tlv_hdr *hdr;
@@ -894,7 +894,7 @@ static void br_mrp_mrm_process(struct br_mrp *mrp, struct net_bridge_port *port,
                br_mrp_ring_port_open(port->dev, false);
 }
 
-/* Determin if the test hdr has a better priority than the node */
+/* Determine if the test hdr has a better priority than the node */
 static bool br_mrp_test_better_than_own(struct br_mrp *mrp,
                                        struct net_bridge *br,
                                        const struct br_mrp_ring_test_hdr *hdr)
index 3e88be7aa2692d8e466cc4e5362c38c7756b469d..a3a5745660dd94ce9c4324b47dbc68c3b27cc87c 100644 (file)
@@ -601,8 +601,8 @@ int __set_ageing_time(struct net_device *dev, unsigned long t)
 /* Set time interval that dynamic forwarding entries live
  * For pure software bridge, allow values outside the 802.1
  * standard specification for special cases:
- *  0 - entry never ages (all permanant)
- *  1 - entry disappears (no persistance)
+ *  0 - entry never ages (all permanent)
+ *  1 - entry disappears (no persistence)
  *
  * Offloaded switch entries maybe more restrictive
  */