* [dpdk-dev] [PATCH PktGen/PCAP] let multi tx queues with pcap work
@ 2016-04-15 7:41 Zhouyi Zhou
2016-04-15 13:33 ` Wiles, Keith
0 siblings, 1 reply; 2+ messages in thread
From: Zhouyi Zhou @ 2016-04-15 7:41 UTC (permalink / raw)
To: dev, keith.wiles; +Cc: Zhouyi Zhou, Zhouyi Zhou
Currently, dpdk-pktgen will panic when assigning multi tx queues with pcap
packet, for example:
./app/app/build/pktgen -c f -n 2 -- -P -m "[0:1-3].0" -s 0:pcap/large.pcap
This patch fix this bug by assigning qid to memory pool name.
Signed-off-by: Zhouyi Zhou <yizhouzhou@ict.ac.cn>
---
app/pktgen-pcap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/pktgen-pcap.c b/app/pktgen-pcap.c
index 1af0a53..960294c 100644
--- a/app/pktgen-pcap.c
+++ b/app/pktgen-pcap.c
@@ -337,7 +337,7 @@ pktgen_pcap_parse(pcap_info_t *pcap, port_info_t *info, unsigned qid)
wr_pcap_rewind(pcap);
- snprintf(name, sizeof(name), "%-12s%d:%d", "PCAP TX", info->pid, 0);
+ snprintf(name, sizeof(name), "%-12s%d:%d", "PCAP TX", info->pid, qid);
rte_printf_status(" Process: %-*s ", 18, name);
pkt_sizes = elt_count = i = 0;
--
1.9.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dpdk-dev] [PATCH PktGen/PCAP] let multi tx queues with pcap work
2016-04-15 7:41 [dpdk-dev] [PATCH PktGen/PCAP] let multi tx queues with pcap work Zhouyi Zhou
@ 2016-04-15 13:33 ` Wiles, Keith
0 siblings, 0 replies; 2+ messages in thread
From: Wiles, Keith @ 2016-04-15 13:33 UTC (permalink / raw)
To: Zhouyi Zhou, dev; +Cc: Zhouyi Zhou
Thank you.
>Currently, dpdk-pktgen will panic when assigning multi tx queues with pcap
>packet, for example:
>./app/app/build/pktgen -c f -n 2 -- -P -m "[0:1-3].0" -s 0:pcap/large.pcap
>
>This patch fix this bug by assigning qid to memory pool name.
>
>Signed-off-by: Zhouyi Zhou <yizhouzhou@ict.ac.cn>
>---
> app/pktgen-pcap.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/app/pktgen-pcap.c b/app/pktgen-pcap.c
>index 1af0a53..960294c 100644
>--- a/app/pktgen-pcap.c
>+++ b/app/pktgen-pcap.c
>@@ -337,7 +337,7 @@ pktgen_pcap_parse(pcap_info_t *pcap, port_info_t *info, unsigned qid)
>
> wr_pcap_rewind(pcap);
>
>- snprintf(name, sizeof(name), "%-12s%d:%d", "PCAP TX", info->pid, 0);
>+ snprintf(name, sizeof(name), "%-12s%d:%d", "PCAP TX", info->pid, qid);
> rte_printf_status(" Process: %-*s ", 18, name);
>
> pkt_sizes = elt_count = i = 0;
>--
>1.9.1
>
>
>
Regards,
Keith
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-04-15 13:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-15 7:41 [dpdk-dev] [PATCH PktGen/PCAP] let multi tx queues with pcap work Zhouyi Zhou
2016-04-15 13:33 ` Wiles, Keith
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).