[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <57D18894.2070702@gmail.com>
Date: Thu, 8 Sep 2016 08:49:40 -0700
From: John Fastabend <john.fastabend@...il.com>
To: Eric Dumazet <eric.dumazet@...il.com>
Cc: Cong Wang <xiyou.wangcong@...il.com>, netdev@...r.kernel.org,
jhs@...atatu.com
Subject: Re: [RFC Patch net-next 5/6] net_sched: use rcu in fast path
[...]
>>
>> So its at least possible I think these could be interleaved on multiple
>> cpus.
>
> Sure, this was very clear when I wrote this code. Otherwise I would have
> used an intermediate object and one rcu_dereference() instead of the
> READ_ONCE().
>
>
>>
>> Notice that some of the actions are fine though and don't have this
>> issue act_bpf for example is fine.
>>
>> I think we can either fix it in the hash table create part of the
>> list as this series does or just let each action handle it on its own.
>
> If we want a fix for stable kernels we want a tc_mirred fix on its own,
> and I was planning to do so.
>
> Given that a "tc qdisc replace ..." drops all packets sitting in the old
> qdisc, I never thought someone would actually depend on atomically
> switching tc_mirred parameters. I for sure did not care.
>
> Thanks.
>
>
Agreed not sure why you would ever want to do a late binding and
replace on a tc_mirred actions. But it is supported...
Powered by blists - more mailing lists