OSDN Git Service

[NET] NETNS: Omit net_device->nd_net without CONFIG_NET_NS.
[uclinux-h8/linux.git] / drivers / net / bonding / bond_alb.c
index b57bc94..b986dac 100644 (file)
@@ -345,7 +345,7 @@ static int rlb_arp_recv(struct sk_buff *skb, struct net_device *bond_dev, struct
        struct arp_pkt *arp = (struct arp_pkt *)skb->data;
        int res = NET_RX_DROP;
 
-       if (bond_dev->nd_net != &init_net)
+       if (dev_net(bond_dev) != &init_net)
                goto out;
 
        if (!(bond_dev->flags & IFF_MASTER))