aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser2022-05-31 11:43:45 +0200
committerJakub Kicinski2022-06-01 16:48:05 -0700
commit8d3398ba2a0d1e25690f830192b7834acab003ec (patch)
treea79520fd267739fbe698d76be143bbebecbf678d
parent86360030cc5117596626bef1d937277cd2bebe05 (diff)
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: 26859240e4ee ("txhash: Add socket option to control TX hash rethink behavior") Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Link: https://lore.kernel.org/r/20220531094345.13801-1-tklauser@distanz.ch Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r--include/uapi/linux/socket.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/uapi/linux/socket.h b/include/uapi/linux/socket.h
index 51d6bb2f6765..d3fcd3b5ec53 100644
--- a/include/uapi/linux/socket.h
+++ b/include/uapi/linux/socket.h
@@ -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