On 11/1/20 4:39 AM, Ido Schimmel wrote: > From: Ido Schimmel <ido...@nvidia.com> > > The nexthop notification chain is a per-namespace chain and not a global > one like the netdev notification chain. > > Therefore, a single (global) listener cannot be registered to all these > chains simultaneously as it will result in list corruptions whenever > listeners are registered / unregistered. > > Instead, register a different listener in each namespace. > > Currently this is not an issue because only the VXLAN driver registers a > listener to this chain, but this is going to change with netdevsim and > mlxsw also registering their own listeners. > > Signed-off-by: Ido Schimmel <ido...@nvidia.com> > --- > drivers/net/vxlan.c | 15 ++++++++------- > 1 file changed, 8 insertions(+), 7 deletions(-) >
Reviewed-by: David Ahern <dsah...@kernel.org>