[NETNS]: Default arp parameters lookup.
Default ARP parameters should be findable regardless of the context. Required to make inetdev_event working. Signed-off-by: Denis V. Lunev <den@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
4ab438fcd7
commit
0c65babd6c
@ -1284,9 +1284,7 @@ static inline struct neigh_parms *lookup_neigh_params(struct neigh_table *tbl,
|
||||
struct neigh_parms *p;
|
||||
|
||||
for (p = &tbl->parms; p; p = p->next) {
|
||||
if (p->net != net)
|
||||
continue;
|
||||
if ((p->dev && p->dev->ifindex == ifindex) ||
|
||||
if ((p->dev && p->dev->ifindex == ifindex && p->net == net) ||
|
||||
(!p->dev && !ifindex))
|
||||
return p;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user