datapath: Don't set flags on internal vports.
authorJesse Gross <jesse@nicira.com>
Fri, 4 Nov 2011 01:12:09 +0000 (18:12 -0700)
committerJesse Gross <jesse@nicira.com>
Fri, 4 Nov 2011 17:59:50 +0000 (10:59 -0700)
We currently set netdev->flags to IFF_BROADCAST | IFF_MULTICAST
but this is unnecessary because it's already done by ether_setup().

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
datapath/vport-internal_dev.c

index a468ac8..fdcf175 100644 (file)
@@ -176,7 +176,6 @@ static void do_setup(struct net_device *netdev)
        SET_ETHTOOL_OPS(netdev, &internal_dev_ethtool_ops);
        netdev->tx_queue_len = 0;
 
-       netdev->flags = IFF_BROADCAST | IFF_MULTICAST;
        netdev->features = NETIF_F_LLTX | NETIF_F_SG | NETIF_F_FRAGLIST |
                                NETIF_F_HIGHDMA | NETIF_F_HW_CSUM | NETIF_F_TSO;