Re: [PATCH net] mlxsw: spectrum_router: do not drop refcnt on fib rule

2017-07-13 Thread Ido Schimmel
On Thu, Jul 13, 2017 at 02:39:10PM -0600, David Ahern wrote: > On 7/13/17 2:33 PM, Ido Schimmel wrote: > > Remains where? It's not clear to me how you concluded mlxsw is at fault. > > My setup is running net-next with the refcount patches and I didn't > > observe this. > > Create a VRF. BTW, this

Re: [PATCH net] mlxsw: spectrum_router: do not drop refcnt on fib rule

2017-07-13 Thread Ido Schimmel
On Thu, Jul 13, 2017 at 02:39:10PM -0600, David Ahern wrote: > On 7/13/17 2:33 PM, Ido Schimmel wrote: > > Remains where? It's not clear to me how you concluded mlxsw is at fault. > > My setup is running net-next with the refcount patches and I didn't > > observe this. > > Create a VRF. Yea, I wa

Re: [PATCH net] mlxsw: spectrum_router: do not drop refcnt on fib rule

2017-07-13 Thread David Ahern
On 7/13/17 2:33 PM, Ido Schimmel wrote: > Remains where? It's not clear to me how you concluded mlxsw is at fault. > My setup is running net-next with the refcount patches and I didn't > observe this. Create a VRF. see latest patch. mlxsw releasing the refcnt on the rule was the victim; eric's pa

Re: [PATCH net] mlxsw: spectrum_router: do not drop refcnt on fib rule

2017-07-13 Thread Ido Schimmel
On Thu, Jul 13, 2017 at 01:46:15PM -0600, David Ahern wrote: > On 7/13/17 1:11 PM, David Ahern wrote: > > Since mlxsw is not doing a get on the rule to increase the ref count, it > > should not be doing a put. > > upon further review, mlxsw is doing a get on the rule > > Problem remains, but this

Re: [PATCH net] mlxsw: spectrum_router: do not drop refcnt on fib rule

2017-07-13 Thread David Ahern
On 7/13/17 1:11 PM, David Ahern wrote: > Since mlxsw is not doing a get on the rule to increase the ref count, it > should not be doing a put. upon further review, mlxsw is doing a get on the rule Problem remains, but this is not the right fix.

[PATCH net] mlxsw: spectrum_router: do not drop refcnt on fib rule

2017-07-13 Thread David Ahern
The recent conversion to refcount_t, 717d1e993ad8 ("net: convert fib_rule.refcnt from atomic_t to refcount_t"), and subsequent fix by Eric, 5361e209dd30 ("net: avoid one splat in fib_nl_delrule()"), exposed a bug in mlxsw. The driver is doing a put on fib rules after processing it from the notifie