diff options
author | John Lo <loj@cisco.com> | 2016-07-11 18:09:51 -0400 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2016-07-12 00:55:20 +0000 |
commit | 3190f7ea3a44623d6fe8210966aa3e244afae41e (patch) | |
tree | 19015e00844c9d13c5059b191a2c519645f647c6 /dpdk/dpdk-16.04_patches/0027-net-enic-fix-removing-old-MAC-address-when-setting-n.patch | |
parent | 3659a5aa366fce62151f42fecbca66853ec3a82d (diff) |
ENIC driver update to allow bonded interface admin down/up to pass traffic
When ENIC ports are used as slaves to a bonded interface, these patches
enable traffic on bonded interface to resume properly on admin down and
then up of the bonded interface.
Change-Id: I339926010da614068417c72009b7af2f892890ce
Signed-off-by: John Lo <loj@cisco.com>
Diffstat (limited to 'dpdk/dpdk-16.04_patches/0027-net-enic-fix-removing-old-MAC-address-when-setting-n.patch')
-rw-r--r-- | dpdk/dpdk-16.04_patches/0027-net-enic-fix-removing-old-MAC-address-when-setting-n.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/dpdk/dpdk-16.04_patches/0027-net-enic-fix-removing-old-MAC-address-when-setting-n.patch b/dpdk/dpdk-16.04_patches/0027-net-enic-fix-removing-old-MAC-address-when-setting-n.patch new file mode 100644 index 00000000000..1e58db9a953 --- /dev/null +++ b/dpdk/dpdk-16.04_patches/0027-net-enic-fix-removing-old-MAC-address-when-setting-n.patch @@ -0,0 +1,34 @@ +From 620b173ae0f77c1a5af2592a27b5db8a6ce88bb6 Mon Sep 17 00:00:00 2001 +From: Nelson Escobar <neescoba@cisco.com> +Date: Thu, 7 Jul 2016 18:11:08 -0700 +Subject: [PATCH 2/2] 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> +--- + drivers/net/enic/enic_main.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +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 +@@ -215,7 +215,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; +-- +2.7.0 + |