netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [net-next PATCH 0/3] Symmetric queue selection using XPS for Rx queues
@ 2018-04-20  1:04 Amritha Nambiar
  2018-04-20  1:04 ` [net-next PATCH 1/3] net: Refactor XPS for CPUs and " Amritha Nambiar
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Amritha Nambiar @ 2018-04-20  1:04 UTC (permalink / raw)
  To: netdev, davem
  Cc: alexander.h.duyck, amritha.nambiar, sridhar.samudrala, edumazet,
	hannes, tom

This patch series implements support for Tx queue selection based on
Rx queue map. This is done by configuring Rx queue map per Tx-queue
using sysfs attribute. If the user configuration for Rx queues does
not apply, then the Tx queue selection falls back to XPS using CPUs and
finally to hashing.

XPS is refactored to support Tx queue selection based on either the
CPU map or the Rx-queue map. The config option CONFIG_XPS needs to be
enabled. By default no receive queues are configured for the Tx queue.

- /sys/class/net/eth0/queues/tx-*/xps_rxqs

This is to enable sending packets on the same Tx-Rx queue pair as this
is useful for busy polling multi-threaded workloads where it is not
possible to pin the threads to a CPU. This is a rework of Sridhar's
patch for symmetric queueing via socket option:
https://www.spinics.net/lists/netdev/msg453106.html

---

Amritha Nambiar (3):
      net: Refactor XPS for CPUs and Rx queues
      net: Enable Tx queue selection based on Rx queues
      net-sysfs: Add interface for Rx queue map per Tx queue


 include/linux/netdevice.h |   82 +++++++++++++++
 include/net/sock.h        |   18 +++
 net/core/dev.c            |  240 +++++++++++++++++++++++++++++++--------------
 net/core/net-sysfs.c      |   85 ++++++++++++++++
 net/core/sock.c           |    5 +
 net/ipv4/tcp_input.c      |    7 +
 net/ipv4/tcp_ipv4.c       |    1 
 net/ipv4/tcp_minisocks.c  |    1 
 8 files changed, 357 insertions(+), 82 deletions(-)

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2018-05-14 17:18 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-20  1:04 [net-next PATCH 0/3] Symmetric queue selection using XPS for Rx queues Amritha Nambiar
2018-04-20  1:04 ` [net-next PATCH 1/3] net: Refactor XPS for CPUs and " Amritha Nambiar
2018-05-09 20:31   ` Tom Herbert
2018-05-09 20:54     ` Nambiar, Amritha
2018-05-14 16:53       ` Tom Herbert
2018-05-14 17:18         ` Nambiar, Amritha
2018-04-20  1:04 ` [net-next PATCH 2/3] net: Enable Tx queue selection based on " Amritha Nambiar
2018-04-20  1:04 ` [net-next PATCH 3/3] net-sysfs: Add interface for Rx queue map per Tx queue Amritha Nambiar
2018-04-20  2:41 ` [net-next PATCH 0/3] Symmetric queue selection using XPS for Rx queues Eric Dumazet
2018-05-08 15:15   ` Tom Herbert
2018-05-08 16:02     ` Alexander Duyck
2018-05-08 17:07       ` Eric Dumazet
2018-05-08 17:19         ` Alexander Duyck
2018-05-08 17:56           ` Nambiar, Amritha

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).