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/0026-net-enic-fix-setting-MAC-address-when-a-port-is-rest.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/0026-net-enic-fix-setting-MAC-address-when-a-port-is-rest.patch')
-rw-r--r-- | dpdk/dpdk-16.04_patches/0026-net-enic-fix-setting-MAC-address-when-a-port-is-rest.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/dpdk/dpdk-16.04_patches/0026-net-enic-fix-setting-MAC-address-when-a-port-is-rest.patch b/dpdk/dpdk-16.04_patches/0026-net-enic-fix-setting-MAC-address-when-a-port-is-rest.patch new file mode 100644 index 00000000000..334e9bedb1a --- /dev/null +++ b/dpdk/dpdk-16.04_patches/0026-net-enic-fix-setting-MAC-address-when-a-port-is-rest.patch @@ -0,0 +1,45 @@ +From e5b60cf1199c51ee51c287988bdda3522fee748c Mon Sep 17 00:00:00 2001 +From: Nelson Escobar <neescoba@cisco.com> +Date: Thu, 7 Jul 2016 18:10:21 -0700 +Subject: [PATCH 1/2] net/enic: fix setting MAC address when a port is + restarted + +enic_disable() removed the MAC address when a port was shut down but +enic_enable() didn't add the MAC address back when the port was +started again. Move where we set the MAC address for the adapter from +enic_setup_finish() to a enic_enable() so that port restarting works +properly. + +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 | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c +index d4e43b5..5d47c01 100644 +--- a/drivers/net/enic/enic_main.c ++++ b/drivers/net/enic/enic_main.c +@@ -468,6 +468,8 @@ int enic_enable(struct enic *enic) + for (index = 0; index < enic->rq_count; index++) + enic_start_rq(enic, index); + ++ vnic_dev_add_addr(enic->vdev, enic->mac_addr); ++ + vnic_dev_enable_wait(enic->vdev); + + /* Register and enable error interrupt */ +@@ -971,8 +973,6 @@ int enic_setup_finish(struct enic *enic) + return -1; + } + +- vnic_dev_add_addr(enic->vdev, enic->mac_addr); +- + /* Default conf */ + vnic_dev_packet_filter(enic->vdev, + 1 /* directed */, +-- +2.7.0 + |