Skip to contentSkip to conversation

inet: use #ifdef CONFIG_SOCK_RX_QUEUE_MAPPING consistently

PATCH Applied Eric Dumazet 4 participants 4 messages Dec 2, 2021 – Dec 3, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 inet: use #ifdef CONFIG_SOCK_RX_QUEUE_MAPPING consistently

From: Eric Dumazet <[email protected]>

Since commit 4e1beecc3b58 ("net/sock: Add kernel config SOCK_RX_QUEUE_MAPPING"),
sk_rx_queue_mapping access is guarded by CONFIG_SOCK_RX_QUEUE_MAPPING.

Fixes 54b92e841937 ("tcp: Migrate TCP_ESTABLISHED/TCP_SYN_RECV sockets in accept queues.")
Cc Kuniyuki Iwashima <[email protected]>
Cc Daniel Borkmann <[email protected]>
Cc Martin KaFai Lau <[email protected]>
Cc Tariq Toukan <[email protected]>
---
 net/ipv4/inet_connection_sock.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/ipv4/inet_connection_sock.c +1 -1
index f7fea3a7c5e64b92ca9c6b56293628923649e58c..62a67fdc344cd21505a84c905c1e2c05cc0ff866 100644
@@ -721,7 +721,7 @@ static struct request_sock *inet_reqsk_clone(struct request_sock *req,
 
 	sk_node_init(&nreq_sk->sk_node);
 	nreq_sk->sk_tx_queue_mapping = req_sk->sk_tx_queue_mapping;
-#ifdef CONFIG_XPS
+#ifdef CONFIG_SOCK_RX_QUEUE_MAPPING
 	nreq_sk->sk_rx_queue_mapping = req_sk->sk_rx_queue_mapping;
 #endif
 	nreq_sk->sk_incoming_cpu = req_sk->sk_incoming_cpu;
Signature · 1 line
2.34.1.400.ga245620fadb-goog
Acked-by on v1 1/1
#1 lore raw
From:   Eric Dumazet <[email protected]>
Date:   Thu,  2 Dec 2021 14:42:18 -0800
Quoted 6 lines

Since commit 4e1beecc3b58 ("net/sock: Add kernel config SOCK_RX_QUEUE_MAPPING"),
sk_rx_queue_mapping access is guarded by CONFIG_SOCK_RX_QUEUE_MAPPING.

Fixes 54b92e841937 ("tcp: Migrate TCP_ESTABLISHED/TCP_SYN_RECV sockets in accept queues.")

I missed the commit which was added while I was developing the SO_REUSEPORT series.

Thank you, Eric!

Quoted 23 lines
Cc Kuniyuki Iwashima <[email protected]>
Cc Daniel Borkmann <[email protected]>
Cc Martin KaFai Lau <[email protected]>
Cc Tariq Toukan <[email protected]>
---
 net/ipv4/inet_connection_sock.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/ipv4/inet_connection_sock.c +1 -1
index f7fea3a7c5e64b92ca9c6b56293628923649e58c..62a67fdc344cd21505a84c905c1e2c05cc0ff866 100644
@@ -721,7 +721,7 @@ static struct request_sock *inet_reqsk_clone(struct request_sock *req,
 
 	sk_node_init(&nreq_sk->sk_node);
 	nreq_sk->sk_tx_queue_mapping = req_sk->sk_tx_queue_mapping;
-#ifdef CONFIG_XPS
+#ifdef CONFIG_SOCK_RX_QUEUE_MAPPING
 	nreq_sk->sk_rx_queue_mapping = req_sk->sk_rx_queue_mapping;
 #endif
 	nreq_sk->sk_incoming_cpu = req_sk->sk_incoming_cpu;
Signature · 1 line
2.34.1.400.ga245620fadb-goog
Reviewed-by
#2 lore raw
Quoted 31 lines · Kuniyuki Iwashima
From:   Eric Dumazet <[email protected]>
Date:   Thu,  2 Dec 2021 14:42:18 -0800
Quoted 6 lines

Since commit 4e1beecc3b58 ("net/sock: Add kernel config SOCK_RX_QUEUE_MAPPING"),
sk_rx_queue_mapping access is guarded by CONFIG_SOCK_RX_QUEUE_MAPPING.

Fixes 54b92e841937 ("tcp: Migrate TCP_ESTABLISHED/TCP_SYN_RECV sockets in accept queues.")

I missed the commit which was added while I was developing the SO_REUSEPORT series.

Thank you, Eric!

Quoted 14 lines
Cc Kuniyuki Iwashima <[email protected]>
Cc Daniel Borkmann <[email protected]>
Cc Martin KaFai Lau <[email protected]>
Cc Tariq Toukan <[email protected]>
---
  net/ipv4/inet_connection_sock.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
net/ipv4/inet_connection_sock.c +0 -0
index f7fea3a7c5e64b92ca9c6b56293628923649e58c..62a67fdc344cd21505a84c905c1e2c05cc0ff866 100644
@@ -721,7 +721,7 @@ static struct request_sock *inet_reqsk_clone(struct request_sock *req,
 
Quoted 9 lines
Quoted 9 lines
net/ipv4/inet_connection_sock.c +1 -1
  	sk_node_init(&nreq_sk->sk_node);
  	nreq_sk->sk_tx_queue_mapping = req_sk->sk_tx_queue_mapping;
-#ifdef CONFIG_XPS
+#ifdef CONFIG_SOCK_RX_QUEUE_MAPPING
  	nreq_sk->sk_rx_queue_mapping = req_sk->sk_rx_queue_mapping;
  #endif
  	nreq_sk->sk_incoming_cpu = req_sk->sk_incoming_cpu;
Signature · 1 line
2.34.1.400.ga245620fadb-goog

Thank you

#3 lore raw
In reply to Eric Dumazet
This patch was applied to netdev/net.git (master) by David S. Miller <[email protected]>:

Hello:

This patch was applied to netdev/net.git (master)
by David S. Miller <[email protected]>:

Quoted 6 lines · On Thu, 2 Dec 2021 14:42:18 -0800 you wrote:

From: Eric Dumazet <[email protected]>

Since commit 4e1beecc3b58 ("net/sock: Add kernel config SOCK_RX_QUEUE_MAPPING"),
sk_rx_queue_mapping access is guarded by CONFIG_SOCK_RX_QUEUE_MAPPING.

Quoted 8 lines
Fixes 54b92e841937 ("tcp: Migrate TCP_ESTABLISHED/TCP_SYN_RECV sockets in accept queues.")
Cc Kuniyuki Iwashima <[email protected]>
Cc Daniel Borkmann <[email protected]>
Cc Martin KaFai Lau <[email protected]>
Cc Tariq Toukan <[email protected]>

[...]

Here is the summary with links:
- [net] inet: use #ifdef CONFIG_SOCK_RX_QUEUE_MAPPING consistently

    https://git.kernel.org/netdev/net/c/a9418924552e

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html