inet: use #ifdef CONFIG_SOCK_RX_QUEUE_MAPPING consistently
Subsystems (3)
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.
--- net/ipv4/inet_connection_sock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/ipv4/inet_connection_sock.c +1 -1
@@ -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
From: Eric Dumazet <[email protected]> Date: Thu, 2 Dec 2021 14:42:18 -0800
Quoted 6 lines
Since commit
4e1beecc3b58("net/sock: Add kernel configSOCK_RX_QUEUE_MAPPING"),sk_rx_queue_mappingaccess is guarded byCONFIG_SOCK_RX_QUEUE_MAPPING.Fixes 54b92e841937 ("tcp: Migrate TCP_ESTABLISHED/TCP_SYN_RECV sockets in accept queues.")Signed-off-by Eric Dumazet <[email protected]>
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@@ -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
Tariq Toukan
Reviewed-byQuoted 31 lines · Kuniyuki Iwashima
From: Eric Dumazet <[email protected]> Date: Thu, 2 Dec 2021 14:42:18 -0800Quoted 6 lines
Since commit
4e1beecc3b58("net/sock: Add kernel configSOCK_RX_QUEUE_MAPPING"),sk_rx_queue_mappingaccess is guarded byCONFIG_SOCK_RX_QUEUE_MAPPING.Fixes 54b92e841937 ("tcp: Migrate TCP_ESTABLISHED/TCP_SYN_RECV sockets in accept queues.")Signed-off-by Eric Dumazet <[email protected]>I missed the commit which was added while I was developing the
SO_REUSEPORTseries.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@@ -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
-1sk_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
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 configSOCK_RX_QUEUE_MAPPING"),sk_rx_queue_mappingaccess is guarded byCONFIG_SOCK_RX_QUEUE_MAPPING.
Quoted 8 lines
Fixes 54b92e841937 ("tcp: Migrate TCP_ESTABLISHED/TCP_SYN_RECV sockets in accept queues.")Signed-off-by Eric Dumazet <[email protected]>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