]> git.baikalelectronics.ru Git - kernel.git/commit
net/sock: Add kernel config SOCK_RX_QUEUE_MAPPING
authorTariq Toukan <tariqt@nvidia.com>
Thu, 11 Feb 2021 11:35:51 +0000 (13:35 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Feb 2021 03:08:06 +0000 (19:08 -0800)
commit1c88d6f9caf3f2170af74b0d6e9a72580939f877
tree0bb99894f397d0619ef331dd243a01924a886194
parent7219de9a2686012e5bb345984143b66ed6720c63
net/sock: Add kernel config SOCK_RX_QUEUE_MAPPING

Use a new config SOCK_RX_QUEUE_MAPPING to compile-in the socket
RX queue field and logic, instead of the XPS config.
This breaks dependency in XPS, and allows selecting it from non-XPS
use cases, as we do in the next patch.

In addition, use the new flag to wrap the logic in sk_rx_queue_get()
and protect access to the sk_rx_queue_mapping field, while keeping
the function exposed unconditionally, just like sk_rx_queue_set()
and sk_rx_queue_clear().

Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Maxim Mikityanskiy <maximmi@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sock.h
net/Kconfig
net/core/filter.c