DPDK patches and discussions
 help / color / mirror / Atom feed
From: Jijiang Liu <jijiang.liu@intel.com>
To: dev@dpdk.org
Subject: [dpdk-dev] [PATCH v2 9/9] app/testpmd:modify MAC address of csum forwarding
Date: Fri, 30 Oct 2015 21:00:34 +0800	[thread overview]
Message-ID: <1446210034-13750-10-git-send-email-jijiang.liu@intel.com> (raw)
In-Reply-To: <1446210034-13750-1-git-send-email-jijiang.liu@intel.com>

Modify MAC address of csum forwarding.
 
The change will affect on the csum fwd performance.
But I also think the change is necessary, or we cannot use csumonly fwd mode in a VM.

Signed-off-by: Jijiang Liu <jijiang.liu@intel.com>
---
 app/test-pmd/csumonly.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/app/test-pmd/csumonly.c b/app/test-pmd/csumonly.c
index e561dde..20d4274 100644
--- a/app/test-pmd/csumonly.c
+++ b/app/test-pmd/csumonly.c
@@ -622,6 +622,12 @@ pkt_burst_checksum_forward(struct fwd_stream *fs)
 		}
 		m->tso_segsz = info.tso_segsz;
 		m->ol_flags = ol_flags;
+		
+		ether_addr_copy(&peer_eth_addrs[fs->peer_addr],
+				&eth_hdr->d_addr);
+
+		ether_addr_copy(&ports[fs->tx_port].eth_addr,
+				&eth_hdr->s_addr);
 
 		/* if verbose mode is enabled, dump debug info */
 		if (verbose_level > 0) {
-- 
1.7.7.6

  parent reply	other threads:[~2015-10-30 13:01 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-30 13:00 [dpdk-dev] [PATCH v2 0/9] add vhost TX offload support Jijiang Liu
2015-10-30 13:00 ` [dpdk-dev] [PATCH v2 1/9] driver/virtio:add virtual addr for virtio net header Jijiang Liu
2015-10-30 13:00 ` [dpdk-dev] [PATCH v2 2/9] driver/virtio: record virtual address of " Jijiang Liu
2015-10-30 13:00 ` [dpdk-dev] [PATCH v2 3/9] driver/virtio:add vhost TX checksum support capability in virtio-net Jijiang Liu
2015-10-30 13:00 ` [dpdk-dev] [PATCH v2 4/9] driver/virtio:fill virtio device info for TX offload Jijiang Liu
2015-10-30 13:00 ` [dpdk-dev] [PATCH v2 5/9] driver/virtio:add vhost TSO support capability Jijiang Liu
2015-10-30 13:00 ` [dpdk-dev] [PATCH v2 6/9] driver/virtio:enqueue vhost TX offload Jijiang Liu
2015-10-30 13:00 ` [dpdk-dev] [PATCH v2 7/9] lib/librte_vhost:dequeue " Jijiang Liu
2015-10-30 13:00 ` [dpdk-dev] [PATCH v2 8/9] examples/vhost:support TX offload in vhost sample Jijiang Liu
2015-10-30 13:00 ` Jijiang Liu [this message]
2015-10-30 15:35 ` [dpdk-dev] [PATCH v2 0/9] add vhost TX offload support Tan, Jianfeng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1446210034-13750-10-git-send-email-jijiang.liu@intel.com \
    --to=jijiang.liu@intel.com \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).