aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgbe/ixgbe_dcb_nl.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ixgbe/ixgbe_dcb_nl.c')
-rw-r--r--drivers/net/ixgbe/ixgbe_dcb_nl.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/ixgbe/ixgbe_dcb_nl.c b/drivers/net/ixgbe/ixgbe_dcb_nl.c
index 99e0c106e671..5d5d390f84bf 100644
--- a/drivers/net/ixgbe/ixgbe_dcb_nl.c
+++ b/drivers/net/ixgbe/ixgbe_dcb_nl.c
@@ -155,10 +155,15 @@ static void ixgbe_dcbnl_get_perm_hw_addr(struct net_device *netdev,
155 u8 *perm_addr) 155 u8 *perm_addr)
156{ 156{
157 struct ixgbe_adapter *adapter = netdev_priv(netdev); 157 struct ixgbe_adapter *adapter = netdev_priv(netdev);
158 int i; 158 int i, j;
159 159
160 for (i = 0; i < netdev->addr_len; i++) 160 for (i = 0; i < netdev->addr_len; i++)
161 perm_addr[i] = adapter->hw.mac.perm_addr[i]; 161 perm_addr[i] = adapter->hw.mac.perm_addr[i];
162
163 if (adapter->hw.mac.type == ixgbe_mac_82599EB) {
164 for (j = 0; j < netdev->addr_len; j++, i++)
165 perm_addr[i] = adapter->hw.mac.san_addr[j];
166 }
162} 167}
163 168
164static void ixgbe_dcbnl_set_pg_tc_cfg_tx(struct net_device *netdev, int tc, 169static void ixgbe_dcbnl_set_pg_tc_cfg_tx(struct net_device *netdev, int tc,