]> git.baikalelectronics.ru Git - kernel.git/commit
net: Record receive queue number for a connection
authorAmritha Nambiar <amritha.nambiar@intel.com>
Sat, 30 Jun 2018 04:26:57 +0000 (21:26 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Jul 2018 00:06:24 +0000 (09:06 +0900)
commit00adfd3ecac83bba7d5081817a41125f837b6739
treee3e40f7b159a24b76b55c7c48f6057ecc0a423fd
parent62065c98890ce2459d4c9c7acd22f1d16418e295
net: Record receive queue number for a connection

This patch adds a new field to sock_common 'skc_rx_queue_mapping'
which holds the receive queue number for the connection. The Rx queue
is marked in tcp_finish_connect() to allow a client app to do
SO_INCOMING_NAPI_ID after a connect() call to get the right queue
association for a socket. Rx queue is also marked in tcp_conn_request()
to allow syn-ack to go on the right tx-queue associated with
the queue on which syn is received.

Signed-off-by: Amritha Nambiar <amritha.nambiar@intel.com>
Signed-off-by: Sridhar Samudrala <sridhar.samudrala@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/busy_poll.h
include/net/sock.h
net/core/sock.c
net/ipv4/tcp_input.c