Re: [net-next PATCH v2] bpf: devmap fix mutex in rcu critical section

2017-08-07 Thread David Miller
From: John Fastabend Date: Fri, 04 Aug 2017 22:02:19 -0700 > Originally we used a mutex to protect concurrent devmap update > and delete operations from racing with netdev unregister notifier > callbacks. > > The notifier hook is needed because we increment the netdev ref > count when a dev is a

[net-next PATCH v2] bpf: devmap fix mutex in rcu critical section

2017-08-04 Thread John Fastabend
Originally we used a mutex to protect concurrent devmap update and delete operations from racing with netdev unregister notifier callbacks. The notifier hook is needed because we increment the netdev ref count when a dev is added to the devmap. This ensures the netdev reference is valid in the dat