All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] support changing steering policies in tuntap
@ 2017-09-27  8:23 Jason Wang
  2017-09-27  8:23 ` [PATCH net-next 1/3] tun: abstract flow steering logic Jason Wang
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Jason Wang @ 2017-09-27  8:23 UTC (permalink / raw)
  To: netdev, linux-kernel; +Cc: mst, Jason Wang

Hi all:

We use flow caches based flow steering policy now. This is good for
connection-oriented communication such as TCP but not for the others
e.g connectionless unidirectional workload which cares only about
pps. This calls the ability of supporting changing steering policies
in tuntap which was done by this series.

Flow steering policy was abstracted into tun_steering_ops in the first
patch. Then new ioctls to set or query current policy were introduced,
and the last patch introduces a very simple policy that select txq
based on processor id as an example.

Test was done by using xdp_redirect to redirect traffic generated from
MoonGen that was running on a remote machine. And I see 37%
improvement for processor id policy compared to automatic flow
steering policy.

In the future, both simple and sophisticated policy like RSS or other guest
driven steering policies could be done on top.

Thanks

Jason Wang (3):
  tun: abstract flow steering logic
  tun: introduce ioctls to set and get steering policies
  tun: introduce cpu id based steering policy

 drivers/net/tun.c           | 151 +++++++++++++++++++++++++++++++++++++-------
 include/uapi/linux/if_tun.h |   8 +++
 2 files changed, 136 insertions(+), 23 deletions(-)

-- 
2.7.4

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

end of thread, other threads:[~2017-10-01  3:28 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-27  8:23 [PATCH net-next 0/3] support changing steering policies in tuntap Jason Wang
2017-09-27  8:23 ` [PATCH net-next 1/3] tun: abstract flow steering logic Jason Wang
2017-09-27  8:23 ` [PATCH net-next 2/3] tun: introduce ioctls to set and get steering policies Jason Wang
2017-09-27  8:23 ` [PATCH net-next 3/3] tun: introduce cpu id based steering policy Jason Wang
2017-09-27 22:13 ` [PATCH net-next 0/3] support changing steering policies in tuntap Michael S. Tsirkin
2017-09-27 23:25   ` Willem de Bruijn
2017-09-28  5:02     ` Tom Herbert
2017-09-28  7:53       ` Jason Wang
2017-09-28  7:23     ` Jason Wang
2017-09-28 16:09       ` Willem de Bruijn
2017-09-29  9:41         ` Jason Wang
2017-10-01  3:28         ` Michael S. Tsirkin
2017-09-28  6:50   ` Jason Wang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.