Patch "inet: use #ifdef CONFIG_SOCK_RX_QUEUE_MAPPING consistently" has been added to the 5.15-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    inet: use #ifdef CONFIG_SOCK_RX_QUEUE_MAPPING consistently

to the 5.15-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     inet-use-ifdef-config_sock_rx_queue_mapping-consiste.patch
and it can be found in the queue-5.15 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit abff1a850dedd45be9b42ab65643be220bfad00f
Author: Eric Dumazet <edumazet@xxxxxxxxxx>
Date:   Thu Dec 2 14:42:18 2021 -0800

    inet: use #ifdef CONFIG_SOCK_RX_QUEUE_MAPPING consistently
    
    [ Upstream commit a9418924552e52e63903cbb0310d7537260702bf ]
    
    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.")
    Signed-off-by: Eric Dumazet <edumazet@xxxxxxxxxx>
    Cc: Kuniyuki Iwashima <kuniyu@xxxxxxxxxxxx>
    Cc: Daniel Borkmann <daniel@xxxxxxxxxxxxx>
    Cc: Martin KaFai Lau <kafai@xxxxxx>
    Cc: Tariq Toukan <tariqt@xxxxxxxxxx>
    Acked-by: Kuniyuki Iwashima <kuniyu@xxxxxxxxxxxx>
    Reviewed-by: Tariq Toukan <tariqt@xxxxxxxxxx>
    Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/net/ipv4/inet_connection_sock.c b/net/ipv4/inet_connection_sock.c
index f7fea3a7c5e64..62a67fdc344cd 100644
--- a/net/ipv4/inet_connection_sock.c
+++ b/net/ipv4/inet_connection_sock.c
@@ -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;



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux