* Re: [dts] [PATCH V1] tests/softnic: set mac mode for CVL nic
2021-03-12 10:43 [dts] [PATCH V1] tests/softnic: set mac mode for CVL nic xiewei
@ 2021-03-12 2:20 ` Xie, WeiX
2021-03-15 7:19 ` Tu, Lijuan
1 sibling, 0 replies; 3+ messages in thread
From: Xie, WeiX @ 2021-03-12 2:20 UTC (permalink / raw)
To: dts
[-- Attachment #1: Type: text/plain, Size: 253 bytes --]
> -----Original Message-----
> From: Xie, WeiX
> Sent: Friday, March 12, 2021 6:43 PM
> To: dts@dpdk.org
> Cc: Xie, WeiX <weix.xie@intel.com>
> Subject: [PATCH V1] tests/softnic: set mac mode for CVL nic
Tested-by: Xie Wei <weix.xie@intel.com>
[-- Attachment #2: TestSoftnic.log --]
[-- Type: application/octet-stream, Size: 94954 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* [dts] [PATCH V1] tests/softnic: set mac mode for CVL nic
@ 2021-03-12 10:43 xiewei
2021-03-12 2:20 ` Xie, WeiX
2021-03-15 7:19 ` Tu, Lijuan
0 siblings, 2 replies; 3+ messages in thread
From: xiewei @ 2021-03-12 10:43 UTC (permalink / raw)
To: dts; +Cc: xiewei
if don't set fwd mode, it is io fwd by default.
but for CVL nic, if the dst mac of send packet is its own,
the packet cannot be forwarded, so the packet can't be captured by tcpdump.
so set mac mode for CVL nic.
Signed-off-by: xiewei <weix.xie@intel.com>
---
tests/TestSuite_softnic.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/TestSuite_softnic.py b/tests/TestSuite_softnic.py
index 0795b45c..e4934ffe 100644
--- a/tests/TestSuite_softnic.py
+++ b/tests/TestSuite_softnic.py
@@ -174,6 +174,8 @@ class TestSoftnic(TestCase):
self.pmdout.start_testpmd(list(range(3)), "--forward-mode=softnic --portmask=0x2",
eal_param="-s 0x4 %s --vdev 'net_softnic0,firmware=/tmp/%s,cpu_id=1,conn_port=8086'" % (
self.eal_param, 'nat_firmware.cli'))
+ if self.nic in ["columbiaville_100g", "columbiaville_25g", "columbiaville_25gx2"]:
+ self.dut.send_expect("set fwd mac", "testpmd>")
self.dut.send_expect("start", "testpmd>")
# src ip tcp
for j in range(2):
--
2.17.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dts] [PATCH V1] tests/softnic: set mac mode for CVL nic
2021-03-12 10:43 [dts] [PATCH V1] tests/softnic: set mac mode for CVL nic xiewei
2021-03-12 2:20 ` Xie, WeiX
@ 2021-03-15 7:19 ` Tu, Lijuan
1 sibling, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2021-03-15 7:19 UTC (permalink / raw)
To: Xie, WeiX, dts; +Cc: Xie, WeiX
> if don't set fwd mode, it is io fwd by default.
> but for CVL nic, if the dst mac of send packet is its own, the packet cannot be
> forwarded, so the packet can't be captured by tcpdump.
> so set mac mode for CVL nic.
>
> Signed-off-by: xiewei <weix.xie@intel.com>
Applied.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-03-15 7:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-12 10:43 [dts] [PATCH V1] tests/softnic: set mac mode for CVL nic xiewei
2021-03-12 2:20 ` Xie, WeiX
2021-03-15 7:19 ` Tu, Lijuan
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).