diff mbox series

[v3] socket: Don't use u8 type in uapi socket.h

Message ID 20220531094345.13801-1-tklauser@distanz.ch (mailing list archive)
State Accepted
Commit 8d3398ba2a0d1e25690f830192b7834acab003ec
Headers show
Series [v3] socket: Don't use u8 type in uapi socket.h | expand

Checks

Context Check Description
netdev/tree_selection success Not a local patch, async

Commit Message

Tobias Klauser May 31, 2022, 9:43 a.m. UTC
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>
---
v3: changed to plain 255 as suggested by David Laight and Paolo Abeni

 include/uapi/linux/socket.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

patchwork-bot+netdevbpf@kernel.org June 2, 2022, 12:40 a.m. UTC | #1
Hello:

This patch was applied to netdev/net.git (master)
by Jakub Kicinski <kuba@kernel.org>:

On Tue, 31 May 2022 11:43:45 +0200 you wrote:
> 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>
> ---
> v3: changed to plain 255 as suggested by David Laight and Paolo Abeni
> 
> [...]

Here is the summary with links:
  - [v3] socket: Don't use u8 type in uapi socket.h
    https://git.kernel.org/netdev/net/c/8d3398ba2a0d

You are awesome, thank you!
diff mbox series

Patch

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