git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25b85ae
)
app/testpmd: fix port status for new bonded devices
author
Radu Nicolau
<radu.nicolau@intel.com>
Thu, 1 Nov 2018 11:20:32 +0000
(11:20 +0000)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Mon, 5 Nov 2018 14:01:25 +0000
(15:01 +0100)
Set port status to stopped for newly added devices.
Fixes:
2950a769315e
("bond: testpmd support")
Cc: stable@dpdk.org
Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
app/test-pmd/cmdline.c
patch
|
blob
|
history
diff --git
a/app/test-pmd/cmdline.c
b/app/test-pmd/cmdline.c
index
c383679
..
5e08a1b
100644
(file)
--- a/
app/test-pmd/cmdline.c
+++ b/
app/test-pmd/cmdline.c
@@
-5977,6
+5977,8
@@
static void cmd_create_bonded_device_parsed(void *parsed_result,
nb_ports = rte_eth_dev_count_avail();
reconfig(port_id, res->socket);
rte_eth_promiscuous_enable(port_id);
+ ports[port_id].need_setup = 0;
+ ports[port_id].port_status = RTE_PORT_STOPPED;
}
}