From: Olivier Matz Date: Wed, 3 Jan 2018 13:32:59 +0000 (+0100) Subject: net/bnxt: remove useless copy when setting MAC address X-Git-Tag: spdx-start~335 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e38e04cba57414cd75d3d6dedc5cc9479343d336;p=dpdk.git net/bnxt: remove useless copy when setting MAC address This operation is already done by the ethdev layer, it should not be done by the driver. Signed-off-by: Olivier Matz --- diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c index 36c01fa694..89b63978f4 100644 --- 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 */