DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] app/testpmd: fix port_id alloction issue
@ 2017-11-23  1:26 Yanglong Wu
  2017-11-23  1:57 ` Yang, Zhiyong
  2017-12-22  6:45 ` [dpdk-dev] [PATCH v2] " Yanglong Wu
  0 siblings, 2 replies; 11+ messages in thread
From: Yanglong Wu @ 2017-11-23  1:26 UTC (permalink / raw)
  To: dev; +Cc: Yanglong Wu

the port_id was allocated as a inccrete number,
for init function was passthroughed a wrong
size of parameter

Fixes:28caa76aea71 ("app/testpmd: fix port id type")

Signed-off-by: Yanglong Wu <yanglong.wu@intel.com>
---
 app/test-pmd/cmdline.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c
index f71d96301..8990ebf6b 100644
--- a/app/test-pmd/cmdline.c
+++ b/app/test-pmd/cmdline.c
@@ -3352,7 +3352,7 @@ cmdline_parse_token_num_t cmd_vlan_tpid_tpid =
 			      tp_id, UINT16);
 cmdline_parse_token_num_t cmd_vlan_tpid_portid =
 	TOKEN_NUM_INITIALIZER(struct cmd_vlan_tpid_result,
-			      port_id, UINT8);
+			      port_id, UINT16);
 
 cmdline_parse_inst_t cmd_vlan_tpid = {
 	.f = cmd_vlan_tpid_parsed,
-- 
2.11.0

^ permalink raw reply	[flat|nested] 11+ messages in thread
* [dpdk-dev] [PATCH v2] app/testpmd:vlan filter fail
@ 2018-02-05  2:33 Yanglong Wu
  2018-02-05  7:53 ` [dpdk-dev] [PATCH v3] app/testpmd: fix port_id alloction issue Yanglong Wu
  0 siblings, 1 reply; 11+ messages in thread
From: Yanglong Wu @ 2018-02-05  2:33 UTC (permalink / raw)
  To: dev; +Cc: shahafs, wenzhuo.lu, Yanglong Wu

This bug is caused by miss port configuration.
The port_conf for the DCB configuration should
inherit the same configuration of the port.

Fix:0074d02fc(convert to new Rx offloads API)
Signed-off-by: Yanglong Wu <yanglong.wu@intel.com>
---
v2:
changing patch accoding to the review
---
 app/test-pmd/testpmd.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c
index 5dc8ccac5..da1d9bd3a 100644
--- a/app/test-pmd/testpmd.c
+++ b/app/test-pmd/testpmd.c
@@ -2324,6 +2324,9 @@ init_port_dcb_config(portid_t pid,
 	/* Enter DCB configuration status */
 	dcb_config = 1;

+	port_conf.rxmode = rte_port->dev_conf.rxmode;
+	port_conf.txmode = rte_port->dev_conf.txmode;
+
 	/*set configuration of DCB in vt mode and DCB in non-vt mode*/
 	retval = get_eth_dcb_conf(&port_conf, dcb_mode, num_tcs, pfc_en);
 	if (retval < 0)
-- 
2.11.0

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2018-02-05  8:00 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-23  1:26 [dpdk-dev] [PATCH] app/testpmd: fix port_id alloction issue Yanglong Wu
2017-11-23  1:57 ` Yang, Zhiyong
2017-11-23  2:05   ` Yang, Zhiyong
2017-12-22  6:45 ` [dpdk-dev] [PATCH v2] " Yanglong Wu
2017-12-22  7:48   ` Yanglong Wu
2017-12-23  0:04     ` Ferruh Yigit
2018-01-02  5:35     ` [dpdk-dev] [PATCH v3] " Yanglong Wu
2018-01-05  0:58       ` Lu, Wenzhuo
2018-01-09 23:27         ` Thomas Monjalon
2018-02-05  2:33 [dpdk-dev] [PATCH v2] app/testpmd:vlan filter fail Yanglong Wu
2018-02-05  7:53 ` [dpdk-dev] [PATCH v3] app/testpmd: fix port_id alloction issue Yanglong Wu
2018-02-05  8:00   ` Yang, Zhiyong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).