summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/chelsio/cxgb4vf/sge.c
diff options
context:
space:
mode:
authorNicolas Dichtel <nicolas.dichtel@6wind.com>2015-03-26 17:56:38 +0100
committerDavid S. Miller <davem@davemloft.net>2015-03-29 12:58:21 -0700
commit4217291e592da0e4258b652e82e5428639d29acc (patch)
treed2471fed2efe37bae94315963de49a4fac93157e /drivers/net/ethernet/chelsio/cxgb4vf/sge.c
parent17f5ddd5a3b31bdb3acc6f7a41785503c9d113ee (diff)
downloadlinux-4217291e592da0e4258b652e82e5428639d29acc.tar.bz2
netns: don't clear nsid too early on removal
With the current code, ids are removed too early. Suppose you have an ipip interface that stands in the netns foo and its link part in the netns bar (so the netns bar has an nsid into the netns foo). Now, you remove the netns bar: - the bar nsid into the netns foo is removed - the netns exit method of ipip is called, thus our ipip iface is removed: => a netlink message is sent in the netns foo to advertise this deletion => this netlink message requests an nsid for bar, thus a new nsid is allocated for bar and never removed. We must remove nsids when we are sure that nobody will refer to netns currently cleaned. Fixes: 0c7aecd4bde4 ("netns: add rtnl cmd to add and get peer netns ids") Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4vf/sge.c')
0 files changed, 0 insertions, 0 deletions