Skip to content

Commit bfdfa51

Browse files
rddunlapborkmann
authored andcommitted
bpf: Drop duplicated words in uapi helper comments
Drop doubled words "will" and "attach". Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/6b9f71ae-4f8e-0259-2c5d-187ddaefe6eb@infradead.org
1 parent e81e7a5 commit bfdfa51

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

  • include/uapi/linux
  • tools/include/uapi/linux

‎include/uapi/linux/bpf.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2420,7 +2420,7 @@ union bpf_attr {
24202420
* Look for an IPv6 socket.
24212421
*
24222422
* If the *netns* is a negative signed 32-bit integer, then the
2423-
* socket lookup table in the netns associated with the *ctx* will
2423+
* socket lookup table in the netns associated with the *ctx*
24242424
* will be used. For the TC hooks, this is the netns of the device
24252425
* in the skb. For socket hooks, this is the netns of the socket.
24262426
* If *netns* is any other signed 32-bit value greater than or
@@ -2457,7 +2457,7 @@ union bpf_attr {
24572457
* Look for an IPv6 socket.
24582458
*
24592459
* If the *netns* is a negative signed 32-bit integer, then the
2460-
* socket lookup table in the netns associated with the *ctx* will
2460+
* socket lookup table in the netns associated with the *ctx*
24612461
* will be used. For the TC hooks, this is the netns of the device
24622462
* in the skb. For socket hooks, this is the netns of the socket.
24632463
* If *netns* is any other signed 32-bit value greater than or
@@ -4000,7 +4000,7 @@ struct bpf_link_info {
40004000

40014001
/* User bpf_sock_addr struct to access socket fields and sockaddr struct passed
40024002
* by user and intended to be used by socket (e.g. to bind to, depends on
4003-
* attach attach type).
4003+
* attach type).
40044004
*/
40054005
struct bpf_sock_addr {
40064006
__u32 user_family; /* Allows 4-byte read, but no write. */

‎tools/include/uapi/linux/bpf.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2420,7 +2420,7 @@ union bpf_attr {
24202420
* Look for an IPv6 socket.
24212421
*
24222422
* If the *netns* is a negative signed 32-bit integer, then the
2423-
* socket lookup table in the netns associated with the *ctx* will
2423+
* socket lookup table in the netns associated with the *ctx*
24242424
* will be used. For the TC hooks, this is the netns of the device
24252425
* in the skb. For socket hooks, this is the netns of the socket.
24262426
* If *netns* is any other signed 32-bit value greater than or
@@ -2457,7 +2457,7 @@ union bpf_attr {
24572457
* Look for an IPv6 socket.
24582458
*
24592459
* If the *netns* is a negative signed 32-bit integer, then the
2460-
* socket lookup table in the netns associated with the *ctx* will
2460+
* socket lookup table in the netns associated with the *ctx*
24612461
* will be used. For the TC hooks, this is the netns of the device
24622462
* in the skb. For socket hooks, this is the netns of the socket.
24632463
* If *netns* is any other signed 32-bit value greater than or
@@ -4000,7 +4000,7 @@ struct bpf_link_info {
40004000

40014001
/* User bpf_sock_addr struct to access socket fields and sockaddr struct passed
40024002
* by user and intended to be used by socket (e.g. to bind to, depends on
4003-
* attach attach type).
4003+
* attach type).
40044004
*/
40054005
struct bpf_sock_addr {
40064006
__u32 user_family; /* Allows 4-byte read, but no write. */

0 commit comments

Comments
 (0)