Re: [PATCH v2 net-next 0/7] net_sched: act: lockless operation

2015-07-06 Thread Eric Dumazet
On Mon, Jul 6, 2015 at 2:12 PM, Jamal Hadi Salim wrote: > on mirred: > The main thing that is read-write is the stats. lastuse timestamp > as well, but that one doesnt have to be accurate (used mainly > to help decide when to flush out policies). so the lock around > all that code is not necessar

Re: [PATCH v2 net-next 0/7] net_sched: act: lockless operation

2015-07-06 Thread Jamal Hadi Salim
On 07/06/15 02:41, Eric Dumazet wrote: 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 & mirred. Before changes, my host with 8 RX queues was handling 5 Mpps w

Re: [PATCH v2 net-next 0/7] net_sched: act: lockless operation

2015-07-05 Thread Eric Dumazet
On Mon, Jul 6, 2015 at 8:41 AM, Eric Dumazet wrote: > 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... > Arg, please ignore v2, I messed my git send-email command -- To unsubscribe from this list: send the line "unsub

[PATCH v2 net-next 0/7] net_sched: act: lockless operation

2015-07-05 Thread 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 & mirred. Before changes, my host with 8 RX queues was handling 5 Mpps with gact, and more than 11 Mpps after. M