Re: [PATCH net] cls_u32: add missing RCU annotation.

2018-02-02 Thread David Miller
From: Paolo Abeni Date: Fri, 2 Feb 2018 16:02:22 +0100 > In a couple of points of the control path, n->ht_down is currently > accessed without the required RCU annotation. The accesses are > safe, but sparse complaints. Since we already held the > rtnl lock, let use

Re: [PATCH net] cls_u32: add missing RCU annotation.

2018-02-02 Thread Cong Wang
On Fri, Feb 2, 2018 at 7:02 AM, Paolo Abeni wrote: > In a couple of points of the control path, n->ht_down is currently > accessed without the required RCU annotation. The accesses are > safe, but sparse complaints. Since we already held the > rtnl lock, let use

[PATCH net] cls_u32: add missing RCU annotation.

2018-02-02 Thread Paolo Abeni
In a couple of points of the control path, n->ht_down is currently accessed without the required RCU annotation. The accesses are safe, but sparse complaints. Since we already held the rtnl lock, let use rtnl_dereference(). Fixes: a1b7c5fd7fe9 ("net: sched: add cls_u32 offload hooks for netdevs")