Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Tobias Klauser and committed by
Jakub Kicinski
8d3398ba 86360030

+1 -1
+1 -1
include/uapi/linux/socket.h
··· 31 31 32 32 #define SOCK_BUF_LOCK_MASK (SOCK_SNDBUF_LOCK | SOCK_RCVBUF_LOCK) 33 33 34 - #define SOCK_TXREHASH_DEFAULT ((u8)-1) 34 + #define SOCK_TXREHASH_DEFAULT 255 35 35 #define SOCK_TXREHASH_DISABLED 0 36 36 #define SOCK_TXREHASH_ENABLED 1 37 37