diff options
author | Sunil Goutham <sgoutham@cavium.com> | 2016-08-12 11:21:40 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-13 18:59:32 (GMT) |
commit | a3a8ce4ce78d9b7c31c7e7f9327409a575bd6280 (patch) | |
tree | af57be95f650b5c03f2cc2d70d2f7270a14c07d5 /drivers | |
parent | 3458c40d608ab7d3b2b591eb9b1f1b84502b55d2 (diff) | |
download | linux-a3a8ce4ce78d9b7c31c7e7f9327409a575bd6280.tar.xz |
net: thunderx: Don't set mac address for secondary Qset VFs
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/cavium/thunder/nicvf_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/cavium/thunder/nicvf_main.c b/drivers/net/ethernet/cavium/thunder/nicvf_main.c index dd57361..0b68f2b 100644 --- a/drivers/net/ethernet/cavium/thunder/nicvf_main.c +++ b/drivers/net/ethernet/cavium/thunder/nicvf_main.c @@ -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); } |