[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;
|
struct neigh_parms *p;
|
||||||
|
|
||||||
for (p = &tbl->parms; p; p = p->next) {
|
for (p = &tbl->parms; p; p = p->next) {
|
||||||
if (p->net != net)
|
if ((p->dev && p->dev->ifindex == ifindex && p->net == net) ||
|
||||||
continue;
|
|
||||||
if ((p->dev && p->dev->ifindex == ifindex) ||
|
|
||||||
(!p->dev && !ifindex))
|
(!p->dev && !ifindex))
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue