Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch 'net-header-and-core-spelling-corrections'

Simon Horman says:

====================
net: header and core spelling corrections

This patchset addresses a number of spelling errors in comments in
Networking files under include/, and files in net/core/. Spelling
problems are as flagged by codespell.

It aims to provide patches that can be accepted directly into net-next.
And splits patches up based on maintainer boundaries: many things
feed directly into net-next. This is a complex process and I apologise
for any errors.

I also plan to address, via separate patches, spelling errors in other
files in the same directories, for files whose changes typically go
through trees other than net-next (which feed into net-next).
====================

Link: https://patch.msgid.link/20240822-net-spell-v1-0-3a98971ce2d2@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

+93 -89
+1 -1
include/linux/etherdevice.h
··· 645 645 } 646 646 647 647 /** 648 - * eth_skb_pad - Pad buffer to mininum number of octets for Ethernet frame 648 + * eth_skb_pad - Pad buffer to minimum number of octets for Ethernet frame 649 649 * @skb: Buffer to pad 650 650 * 651 651 * An Ethernet frame should have a minimum size of 60 bytes. This function
+1 -1
include/linux/if_rmnet.h
··· 42 42 43 43 /* csum_info field: 44 44 * OFFSET: where (offset in bytes) to insert computed checksum 45 - * UDP: 1 = UDP checksum (zero checkum means no checksum) 45 + * UDP: 1 = UDP checksum (zero checksum means no checksum) 46 46 * ENABLED: 1 = checksum computation requested 47 47 */ 48 48 #define MAP_CSUM_UL_OFFSET_MASK GENMASK(13, 0)
+4 -4
include/linux/netdevice.h
··· 1237 1237 * int (*ndo_fdb_del)(struct ndmsg *ndm, struct nlattr *tb[], 1238 1238 * struct net_device *dev, 1239 1239 * const unsigned char *addr, u16 vid) 1240 - * Deletes the FDB entry from dev coresponding to addr. 1240 + * Deletes the FDB entry from dev corresponding to addr. 1241 1241 * int (*ndo_fdb_del_bulk)(struct nlmsghdr *nlh, struct net_device *dev, 1242 1242 * struct netlink_ext_ack *extack); 1243 1243 * int (*ndo_fdb_dump)(struct sk_buff *skb, struct netlink_callback *cb, ··· 3514 3514 dql_completed(&dev_queue->dql, bytes); 3515 3515 3516 3516 /* 3517 - * Without the memory barrier there is a small possiblity that 3517 + * Without the memory barrier there is a small possibility that 3518 3518 * netdev_tx_sent_queue will miss the update and cause the queue to 3519 3519 * be stopped forever 3520 3520 */ ··· 4583 4583 void dev_uc_init(struct net_device *dev); 4584 4584 4585 4585 /** 4586 - * __dev_uc_sync - Synchonize device's unicast list 4586 + * __dev_uc_sync - Synchronize device's unicast list 4587 4587 * @dev: device to sync 4588 4588 * @sync: function to call if address should be added 4589 4589 * @unsync: function to call if address should be removed ··· 4627 4627 void dev_mc_init(struct net_device *dev); 4628 4628 4629 4629 /** 4630 - * __dev_mc_sync - Synchonize device's multicast list 4630 + * __dev_mc_sync - Synchronize device's multicast list 4631 4631 * @dev: device to sync 4632 4632 * @sync: function to call if address should be added 4633 4633 * @unsync: function to call if address should be removed
+1 -1
include/net/addrconf.h
··· 333 333 /** 334 334 * __in6_dev_stats_get - get inet6_dev pointer for stats 335 335 * @dev: network device 336 - * @skb: skb for original incoming interface if neeeded 336 + * @skb: skb for original incoming interface if needed 337 337 * 338 338 * Caller must hold rcu_read_lock or RTNL, because this function 339 339 * does not take a reference on the inet6_dev.
+4 -1
include/net/bond_3ad.h
··· 231 231 mux_states_t sm_mux_state; /* state machine mux state */ 232 232 u16 sm_mux_timer_counter; /* state machine mux timer counter */ 233 233 tx_states_t sm_tx_state; /* state machine tx state */ 234 - u16 sm_tx_timer_counter; /* state machine tx timer counter(allways on - enter to transmit state 3 time per second) */ 234 + u16 sm_tx_timer_counter; /* state machine tx timer counter 235 + * (always on - enter to transmit 236 + * state 3 time per second) 237 + */ 235 238 u16 sm_churn_actor_timer_counter; 236 239 u16 sm_churn_partner_timer_counter; 237 240 u32 churn_actor_count;
+1 -1
include/net/bond_alb.h
··· 53 53 54 54 55 55 struct tlb_client_info { 56 - struct slave *tx_slave; /* A pointer to slave used for transmiting 56 + struct slave *tx_slave; /* A pointer to slave used for transmitting 57 57 * packets to a Client that the Hash function 58 58 * gave this entry index. 59 59 */
+1 -1
include/net/busy_poll.h
··· 131 131 #endif 132 132 } 133 133 134 - /* used in the protocol hanlder to propagate the napi_id to the socket */ 134 + /* used in the protocol handler to propagate the napi_id to the socket */ 135 135 static inline void sk_mark_napi_id(struct sock *sk, const struct sk_buff *skb) 136 136 { 137 137 #ifdef CONFIG_NET_RX_BUSY_POLL
+2 -2
include/net/caif/caif_layer.h
··· 20 20 * @assert: expression to evaluate. 21 21 * 22 22 * This function will print a error message and a do WARN_ON if the 23 - * assertion failes. Normally this will do a stack up at the current location. 23 + * assertion fails. Normally this will do a stack up at the current location. 24 24 */ 25 25 #define caif_assert(assert) \ 26 26 do { \ ··· 116 116 * @dn: Pointer down to the layer below. 117 117 * @node: List node used when layer participate in a list. 118 118 * @receive: Packet receive function. 119 - * @transmit: Packet transmit funciton. 119 + * @transmit: Packet transmit function. 120 120 * @ctrlcmd: Used for control signalling upwards in the stack. 121 121 * @modemcmd: Used for control signaling downwards in the stack. 122 122 * @id: The identity of this layer
+1 -1
include/net/caif/cfpkt.h
··· 18 18 19 19 /* 20 20 * Destroy a CAIF Packet. 21 - * pkt Packet to be destoyed. 21 + * pkt Packet to be destroyed. 22 22 */ 23 23 void cfpkt_destroy(struct cfpkt *pkt); 24 24
+3 -3
include/net/dropreason-core.h
··· 155 155 /** @SKB_DROP_REASON_SOCKET_RCVBUFF: socket receive buff is full */ 156 156 SKB_DROP_REASON_SOCKET_RCVBUFF, 157 157 /** 158 - * @SKB_DROP_REASON_PROTO_MEM: proto memory limition, such as udp packet 159 - * drop out of udp_memory_allocated. 158 + * @SKB_DROP_REASON_PROTO_MEM: proto memory limitation, such as 159 + * udp packet drop out of udp_memory_allocated. 160 160 */ 161 161 SKB_DROP_REASON_PROTO_MEM, 162 162 /** ··· 217 217 */ 218 218 SKB_DROP_REASON_TCP_ZEROWINDOW, 219 219 /** 220 - * @SKB_DROP_REASON_TCP_OLD_DATA: the TCP data reveived is already 220 + * @SKB_DROP_REASON_TCP_OLD_DATA: the TCP data received is already 221 221 * received before (spurious retrans may happened), see 222 222 * LINUX_MIB_DELAYEDACKLOST 223 223 */
+1 -1
include/net/dst.h
··· 341 341 skb->dev = dev; 342 342 343 343 /* 344 - * Clear hash so that we can recalulate the hash for the 344 + * Clear hash so that we can recalculate the hash for the 345 345 * encapsulated packet, unless we have already determine the hash 346 346 * over the L4 4-tuple. 347 347 */
+1 -1
include/net/dst_cache.h
··· 102 102 * @dst_cache: the cache 103 103 * 104 104 * No synchronization is enforced: it must be called only when the cache 105 - * is unsed. 105 + * is unused. 106 106 */ 107 107 void dst_cache_destroy(struct dst_cache *dst_cache); 108 108
+2 -2
include/net/erspan.h
··· 89 89 ERSPAN_ENCAP_NOVLAN = 0x0, /* originally without VLAN tag */ 90 90 ERSPAN_ENCAP_ISL = 0x1, /* originally ISL encapsulated */ 91 91 ERSPAN_ENCAP_8021Q = 0x2, /* originally 802.1Q encapsulated */ 92 - ERSPAN_ENCAP_INFRAME = 0x3, /* VLAN tag perserved in frame */ 92 + ERSPAN_ENCAP_INFRAME = 0x3, /* VLAN tag preserved in frame */ 93 93 }; 94 94 95 95 #define ERSPAN_V1_MDSIZE 4 ··· 192 192 enc_type = ERSPAN_ENCAP_NOVLAN; 193 193 194 194 /* If mirrored packet has vlan tag, extract tci and 195 - * perserve vlan header in the mirrored frame. 195 + * preserve vlan header in the mirrored frame. 196 196 */ 197 197 if (eth->h_proto == htons(ETH_P_8021Q)) { 198 198 qp = (struct qtag_prefix *)(skb->data + 2 * ETH_ALEN);
+2 -2
include/net/hwbm.h
··· 11 11 int frag_size; 12 12 /* Number of buffers currently used by this pool */ 13 13 int buf_num; 14 - /* constructor called during alocation */ 14 + /* constructor called during allocation */ 15 15 int (*construct)(struct hwbm_pool *bm_pool, void *buf); 16 - /* protect acces to the buffer counter*/ 16 + /* protect access to the buffer counter*/ 17 17 struct mutex buf_lock; 18 18 /* private data */ 19 19 void *priv;
+1 -1
include/net/ip_tunnels.h
··· 573 573 return 0; 574 574 } 575 575 576 - /* Propogate ECN bits out */ 576 + /* Propagate ECN bits out */ 577 577 static inline u8 ip_tunnel_ecn_encap(u8 tos, const struct iphdr *iph, 578 578 const struct sk_buff *skb) 579 579 {
+2 -2
include/net/ipv6.h
··· 851 851 * we should *never* get to this point since that 852 852 * would mean the addrs are equal 853 853 * 854 - * However, we do get to it 8) And exacly, when 854 + * However, we do get to it 8) And exactly, when 855 855 * addresses are equal 8) 856 856 * 857 857 * ip route add 1111::/128 via ... ··· 973 973 hash = skb_get_hash_flowi6(skb, fl6); 974 974 975 975 /* Since this is being sent on the wire obfuscate hash a bit 976 - * to minimize possbility that any useful information to an 976 + * to minimize possibility that any useful information to an 977 977 * attacker is leaked. Only lower 20 bits are relevant. 978 978 */ 979 979 hash = rol32(hash, 16);
+1 -1
include/net/iucv/iucv.h
··· 15 15 * To explore any of the IUCV functions, one must first register their 16 16 * program using iucv_register(). Once your program has successfully 17 17 * completed a register, it can exploit the other functions. 18 - * For furthur reference on all IUCV functionality, refer to the 18 + * For further reference on all IUCV functionality, refer to the 19 19 * CP Programming Services book, also available on the web thru 20 20 * www.vm.ibm.com/pubs, manual # SC24-6084 21 21 *
+1 -1
include/net/llc_pdu.h
··· 254 254 } 255 255 256 256 /** 257 - * llc_pdu_decode_sa - extracs source address (MAC) of input frame 257 + * llc_pdu_decode_sa - extracts, source address (MAC) of input frame 258 258 * @skb: input skb that source address must be extracted from it. 259 259 * @sa: pointer to source address (6 byte array). 260 260 *
+1 -1
include/net/netlabel.h
··· 30 30 31 31 /* 32 32 * NetLabel - A management interface for maintaining network packet label 33 - * mapping tables for explicit packet labling protocols. 33 + * mapping tables for explicit packet labeling protocols. 34 34 * 35 35 * Network protocols such as CIPSO and RIPSO require a label translation layer 36 36 * to convert the label on the packet into something meaningful on the host
+8 -8
include/net/netlink.h
··· 827 827 /** 828 828 * nlmsg_find_attr - find a specific attribute in a netlink message 829 829 * @nlh: netlink message header 830 - * @hdrlen: length of familiy specific header 830 + * @hdrlen: length of family specific header 831 831 * @attrtype: type of attribute to look for 832 832 * 833 833 * Returns the first attribute which matches the specified type. ··· 849 849 * 850 850 * Validates all attributes in the specified attribute stream against the 851 851 * specified policy. Validation is done in liberal mode. 852 - * See documenation of struct nla_policy for more details. 852 + * See documentation of struct nla_policy for more details. 853 853 * 854 854 * Returns 0 on success or a negative error code. 855 855 */ ··· 872 872 * 873 873 * Validates all attributes in the specified attribute stream against the 874 874 * specified policy. Validation is done in strict mode. 875 - * See documenation of struct nla_policy for more details. 875 + * See documentation of struct nla_policy for more details. 876 876 * 877 877 * Returns 0 on success or a negative error code. 878 878 */ ··· 887 887 /** 888 888 * nlmsg_validate_deprecated - validate a netlink message including attributes 889 889 * @nlh: netlinket message header 890 - * @hdrlen: length of familiy specific header 890 + * @hdrlen: length of family specific header 891 891 * @maxtype: maximum attribute type to be expected 892 892 * @policy: validation policy 893 893 * @extack: extended ACK report struct ··· 933 933 * nlmsg_for_each_attr - iterate over a stream of attributes 934 934 * @pos: loop counter, set to current attribute 935 935 * @nlh: netlink message header 936 - * @hdrlen: length of familiy specific header 936 + * @hdrlen: length of family specific header 937 937 * @rem: initialized to len, holds bytes currently remaining in stream 938 938 */ 939 939 #define nlmsg_for_each_attr(pos, nlh, hdrlen, rem) \ ··· 1034 1034 * @skb: socket buffer the message is stored in 1035 1035 * @nlh: netlink message header 1036 1036 * 1037 - * Corrects the netlink message header to include the appeneded 1037 + * Corrects the netlink message header to include the appended 1038 1038 * attributes. Only necessary if attributes have been added to 1039 1039 * the message. 1040 1040 */ ··· 1954 1954 * @start: container attribute 1955 1955 * 1956 1956 * Corrects the container attribute header to include the all 1957 - * appeneded attributes. 1957 + * appended attributes. 1958 1958 * 1959 1959 * Returns the total data length of the skb. 1960 1960 */ ··· 1987 1987 * 1988 1988 * Validates all attributes in the nested attribute stream against the 1989 1989 * specified policy. Attributes with a type exceeding maxtype will be 1990 - * ignored. See documenation of struct nla_policy for more details. 1990 + * ignored. See documentation of struct nla_policy for more details. 1991 1991 * 1992 1992 * Returns 0 on success or a negative error code. 1993 1993 */
+2 -2
include/net/netns/sctp.h
··· 125 125 int pf_expose; 126 126 127 127 /* 128 - * Policy for preforming sctp/socket accounting 128 + * Policy for performing sctp/socket accounting 129 129 * 0 - do socket level accounting, all assocs share sk_sndbuf 130 130 * 1 - do sctp accounting, each asoc may use sk_sndbuf bytes 131 131 */ 132 132 int sndbuf_policy; 133 133 134 134 /* 135 - * Policy for preforming sctp/socket accounting 135 + * Policy for performing sctp/socket accounting 136 136 * 0 - do socket level accounting, all assocs share sk_rcvbuf 137 137 * 1 - do sctp accounting, each asoc may use sk_rcvbuf bytes 138 138 */
+1 -1
include/net/nfc/nci.h
··· 332 332 __le32 nfcc_features; 333 333 __u8 num_supported_rf_interfaces; 334 334 __u8 supported_rf_interfaces[]; /* variable size array */ 335 - /* continuted in nci_core_init_rsp_2 */ 335 + /* continued in nci_core_init_rsp_2 */ 336 336 } __packed; 337 337 338 338 struct nci_core_init_rsp_2 {
+4 -4
include/net/nfc/nfc.h
··· 80 80 #define NFC_ATR_REQ_GT_OFFSET 14 81 81 82 82 /** 83 - * struct nfc_target - NFC target descriptiom 83 + * struct nfc_target - NFC target description 84 84 * 85 85 * @sens_res: 2 bytes describing the target SENS_RES response, if the target 86 86 * is a type A one. The %sens_res most significant byte must be byte 2 ··· 230 230 } 231 231 232 232 /** 233 - * nfc_set_drvdata - set driver specifc data 233 + * nfc_set_drvdata - set driver specific data 234 234 * 235 235 * @dev: The nfc device 236 - * @data: Pointer to driver specifc data 236 + * @data: Pointer to driver specific data 237 237 */ 238 238 static inline void nfc_set_drvdata(struct nfc_dev *dev, void *data) 239 239 { ··· 241 241 } 242 242 243 243 /** 244 - * nfc_get_drvdata - get driver specifc data 244 + * nfc_get_drvdata - get driver specific data 245 245 * 246 246 * @dev: The nfc device 247 247 */
+1 -1
include/net/pkt_cls.h
··· 491 491 struct tcf_pkt_info *); 492 492 493 493 /** 494 - * tcf_em_tree_match - evaulate an ematch tree 494 + * tcf_em_tree_match - evaluate an ematch tree 495 495 * 496 496 * @skb: socket buffer of the packet in question 497 497 * @tree: ematch tree to be used for evaluation
+4 -4
include/net/red.h
··· 40 40 max_P should be small (not 1), usually 0.01..0.02 is good value. 41 41 42 42 max_P is chosen as a number, so that max_P/(th_max-th_min) 43 - is a negative power of two in order arithmetics to contain 43 + is a negative power of two in order arithmetic to contain 44 44 only shifts. 45 45 46 46 ··· 159 159 static inline void red_set_vars(struct red_vars *v) 160 160 { 161 161 /* Reset average queue length, the value is strictly bound 162 - * to the parameters below, reseting hurts a bit but leaving 162 + * to the parameters below, resetting hurts a bit but leaving 163 163 * it might result in an unreasonable qavg for a while. --TGR 164 164 */ 165 165 v->qavg = 0; ··· 340 340 { 341 341 /* 342 342 * NOTE: v->qavg is fixed point number with point at Wlog. 343 - * The formula below is equvalent to floating point 343 + * The formula below is equivalent to floating point 344 344 * version: 345 345 * 346 346 * qavg = qavg*(1-W) + backlog*W; ··· 375 375 OK. qR is random number in the interval 376 376 (0..1/max_P)*(qth_max-qth_min) 377 377 i.e. 0..(2^Plog). If we used floating point 378 - arithmetics, it would be: (2^Plog)*rnd_num, 378 + arithmetic, it would be: (2^Plog)*rnd_num, 379 379 where rnd_num is less 1. 380 380 381 381 Taking into account, that qavg have fixed
+1 -1
include/net/regulatory.h
··· 121 121 * @REGULATORY_DISABLE_BEACON_HINTS: enable this if your driver needs to 122 122 * ensure that passive scan flags and beaconing flags may not be lifted by 123 123 * cfg80211 due to regulatory beacon hints. For more information on beacon 124 - * hints read the documenation for regulatory_hint_found_beacon() 124 + * hints read the documentation for regulatory_hint_found_beacon() 125 125 * @REGULATORY_COUNTRY_IE_FOLLOW_POWER: for devices that have a preference 126 126 * that even though they may have programmed their own custom power 127 127 * setting prior to wiphy registration, they want to ensure their channel
+1 -1
include/net/sctp/sctp.h
··· 28 28 #define __net_sctp_h__ 29 29 30 30 /* Header Strategy. 31 - * Start getting some control over the header file depencies: 31 + * Start getting some control over the header file dependencies: 32 32 * includes 33 33 * constants 34 34 * structs
+10 -10
include/net/sctp/structs.h
··· 521 521 refcount_t refcnt; 522 522 /* When is this message no longer interesting to the peer? */ 523 523 unsigned long expires_at; 524 - /* Did the messenge fail to send? */ 524 + /* Did the message fail to send? */ 525 525 int send_error; 526 526 u8 send_failed:1, 527 527 can_delay:1, /* should this message be Nagle delayed */ ··· 792 792 */ 793 793 hb_sent:1, 794 794 795 - /* Is the Path MTU update pending on this tranport */ 795 + /* Is the Path MTU update pending on this transport */ 796 796 pmtu_pending:1, 797 797 798 798 dst_pending_confirm:1, /* need to confirm neighbour */ ··· 1223 1223 }; 1224 1224 1225 1225 /* 1226 - * A common base class to bridge the implmentation view of a 1226 + * A common base class to bridge the implementation view of a 1227 1227 * socket (usually listening) endpoint versus an association's 1228 1228 * local endpoint. 1229 1229 * This common structure is useful for several purposes: ··· 1353 1353 struct rcu_head rcu; 1354 1354 }; 1355 1355 1356 - /* Recover the outter endpoint structure. */ 1356 + /* Recover the outer endpoint structure. */ 1357 1357 static inline struct sctp_endpoint *sctp_ep(struct sctp_ep_common *base) 1358 1358 { 1359 1359 struct sctp_endpoint *ep; ··· 1906 1906 __u32 rwnd_over; 1907 1907 1908 1908 /* Keeps treack of rwnd pressure. This happens when we have 1909 - * a window, but not recevie buffer (i.e small packets). This one 1909 + * a window, but not receive buffer (i.e small packets). This one 1910 1910 * is releases slowly (1 PMTU at a time ). 1911 1911 */ 1912 1912 __u32 rwnd_press; ··· 1994 1994 1995 1995 /* ADDIP Section 5.2 Upon reception of an ASCONF Chunk. 1996 1996 * 1997 - * This is needed to implement itmes E1 - E4 of the updated 1997 + * This is needed to implement items E1 - E4 of the updated 1998 1998 * spec. Here is the justification: 1999 1999 * 2000 2000 * Since the peer may bundle multiple ASCONF chunks toward us, ··· 2005 2005 2006 2006 /* These ASCONF chunks are waiting to be sent. 2007 2007 * 2008 - * These chunaks can't be pushed to outqueue until receiving 2008 + * These chunks can't be pushed to outqueue until receiving 2009 2009 * ASCONF_ACK for the previous ASCONF indicated by 2010 2010 * addip_last_asconf, so as to guarantee that only one ASCONF 2011 2011 * is in flight at any time. ··· 2059 2059 struct sctp_transport *new_transport; 2060 2060 2061 2061 /* SCTP AUTH: list of the endpoint shared keys. These 2062 - * keys are provided out of band by the user applicaton 2062 + * keys are provided out of band by the user application 2063 2063 * and can't change during the lifetime of the association 2064 2064 */ 2065 2065 struct list_head endpoint_shared_keys; 2066 2066 2067 2067 /* SCTP AUTH: 2068 - * The current generated assocaition shared key (secret) 2068 + * The current generated association shared key (secret) 2069 2069 */ 2070 2070 struct sctp_auth_bytes *asoc_shared_key; 2071 2071 struct sctp_shared_key *shkey; ··· 2121 2121 SCTP_ASSOC_EYECATCHER = 0xa550c123, 2122 2122 }; 2123 2123 2124 - /* Recover the outter association structure. */ 2124 + /* Recover the outer association structure. */ 2125 2125 static inline struct sctp_association *sctp_assoc(struct sctp_ep_common *base) 2126 2126 { 2127 2127 struct sctp_association *asoc;
+2 -2
include/net/sock.h
··· 1624 1624 * lock_sock_fast - fast version of lock_sock 1625 1625 * @sk: socket 1626 1626 * 1627 - * This version should be used for very small section, where process wont block 1627 + * This version should be used for very small section, where process won't block 1628 1628 * return false if fast path is taken: 1629 1629 * 1630 1630 * sk_lock.slock locked, owned = 0, BH disabled ··· 2546 2546 2547 2547 /* Store sock_skb_cb at the end of skb->cb[] so protocol families 2548 2548 * using skb->cb[] would keep using it directly and utilize its 2549 - * alignement guarantee. 2549 + * alignment guarantee. 2550 2550 */ 2551 2551 #define SOCK_SKB_CB_OFFSET ((sizeof_field(struct sk_buff, cb) - \ 2552 2552 sizeof(struct sock_skb_cb)))
+1 -1
include/net/udp.h
··· 232 232 } 233 233 234 234 /* Since this is being sent on the wire obfuscate hash a bit 235 - * to minimize possbility that any useful information to an 235 + * to minimize possibility that any useful information to an 236 236 * attacker is leaked. Only upper 16 bits are relevant in the 237 237 * computation for 16 bit port value. 238 238 */
+1 -1
include/net/x25.h
··· 81 81 82 82 #define X25_DEFAULT_WINDOW_SIZE 2 /* Default Window Size */ 83 83 #define X25_DEFAULT_PACKET_SIZE X25_PS128 /* Default Packet Size */ 84 - #define X25_DEFAULT_THROUGHPUT 0x0A /* Deafult Throughput */ 84 + #define X25_DEFAULT_THROUGHPUT 0x0A /* Default Throughput */ 85 85 #define X25_DEFAULT_REVERSE 0x00 /* Default Reverse Charging */ 86 86 87 87 #define X25_SMODULUS 8
+4 -3
include/uapi/linux/if_packet.h
··· 230 230 * ts_first_pkt: 231 231 * Is always the time-stamp when the block was opened. 232 232 * Case a) ZERO packets 233 - * No packets to deal with but atleast you know the 234 - * time-interval of this block. 233 + * No packets to deal with but at least you know 234 + * the time-interval of this block. 235 235 * Case b) Non-zero packets 236 236 * Use the ts of the first packet in the block. 237 237 * ··· 265 265 - struct tpacket_hdr 266 266 - pad to TPACKET_ALIGNMENT=16 267 267 - struct sockaddr_ll 268 - - Gap, chosen so that packet data (Start+tp_net) alignes to TPACKET_ALIGNMENT=16 268 + - Gap, chosen so that packet data (Start+tp_net) aligns to 269 + TPACKET_ALIGNMENT=16 269 270 - Start+tp_mac: [ Optional MAC header ] 270 271 - Start+tp_net: Packet data, aligned to TPACKET_ALIGNMENT=16. 271 272 - Pad to align to TPACKET_ALIGNMENT=16
+1 -1
include/uapi/linux/in.h
··· 141 141 */ 142 142 #define IP_PMTUDISC_INTERFACE 4 143 143 /* weaker version of IP_PMTUDISC_INTERFACE, which allows packets to get 144 - * fragmented if they exeed the interface mtu 144 + * fragmented if they exceed the interface mtu 145 145 */ 146 146 #define IP_PMTUDISC_OMIT 5 147 147
+1 -1
include/uapi/linux/inet_diag.h
··· 143 143 INET_DIAG_SHUTDOWN, 144 144 145 145 /* 146 - * Next extenstions cannot be requested in struct inet_diag_req_v2: 146 + * Next extensions cannot be requested in struct inet_diag_req_v2: 147 147 * its field idiag_ext has only 8 bits. 148 148 */ 149 149
+3 -3
net/core/dev.c
··· 3707 3707 next = skb->next; 3708 3708 skb_mark_not_on_list(skb); 3709 3709 3710 - /* in case skb wont be segmented, point to itself */ 3710 + /* in case skb won't be segmented, point to itself */ 3711 3711 skb->prev = skb; 3712 3712 3713 3713 skb = validate_xmit_skb(skb, dev, again); ··· 11432 11432 * @head: list of devices 11433 11433 * 11434 11434 * Note: As most callers use a stack allocated list_head, 11435 - * we force a list_del() to make sure stack wont be corrupted later. 11435 + * we force a list_del() to make sure stack won't be corrupted later. 11436 11436 */ 11437 11437 void unregister_netdevice_many(struct list_head *head) 11438 11438 { ··· 11490 11490 if (dev->features & NETIF_F_NETNS_LOCAL) 11491 11491 goto out; 11492 11492 11493 - /* Ensure the device has been registrered */ 11493 + /* Ensure the device has been registered */ 11494 11494 if (dev->reg_state != NETREG_REGISTERED) 11495 11495 goto out; 11496 11496
+3 -3
net/core/dev_addr_lists.c
··· 262 262 } 263 263 264 264 /* This function only works where there is a strict 1-1 relationship 265 - * between source and destionation of they synch. If you ever need to 265 + * between source and destination of they synch. If you ever need to 266 266 * sync addresses to more then 1 destination, you need to use 267 267 * __hw_addr_sync_multiple(). 268 268 */ ··· 299 299 EXPORT_SYMBOL(__hw_addr_unsync); 300 300 301 301 /** 302 - * __hw_addr_sync_dev - Synchonize device's multicast list 303 - * @list: address list to syncronize 302 + * __hw_addr_sync_dev - Synchronize device's multicast list 303 + * @list: address list to synchronize 304 304 * @dev: device to sync 305 305 * @sync: function to call if address should be added 306 306 * @unsync: function to call if address should be removed
+1 -1
net/core/fib_rules.c
··· 72 72 r->suppress_prefixlen = -1; 73 73 r->suppress_ifgroup = -1; 74 74 75 - /* The lock is not required here, the list in unreacheable 75 + /* The lock is not required here, the list in unreachable 76 76 * at the moment this function is called */ 77 77 list_add_tail(&r->list, &ops->rules_list); 78 78 return 0;
+1 -1
net/core/gro.c
··· 374 374 skb_mac_header(skb), 375 375 maclen); 376 376 377 - /* in most common scenarions 'slow_gro' is 0 377 + /* in most common scenarios 'slow_gro' is 0 378 378 * otherwise we are already on some slower paths 379 379 * either skip all the infrequent tests altogether or 380 380 * avoid trying too hard to skip each of them individually
+1 -1
net/core/netpoll.c
··· 162 162 if (test_and_set_bit(NAPI_STATE_NPSVC, &napi->state)) 163 163 return; 164 164 165 - /* We explicilty pass the polling call a budget of 0 to 165 + /* We explicitly pass the polling call a budget of 0 to 166 166 * indicate that we are clearing the Tx path only. 167 167 */ 168 168 work = napi->poll(napi, 0);
+5 -5
net/core/pktgen.c
··· 69 69 * 70 70 * By design there should only be *one* "controlling" process. In practice 71 71 * multiple write accesses gives unpredictable result. Understood by "write" 72 - * to /proc gives result code thats should be read be the "writer". 72 + * to /proc gives result code that should be read be the "writer". 73 73 * For practical use this should be no problem. 74 74 * 75 75 * Note when adding devices to a specific CPU there good idea to also assign ··· 2371 2371 2372 2372 if (pkt_dev->spi) { 2373 2373 /* We need as quick as possible to find the right SA 2374 - * Searching with minimum criteria to archieve this. 2374 + * Searching with minimum criteria to achieve, this. 2375 2375 */ 2376 2376 x = xfrm_state_lookup_byspi(pn->net, htonl(pkt_dev->spi), AF_INET); 2377 2377 } else { 2378 - /* slow path: we dont already have xfrm_state */ 2378 + /* slow path: we don't already have xfrm_state */ 2379 2379 x = xfrm_stateonly_find(pn->net, DUMMY_MARK, 0, 2380 2380 (xfrm_address_t *)&pkt_dev->cur_daddr, 2381 2381 (xfrm_address_t *)&pkt_dev->cur_saddr, ··· 3838 3838 pkt_dev->ipsmode = XFRM_MODE_TRANSPORT; 3839 3839 pkt_dev->ipsproto = IPPROTO_ESP; 3840 3840 3841 - /* xfrm tunnel mode needs additional dst to extract outter 3842 - * ip header protocol/ttl/id field, here creat a phony one. 3841 + /* xfrm tunnel mode needs additional dst to extract outer 3842 + * ip header protocol/ttl/id field, here create a phony one. 3843 3843 * instead of looking for a valid rt, which definitely hurting 3844 3844 * performance under such circumstance. 3845 3845 */
+2 -2
net/core/skbuff.c
··· 5163 5163 * 3. sg_unmark_end 5164 5164 * 4. skb_to_sgvec(payload2) 5165 5165 * 5166 - * When mapping mutilple payload conditionally, skb_to_sgvec_nomark 5166 + * When mapping multiple payload conditionally, skb_to_sgvec_nomark 5167 5167 * is more preferable. 5168 5168 */ 5169 5169 int skb_to_sgvec_nomark(struct sk_buff *skb, struct scatterlist *sg, ··· 6021 6021 * @skb: buffer to clean 6022 6022 * @xnet: packet is crossing netns 6023 6023 * 6024 - * skb_scrub_packet can be used after encapsulating or decapsulting a packet 6024 + * skb_scrub_packet can be used after encapsulating or decapsulating a packet 6025 6025 * into/from a tunnel. Some information have to be cleared during these 6026 6026 * operations. 6027 6027 * skb_scrub_packet can also be used to clean a skb before injecting it in
+3 -3
net/core/sock.c
··· 2048 2048 2049 2049 /* 2050 2050 * Copy all fields from osk to nsk but nsk->sk_refcnt must not change yet, 2051 - * even temporarly, because of RCU lookups. sk_node should also be left as is. 2051 + * even temporarily, because of RCU lookups. sk_node should also be left as is. 2052 2052 * We must not copy fields between sk_dontcopy_begin and sk_dontcopy_end 2053 2053 */ 2054 2054 static void sock_copy(struct sock *nsk, const struct sock *osk) ··· 2538 2538 skb_set_hash_from_sk(skb, sk); 2539 2539 /* 2540 2540 * We used to take a refcount on sk, but following operation 2541 - * is enough to guarantee sk_free() wont free this sock until 2541 + * is enough to guarantee sk_free() won't free this sock until 2542 2542 * all in-flight packets are completed 2543 2543 */ 2544 2544 refcount_add(skb->truesize, &sk->sk_wmem_alloc); ··· 3697 3697 * 3698 3698 * FIX: POSIX 1003.1g is very ambiguous here. It states that 3699 3699 * asynchronous errors should be reported by getsockopt. We assume 3700 - * this means if you specify SO_ERROR (otherwise whats the point of it). 3700 + * this means if you specify SO_ERROR (otherwise what is the point of it). 3701 3701 */ 3702 3702 int sock_common_getsockopt(struct socket *sock, int level, int optname, 3703 3703 char __user *optval, int __user *optlen)
+1 -1
net/core/utils.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0-or-later 2 2 /* 3 - * Generic address resultion entity 3 + * Generic address resolution entity 4 4 * 5 5 * Authors: 6 6 * net_random Alan Cox