test suite reviews and discussions
 help / color / mirror / Atom feed
From: "Han, YingyaX" <yingyax.han@intel.com>
To: "Ma, LihongX" <lihongx.ma@intel.com>, "dts@dpdk.org" <dts@dpdk.org>
Subject: Re: [dts] [PATCH V1] tests/vmdq: recorrect the dst mac of pcap
Date: Thu, 18 Jun 2020 02:12:38 +0000	[thread overview]
Message-ID: <BN7PR11MB28189022CC8E590A6B6BAACBFF9B0@BN7PR11MB2818.namprd11.prod.outlook.com> (raw)
In-Reply-To: <1592418562-325-1-git-send-email-lihongx.ma@intel.com>

[-- Attachment #1: Type: text/plain, Size: 1752 bytes --]


Tested-by: Han,YingyaX <yingyax.han@intel.com>

Best regards,
Yingya

-----Original Message-----
From: Ma, LihongX <lihongx.ma@intel.com> 
Sent: Thursday, June 18, 2020 2:29 AM
To: dts@dpdk.org; Han, YingyaX <yingyax.han@intel.com>
Cc: Ma, LihongX <lihongx.ma@intel.com>
Subject: [dts][PATCH V1] tests/vmdq: recorrect the dst mac of pcap

Signed-off-by: lihong <lihongx.ma@intel.com>
---
 tests/TestSuite_vmdq.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/tests/TestSuite_vmdq.py b/tests/TestSuite_vmdq.py index e5dcd82..162636f 100644
--- a/tests/TestSuite_vmdq.py
+++ b/tests/TestSuite_vmdq.py
@@ -166,11 +166,13 @@ class TestVmdq(TestCase):
         for _port in self.dut_ports:
             if _port % len(self.dut_ports) == 0 or len(self.dut_ports) % _port == 2:
                 txIntf = self.tester.get_local_port(self.dut_ports[_port + 1])
+                dst_port = _port + 1
             else:
                 txIntf = self.tester.get_local_port(self.dut_ports[_port - 1])
+                dst_port = _port - 1
             rxIntf = self.tester.get_local_port(self.dut_ports[_port])
-            self.tester.scapy_append('flows = [Ether(dst="%s")/Dot1Q(vlan=0)/("X"*%d)]'
-                                     % (self.destmac_port[txIntf], payload))
+            self.tester.scapy_append('flows = [Ether(dst="%s")/Dot1Q(vlan=0)/IP(src="1.2.3.4", dst="1.1.1.1")/("X"*%d)]'
+                                     % (self.destmac_port[dst_port], 
+ payload))
             pcap = os.sep.join([self.output_path, "%s-%d.pcap" % (self.suite_name, _port)])
             self.tester.scapy_append('wrpcap("%s", flows)' % pcap)
             self.tester.scapy_execute()
--
2.7.4


[-- Attachment #2: TestVmdq.log --]
[-- Type: application/octet-stream, Size: 547136 bytes --]

  reply	other threads:[~2020-06-18  2:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-17 18:29 lihong
2020-06-18  2:12 ` Han, YingyaX [this message]
2020-06-19  6:23 ` Tu, Lijuan

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=BN7PR11MB28189022CC8E590A6B6BAACBFF9B0@BN7PR11MB2818.namprd11.prod.outlook.com \
    --to=yingyax.han@intel.com \
    --cc=dts@dpdk.org \
    --cc=lihongx.ma@intel.com \
    /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).