git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fd70e6
)
net/bnxt: remove useless copy when setting MAC address
author
Olivier Matz
<olivier.matz@6wind.com>
Wed, 3 Jan 2018 13:32:59 +0000
(14:32 +0100)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000
(18:47 +0100)
This operation is already done by the ethdev layer, it should not
be done by the driver.
Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
drivers/net/bnxt/bnxt_ethdev.c
patch
|
blob
|
history
diff --git
a/drivers/net/bnxt/bnxt_ethdev.c
b/drivers/net/bnxt/bnxt_ethdev.c
index
36c01fa
..
89b6397
100644
(file)
--- a/
drivers/net/bnxt/bnxt_ethdev.c
+++ b/
drivers/net/bnxt/bnxt_ethdev.c
@@
-1426,7
+1426,6
@@
bnxt_set_default_mac_addr_op(struct rte_eth_dev *dev, struct ether_addr *addr)
return;
memcpy(bp->mac_addr, addr, sizeof(bp->mac_addr));
- memcpy(&dev->data->mac_addrs[0], bp->mac_addr, ETHER_ADDR_LEN);
STAILQ_FOREACH(filter, &vnic->filter, next) {
/* Default Filter is at Index 0 */