summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorNelson Escobar <neescoba@cisco.com>2016-07-07 18:11:08 -0700
committerBruce Richardson <bruce.richardson@intel.com>2016-07-08 22:59:52 +0200
commit620b173ae0f77c1a5af2592a27b5db8a6ce88bb6 (patch)
treed3fda47c67117bbb075485884dc3188cb005e4ea /drivers
parente5b60cf1199c51ee51c287988bdda3522fee748c (diff)
downloaddpdk-620b173ae0f77c1a5af2592a27b5db8a6ce88bb6.zip
dpdk-620b173ae0f77c1a5af2592a27b5db8a6ce88bb6.tar.gz
dpdk-620b173ae0f77c1a5af2592a27b5db8a6ce88bb6.tar.xz
net/enic: fix removing old MAC address when setting new one
enic_set_mac_address() meant to remove the old MAC address before setting the new one, but accidentally tried removing the new MAC address before setting the new MAC address. Fixes: fefed3d1e62c ("enic: new driver") Signed-off-by: Nelson Escobar <neescoba@cisco.com> Reviewed-by: John Daley <johndale@cisco.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/enic/enic_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c
index 5d47c01..d8669cc 100644
--- a/drivers/net/enic/enic_main.c
+++ b/drivers/net/enic/enic_main.c
@@ -203,7 +203,7 @@ void enic_set_mac_address(struct enic *enic, uint8_t *mac_addr)
return;
}
- err = vnic_dev_del_addr(enic->vdev, mac_addr);
+ err = vnic_dev_del_addr(enic->vdev, enic->mac_addr);
if (err) {
dev_err(enic, "del mac addr failed\n");
return;