]> git.baikalelectronics.ru Git - kernel.git/commitdiff
socket: Don't use u8 type in uapi socket.h
authorTobias Klauser <tklauser@distanz.ch>
Tue, 31 May 2022 09:43:45 +0000 (11:43 +0200)
committerJakub Kicinski <kuba@kernel.org>
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 <tklauser@distanz.ch>
Link: https://lore.kernel.org/r/20220531094345.13801-1-tklauser@distanz.ch
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
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