Skip to content

Commit efb5b33

Browse files
Menglong Dongkuba-moo
authored andcommitted
net: bridge: fix misspellings using codespell tool
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 <[email protected]> Acked-by: Randy Dunlap <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 7e34984 commit efb5b33

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

net/bridge/br.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ static int br_device_event(struct notifier_block *unused, unsigned long event, v
122122
break;
123123

124124
case NETDEV_PRE_TYPE_CHANGE:
125-
/* Forbid underlaying device to change its type. */
125+
/* Forbid underlying device to change its type. */
126126
return NOTIFY_BAD;
127127

128128
case NETDEV_RESEND_IGMP:

net/bridge/br_input.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ static int br_pass_frame_up(struct sk_buff *skb)
4040

4141
vg = br_vlan_group_rcu(br);
4242
/* Bridge is just like any other port. Make sure the
43-
* packet is allowed except in promisc modue when someone
43+
* packet is allowed except in promisc mode when someone
4444
* may be running packet capture.
4545
*/
4646
if (!(brdev->flags & IFF_PROMISC) &&

net/bridge/br_mrp.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@ int br_mrp_start_in_test(struct net_bridge *br,
825825
return 0;
826826
}
827827

828-
/* Determin if the frame type is a ring frame */
828+
/* Determine if the frame type is a ring frame */
829829
static bool br_mrp_ring_frame(struct sk_buff *skb)
830830
{
831831
const struct br_mrp_tlv_hdr *hdr;
@@ -845,7 +845,7 @@ static bool br_mrp_ring_frame(struct sk_buff *skb)
845845
return false;
846846
}
847847

848-
/* Determin if the frame type is an interconnect frame */
848+
/* Determine if the frame type is an interconnect frame */
849849
static bool br_mrp_in_frame(struct sk_buff *skb)
850850
{
851851
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,
894894
br_mrp_ring_port_open(port->dev, false);
895895
}
896896

897-
/* Determin if the test hdr has a better priority than the node */
897+
/* Determine if the test hdr has a better priority than the node */
898898
static bool br_mrp_test_better_than_own(struct br_mrp *mrp,
899899
struct net_bridge *br,
900900
const struct br_mrp_ring_test_hdr *hdr)

net/bridge/br_stp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,8 +601,8 @@ int __set_ageing_time(struct net_device *dev, unsigned long t)
601601
/* Set time interval that dynamic forwarding entries live
602602
* For pure software bridge, allow values outside the 802.1
603603
* standard specification for special cases:
604-
* 0 - entry never ages (all permanant)
605-
* 1 - entry disappears (no persistance)
604+
* 0 - entry never ages (all permanent)
605+
* 1 - entry disappears (no persistence)
606606
*
607607
* Offloaded switch entries maybe more restrictive
608608
*/

0 commit comments

Comments
 (0)