s390/qeth: support net namespaces for L3 devices
authorJulian Wiedmann <jwi@linux.ibm.com>
Fri, 27 Mar 2020 11:00:42 +0000 (12:00 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Mar 2020 04:58:55 +0000 (21:58 -0700)
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: 6133fb1aa137 ("[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>
drivers/s390/net/qeth_l3_main.c

index b48cd0df3e3183f8dfa3e704feab7b6e9a021119..0742a749d26ee51fa27252eef4e0f4c48c37849c 100644 (file)
@@ -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;