Skip to content

Commit

Permalink
s390/qeth: support net namespaces for L3 devices
Browse files Browse the repository at this point in the history
Enable the L3 driver's IPv4 address notifier to watch for events on qeth
devices that have been moved into a net namespace. We need to program
those IPs into the HW just as usual, otherwise inbound traffic won't
flow.

Fixes: 6133fb1 ("[NETNS]: Disable inetaddr notifiers in namespaces other than initial.")
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Julian Wiedmann authored and David S. Miller committed Mar 30, 2020
1 parent a08e7fd commit b8f1487
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/s390/net/qeth_l3_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2195,9 +2195,6 @@ static int qeth_l3_ip_event(struct notifier_block *this,
struct qeth_ipaddr addr;
struct qeth_card *card;

if (dev_net(dev) != &init_net)
return NOTIFY_DONE;

card = qeth_l3_get_card_from_dev(dev);
if (!card)
return NOTIFY_DONE;
Expand Down

0 comments on commit b8f1487

Please sign in to comment.