projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8636003
)
socket: Don't use u8 type in uapi socket.h
author
Tobias Klauser
<tklauser@distanz.ch>
Tue, 31 May 2022 09:43:45 +0000
(11:43 +0200)
committer
Jakub 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
patch
|
blob
|
history
diff --git
a/include/uapi/linux/socket.h
b/include/uapi/linux/socket.h
index
51d6bb2
..
d3fcd3b
100644
(file)
--- 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