projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
935f73b
)
igb: use eth_zero_addr() to clear mac address
author
Miaohe Lin
<linmiaohe@huawei.com>
Mon, 20 Jul 2020 08:29:14 +0000
(16:29 +0800)
committer
Tony Nguyen
<anthony.l.nguyen@intel.com>
Thu, 30 Jul 2020 18:41:45 +0000
(11:41 -0700)
Use eth_zero_addr() to clear mac address instead of memset().
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/igb/igb_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/intel/igb/igb_main.c
b/drivers/net/ethernet/intel/igb/igb_main.c
index
ae8d643
..
b97916b
100644
(file)
--- a/
drivers/net/ethernet/intel/igb/igb_main.c
+++ b/
drivers/net/ethernet/intel/igb/igb_main.c
@@
-7159,7
+7159,7
@@
static void igb_flush_mac_table(struct igb_adapter *adapter)
for (i = 0; i < hw->mac.rar_entry_count; i++) {
adapter->mac_table[i].state &= ~IGB_MAC_STATE_IN_USE;
-
memset(adapter->mac_table[i].addr, 0, ETH_ALEN
);
+
eth_zero_addr(adapter->mac_table[i].addr
);
adapter->mac_table[i].queue = 0;
igb_rar_set_index(adapter, i);
}
@@
-7308,7
+7308,7
@@
static int igb_del_mac_filter_flags(struct igb_adapter *adapter,
} else {
adapter->mac_table[i].state = 0;
adapter->mac_table[i].queue = 0;
-
memset(adapter->mac_table[i].addr, 0, ETH_ALEN
);
+
eth_zero_addr(adapter->mac_table[i].addr
);
}
igb_rar_set_index(adapter, i);