blob: 1e58db9a9535b5a6f63149945c1735e3ced7e6ff [file] [log] [blame]
John Lo3190f7e2016-07-11 18:09:51 -04001From 620b173ae0f77c1a5af2592a27b5db8a6ce88bb6 Mon Sep 17 00:00:00 2001
2From: Nelson Escobar <neescoba@cisco.com>
3Date: Thu, 7 Jul 2016 18:11:08 -0700
4Subject: [PATCH 2/2] net/enic: fix removing old MAC address when setting new
5 one
6
7enic_set_mac_address() meant to remove the old MAC address before
8setting the new one, but accidentally tried removing the new MAC
9address before setting the new MAC address.
10
11Fixes: fefed3d1e62c ("enic: new driver")
12
13Signed-off-by: Nelson Escobar <neescoba@cisco.com>
14Reviewed-by: John Daley <johndale@cisco.com>
15---
16 drivers/net/enic/enic_main.c | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c
20index 5d47c01..d8669cc 100644
21--- a/drivers/net/enic/enic_main.c
22+++ b/drivers/net/enic/enic_main.c
23@@ -215,7 +215,7 @@ void enic_set_mac_address(struct enic *enic, uint8_t *mac_addr)
24 return;
25 }
26
27- err = vnic_dev_del_addr(enic->vdev, mac_addr);
28+ err = vnic_dev_del_addr(enic->vdev, enic->mac_addr);
29 if (err) {
30 dev_err(enic, "del mac addr failed\n");
31 return;
32--
332.7.0
34