Commit 8d3398ba authored by Tobias Klauser's avatar Tobias Klauser Committed by Jakub Kicinski

socket: Don't use u8 type in uapi socket.h

Use plain 255 instead, which also avoid introducing an additional header
dependency on <linux/types.h>

Fixes: 26859240 ("txhash: Add socket option to control TX hash rethink behavior")
Signed-off-by: default avatarTobias Klauser <tklauser@distanz.ch>
Link: https://lore.kernel.org/r/20220531094345.13801-1-tklauser@distanz.chSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 86360030
...@@ -31,7 +31,7 @@ struct __kernel_sockaddr_storage { ...@@ -31,7 +31,7 @@ struct __kernel_sockaddr_storage {
#define SOCK_BUF_LOCK_MASK (SOCK_SNDBUF_LOCK | SOCK_RCVBUF_LOCK) #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_DISABLED 0
#define SOCK_TXREHASH_ENABLED 1 #define SOCK_TXREHASH_ENABLED 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment