Skip to content

Prevent packet reordering on tap/tun interfaces

Alexander Duyck netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net: Add function to allow configuration of RPSinclude/linux/netdevice.h net/core/dev.c net/core/net-sysfs.c+67 -381 reply
2/2tun: Configure Rx queues to default to RPS enableddrivers/net/tun.c+3 -12 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [net-next PATCH 0/2] Prevent packet reordering on tap/tun interfaces

This patch set is meant to address a recent issue I found with VMs sending traffic across a network. Specifically what I found was that the tap interfaces were spreading single flows across all CPUs on the system due to the fact that the sending VM was being load balanced across them. Under light load this doesn't have much of an impact, however under heavier loads where the interfaces are already running with Rx cleanup from other flows on the CPUs I have seen this have a fairly significant impact as we can avoid any issues due to reordering. The results can be anywhere from 10 to 30% improvement from what I have seen.

---

Alexander Duyck (2):
net: Add function to allow configuration of RPS
tun: Configure Rx queues to default to RPS enabled

 drivers/net/tun.c         |    4 +++-
 include/linux/netdevice.h |    9 ++++++++
 net/core/dev.c            |   51 ++++++++++++++++++++++++++++++++++++++++++++-
 net/core/net-sysfs.c      |   45 +++++++---------------------------------
 4 files changed, 70 insertions(+), 39 deletions(-)