diff options
author | Stefan Assmann <sassmann@redhat.com> | 2010-07-27 01:24:50 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-07-27 22:18:14 +0200 |
commit | 2c6952dfdda2f266f2f501792b8d6413caf25f7a (patch) | |
tree | ae6f4e19306b7909a859ee3a218a6111f89e3e99 /drivers/net/igbvf | |
parent | ixgbe: priority tagging FCoE frames without FCoE offload (diff) | |
download | linux-2c6952dfdda2f266f2f501792b8d6413caf25f7a.tar.xz linux-2c6952dfdda2f266f2f501792b8d6413caf25f7a.zip |
igbvf, ixgbevf: use dev_hw_addr_random
Both igbvf and ixgbevf should set addr_assign_type to NET_ADDR_RANDOM
so udev creates persistent net rules by matching the device path.
Do this by using the dev_hw_addr_random helper function.
Signed-off-by: Stefan Assmann <sassmann@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/igbvf')
-rw-r--r-- | drivers/net/igbvf/netdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/igbvf/netdev.c b/drivers/net/igbvf/netdev.c index 5e2b2a8c56c6..048595bc79ad 100644 --- a/drivers/net/igbvf/netdev.c +++ b/drivers/net/igbvf/netdev.c @@ -2751,7 +2751,7 @@ static int __devinit igbvf_probe(struct pci_dev *pdev, dev_info(&pdev->dev, "PF still in reset state, assigning new address." " Is the PF interface up?\n"); - random_ether_addr(hw->mac.addr); + dev_hw_addr_random(adapter->netdev, hw->mac.addr); } else { err = hw->mac.ops.read_mac_addr(hw); if (err) { |