On 10/24/2018 01:15 PM, Taehee Yoo wrote: > The dev_map_notification() removes interface in devmap if > unregistering interface's ifindex is same. > But only checking ifindex is not enough because other netns can have > same ifindex. so that wrong interface selection could occurred. > Hence netdev pointer comparison code is added. > > v2: compare netdev pointer instead of using net_eq() (Daniel Borkmann) > v1: Initial patch > > Fixes: 2ddf71e23cc2 ("net: add notifier hooks for devmap bpf map") > Signed-off-by: Taehee Yoo <ap420...@gmail.com>
Applied to bpf, thanks Taehee!