net: thunderx: Don't set mac address for secondary Qset VFs
authorSunil Goutham <sgoutham@cavium.com>
Fri, 12 Aug 2016 11:21:40 +0000 (16:51 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Aug 2016 18:59:32 +0000 (11:59 -0700)
Set MAC addresses only for primary VF's and don't for
secondary VFs.

Signed-off-by: Sunil Goutham <sgoutham@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/nicvf_main.c

index dd57361aa3fc2167f143daa118984c30f45318db..0b68f2b6de5dd6870386b57a9a349c0dd02917ef 100644 (file)
@@ -1209,7 +1209,7 @@ int nicvf_open(struct net_device *netdev)
        }
 
        /* Check if we got MAC address from PF or else generate a radom MAC */
-       if (is_zero_ether_addr(netdev->dev_addr)) {
+       if (!nic->sqs_mode && is_zero_ether_addr(netdev->dev_addr)) {
                eth_hw_addr_random(netdev);
                nicvf_hw_set_mac_addr(nic, netdev);
        }
This page took 0.032485 seconds and 5 git commands to generate.