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

net: Correct spelling in headers

Correct spelling in Networking headers.
As reported by codespell.

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

authored by

Simon Horman and committed by
Jakub Kicinski
70d0bb45 01d86846

+36 -36
+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
+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.
+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/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 *
+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/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
+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/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