DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] examples/vmdq: Fix core id issue for TX burst
@ 2014-06-12  7:10 Ouyang Changchun
  2014-06-17  9:59 ` Thomas Monjalon
  0 siblings, 1 reply; 2+ messages in thread
From: Ouyang Changchun @ 2014-06-12  7:10 UTC (permalink / raw)
  To: dev

This patch fixes a core id issue in sample vmdq, in case core mask doesn't start
with lcore_id 0 but 20, for instance, it should use core_id instead of lcore_id.

Signed-off-by: Ouyang Changchun <changchun.ouyang@intel.com>
Tested-by: Waterman Cao <waterman.cao@intel.com> This patch includes 1 file, and has been tested by Intel.
Please see information as the following:
Fedora 20 X86_64, Linux Kernel 3.13.9, GCC 4.8.2 Intel Xeon CPU E5-2680 v2 @ 2.80GHz
NIC: Intel Niantic 82599

---
 examples/vmdq/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/vmdq/main.c b/examples/vmdq/main.c
index 0f52bdd..4dde37a 100644
--- a/examples/vmdq/main.c
+++ b/examples/vmdq/main.c
@@ -534,7 +534,7 @@ lcore_main(__attribute__((__unused__)) void* dummy)
 					update_mac_address(buf[i], dport);
 
 				const uint16_t txCount = rte_eth_tx_burst(dport,
-					lcore_id, buf, rxCount);
+					core_id, buf, rxCount);
 
 				if (txCount != rxCount) {
 					for (i = txCount; i < rxCount; i++)
-- 
1.9.0

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

* Re: [dpdk-dev] [PATCH] examples/vmdq: Fix core id issue for TX burst
  2014-06-12  7:10 [dpdk-dev] [PATCH] examples/vmdq: Fix core id issue for TX burst Ouyang Changchun
@ 2014-06-17  9:59 ` Thomas Monjalon
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Monjalon @ 2014-06-17  9:59 UTC (permalink / raw)
  To: Ouyang Changchun; +Cc: dev

2014-06-12 15:10, Ouyang Changchun:
> This patch fixes a core id issue in sample vmdq, in case core mask doesn't start
> with lcore_id 0 but 20, for instance, it should use core_id instead of lcore_id.
> 
> Signed-off-by: Ouyang Changchun <changchun.ouyang@intel.com>
> Tested-by: Waterman Cao <waterman.cao@intel.com>

Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>

Applied for version 1.7.0.

Thanks
-- 
Thomas

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

end of thread, other threads:[~2014-06-17  9:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-12  7:10 [dpdk-dev] [PATCH] examples/vmdq: Fix core id issue for TX burst Ouyang Changchun
2014-06-17  9:59 ` Thomas Monjalon

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).