Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1740491

[PATCH net-next 0/3] support changing steering policies in tuntap

From Jason Wang <jasowang@redhat.com>
Newsgroups linux.kernel
Subject [PATCH net-next 0/3] support changing steering policies in tuntap
Date 2017-09-27 10:30 +0200
Message-ID <uufTb-8kl-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH net-next 0/3] support changing steering policies in tuntap Jason Wang <jasowang@redhat.com> - 2017-09-27 10:30 +0200
  [PATCH net-next 3/3] tun: introduce cpu id based steering policy Jason Wang <jasowang@redhat.com> - 2017-09-27 10:30 +0200
  Re: [PATCH net-next 0/3] support changing steering policies in tuntap "Michael S. Tsirkin" <mst@redhat.com> - 2017-09-28 00:20 +0200
    Re: [PATCH net-next 0/3] support changing steering policies in tuntap Willem de Bruijn <willemdebruijn.kernel@gmail.com> - 2017-09-28 01:30 +0200
      Re: [PATCH net-next 0/3] support changing steering policies in tuntap Tom Herbert <tom@herbertland.com> - 2017-09-28 07:10 +0200
        Re: [PATCH net-next 0/3] support changing steering policies in tuntap Jason Wang <jasowang@redhat.com> - 2017-09-28 10:00 +0200
      Re: [PATCH net-next 0/3] support changing steering policies in tuntap Jason Wang <jasowang@redhat.com> - 2017-09-28 09:30 +0200
        Re: [PATCH net-next 0/3] support changing steering policies in tuntap Willem de Bruijn <willemdebruijn.kernel@gmail.com> - 2017-09-28 18:10 +0200
          Re: [PATCH net-next 0/3] support changing steering policies in tuntap Jason Wang <jasowang@redhat.com> - 2017-09-29 11:50 +0200
          Re: [PATCH net-next 0/3] support changing steering policies in tuntap "Michael S. Tsirkin" <mst@redhat.com> - 2017-10-01 05:30 +0200
    Re: [PATCH net-next 0/3] support changing steering policies in tuntap Jason Wang <jasowang@redhat.com> - 2017-09-28 09:00 +0200

csiph-web