diff options
author | Lucy Liu <lucy.liu@intel.com> | 2009-07-16 15:43:10 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-07-17 03:05:40 +0200 |
commit | 86e713a06ab3e5b15a3189485ce33aa21b9e52ca (patch) | |
tree | c6b1453d9c6924177f400584dbc763d334c7d8f5 /drivers | |
parent | sky2: revert shutdown changes (diff) | |
download | linux-86e713a06ab3e5b15a3189485ce33aa21b9e52ca.tar.xz linux-86e713a06ab3e5b15a3189485ce33aa21b9e52ca.zip |
ixgbe: clear mac address data block in DCB mode
This change clears the address data block memory space, which is needed for
the 82598 which does not have a SAN MAC.
Signed-off-by: Lucy Liu <lucy.liu@intel.com>
Acked-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ixgbe/ixgbe_dcb_nl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ixgbe/ixgbe_dcb_nl.c b/drivers/net/ixgbe/ixgbe_dcb_nl.c index 7c5978ad929a..5b8dab22c6da 100644 --- a/drivers/net/ixgbe/ixgbe_dcb_nl.c +++ b/drivers/net/ixgbe/ixgbe_dcb_nl.c @@ -175,6 +175,8 @@ static void ixgbe_dcbnl_get_perm_hw_addr(struct net_device *netdev, struct ixgbe_adapter *adapter = netdev_priv(netdev); int i, j; + memset(perm_addr, 0xff, MAX_ADDR_LEN); + for (i = 0; i < netdev->addr_len; i++) perm_addr[i] = adapter->hw.mac.perm_addr[i]; |