]> Git Repo - J-linux.git/commitdiff
socket: Don't use u8 type in uapi socket.h
authorTobias Klauser <[email protected]>
Tue, 31 May 2022 09:43:45 +0000 (11:43 +0200)
committerJakub Kicinski <[email protected]>
Wed, 1 Jun 2022 23:48:05 +0000 (16:48 -0700)
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
include/uapi/linux/socket.h

index 51d6bb2f67656af7e3a124542a319c5eed92330b..d3fcd3b5ec53d2cd4f494c2f5bcc5ad7563575fb 100644 (file)
@@ -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
 
This page took 0.057687 seconds and 4 git commands to generate.