netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/6] net_sched: act: lockless operation
@ 2015-07-02 13:07 Eric Dumazet
  2015-07-02 13:07 ` [PATCH net-next 1/6] net: sched: extend percpu stats helpers Eric Dumazet
                   ` (5 more replies)
  0 siblings, 6 replies; 27+ messages in thread
From: Eric Dumazet @ 2015-07-02 13:07 UTC (permalink / raw)
  To: David S. Miller
  Cc: netdev, Alexei Starovoitov, Jamal Hadi Salim, John Fastabend,
	Eric Dumazet, Eric Dumazet

As mentioned by Alexei last week in Budapest, it is a bit weird
to take a spinlock in order to drop a packet in a tc filter...

Lets add percpu infra for tc actions and use it for gact.

Before changes, my host with 8 RX queues was handling 5 Mpps,
and more than 10 Mpps after.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Alexei Starovoitov <ast@plumgrid.com>
Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Cc: John Fastabend <john.fastabend@gmail.com>

Eric Dumazet (6):
  net: sched: extend percpu stats helpers
  net: sched: add percpu stats to actions
  net_sched: act: make tcfg_pval non zero
  net_sched: act: use a separate packet counters for gact_determ()
  net_sched: act: read tcfg_ptype once
  net_sched: act: remove spinlock in fast path

 include/net/act_api.h        |  4 +++-
 include/net/sch_generic.h    | 27 +++++++++++++++++----------
 include/net/tc_act/tc_gact.h |  7 ++++---
 net/core/dev.c               |  4 ++--
 net/sched/act_api.c          | 44 ++++++++++++++++++++++++++++++++++----------
 net/sched/act_bpf.c          |  2 +-
 net/sched/act_connmark.c     |  3 ++-
 net/sched/act_csum.c         |  3 ++-
 net/sched/act_gact.c         | 35 ++++++++++++++++++-----------------
 net/sched/act_ipt.c          |  2 +-
 net/sched/act_mirred.c       |  3 ++-
 net/sched/act_nat.c          |  3 ++-
 net/sched/act_pedit.c        |  3 ++-
 net/sched/act_simple.c       |  3 ++-
 net/sched/act_skbedit.c      |  3 ++-
 net/sched/act_vlan.c         |  3 ++-
 16 files changed, 96 insertions(+), 53 deletions(-)

-- 
2.4.3.573.g4eafbef

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

end of thread, other threads:[~2015-07-05 10:55 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-02 13:07 [PATCH net-next 0/6] net_sched: act: lockless operation Eric Dumazet
2015-07-02 13:07 ` [PATCH net-next 1/6] net: sched: extend percpu stats helpers Eric Dumazet
2015-07-02 15:19   ` John Fastabend
2015-07-03 10:44   ` Jamal Hadi Salim
2015-07-02 13:07 ` [PATCH net-next 2/6] net: sched: add percpu stats to actions Eric Dumazet
2015-07-02 15:31   ` John Fastabend
2015-07-03 10:48   ` Jamal Hadi Salim
2015-07-02 13:07 ` [PATCH net-next 3/6] net_sched: act: make tcfg_pval non zero Eric Dumazet
2015-07-02 15:33   ` John Fastabend
2015-07-02 16:58   ` Alexei Starovoitov
2015-07-03 10:49   ` Jamal Hadi Salim
2015-07-04  7:18     ` Eric Dumazet
2015-07-02 13:07 ` [PATCH net-next 4/6] net_sched: act: use a separate packet counters for gact_determ() Eric Dumazet
2015-07-02 15:44   ` John Fastabend
2015-07-03 10:50   ` Jamal Hadi Salim
2015-07-02 13:07 ` [PATCH net-next 5/6] net_sched: act: read tcfg_ptype once Eric Dumazet
2015-07-02 15:47   ` John Fastabend
2015-07-03 10:57   ` Jamal Hadi Salim
2015-07-02 13:07 ` [PATCH net-next 6/6] net_sched: act: remove spinlock in fast path Eric Dumazet
2015-07-02 16:35   ` John Fastabend
2015-07-02 20:59     ` Eric Dumazet
2015-07-03 11:25       ` Jamal Hadi Salim
2015-07-03 12:08         ` Eric Dumazet
2015-07-03 17:21           ` John Fastabend
2015-07-02 17:13   ` Alexei Starovoitov
2015-07-03 11:07   ` Jamal Hadi Salim
2015-07-04  5:45     ` Eric Dumazet

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).