vxlan: call peernet2id() in fdb notification
authorWANG Cong <xiyou.wangcong@gmail.com>
Fri, 2 Sep 2016 04:53:44 +0000 (21:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Sep 2016 18:39:58 +0000 (11:39 -0700)
commit38f507f1ba013effec3d7deb84273ac1829e6b87
treefb72a2befafc19018e4dd8880b39c4599df69e3d
parent76644232e6122808947aa329bb995ea68ad01442
vxlan: call peernet2id() in fdb notification

netns id should be already allocated each time we change
netns, that is, in dev_change_net_namespace() (more precisely
in rtnl_fill_ifinfo()). It is safe to just call peernet2id() here.

Cc: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Acked-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c
net/core/net_namespace.c