ixgbe: clear mac address data block in DCB mode
authorLucy Liu <lucy.liu@intel.com>
Thu, 16 Jul 2009 13:43:10 +0000 (13:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Jul 2009 01:05:40 +0000 (18:05 -0700)
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>
drivers/net/ixgbe/ixgbe_dcb_nl.c

index 7c5978ad929adc43424b4c1b475c2ef54c25ded9..5b8dab22c6da539fc9218f3f7401c3a08f558ebf 100644 (file)
@@ -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];