Skip to content

Commit

Permalink
socket: Don't use u8 type in uapi socket.h
Browse files Browse the repository at this point in the history
Use plain 255 instead, which also avoid introducing an additional header
dependency on <linux/types.h>

Fixes: 2685924 ("txhash: Add socket option to control TX hash rethink behavior")
Signed-off-by: Tobias Klauser <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
  • Loading branch information
tklauser authored and kuba-moo committed Jun 1, 2022
1 parent 8636003 commit 8d3398b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/uapi/linux/socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ struct __kernel_sockaddr_storage {

#define SOCK_BUF_LOCK_MASK (SOCK_SNDBUF_LOCK | SOCK_RCVBUF_LOCK)

#define SOCK_TXREHASH_DEFAULT ((u8)-1)
#define SOCK_TXREHASH_DEFAULT 255
#define SOCK_TXREHASH_DISABLED 0
#define SOCK_TXREHASH_ENABLED 1

Expand Down

0 comments on commit 8d3398b

Please sign in to comment.