From: Yan Xia <yanx.xia@intel.com>
To: dts@dpdk.org
Cc: Yan Xia <yanx.xia@intel.com>
Subject: [dts] [PATCH V2 2/2] tests/vf_daemon: delete test_mac_antispoof
Date: Tue, 26 Oct 2021 13:28:01 +0000 [thread overview]
Message-ID: <20211026132801.74272-3-yanx.xia@intel.com> (raw)
In-Reply-To: <20211026132801.74272-1-yanx.xia@intel.com>
comfirm with Tu,Lijuan and Lin,Xueqin, delete the case
Signed-off-by: Yan Xia <yanx.xia@intel.com>
---
tests/TestSuite_vf_daemon.py | 53 ------------------------------------
1 file changed, 53 deletions(-)
diff --git a/tests/TestSuite_vf_daemon.py b/tests/TestSuite_vf_daemon.py
index 4d6ae58f..62996ade 100644
--- a/tests/TestSuite_vf_daemon.py
+++ b/tests/TestSuite_vf_daemon.py
@@ -517,59 +517,6 @@ class TestVfDaemon(TestCase):
out = self.vm0_testpmd.execute_cmd('show port stats 0')
self.verify("RX-packets: 40" in out,
"Failed to enable all queues drop!!!")
-
-
- def test_mac_antispoof(self):
- """
- Enable/disable mac anti-spoof for a VF from PF
- """
- fake_mac = '00:11:22:33:44:55'
- time.sleep(5)
- self.vm0_dut.send_expect("sed -i -e '/int r;/a " +\
- "\ struct rte_ether_addr fake_mac = {.addr_bytes = {0x00, 0x11, 0x22, 0x33, 0x44, 0x55},};'" +\
- " app/test-pmd/macswap_sse.h", "# ", 30)
- line_num = self.vm0_dut.send_expect("sed -n '/_mm_storeu_si128/=' app/test-pmd/macswap_sse.h |sed -n 5p", "# ",30)
- self.vm0_dut.send_expect("sed -i -e '%sa\\rte_ether_addr_copy(&fake_mac, ð_hdr[0]->s_addr);'" % str(line_num)+\
- " app/test-pmd/macswap_sse.h", "# ", 30)
- time.sleep(3)
-
- self.vm0_dut.build_install_dpdk(self.target)
- time.sleep(5)
-
- self.check_vf_link_status()
- self.vf0_mac = self.vm0_testpmd.get_port_mac(0)
-
- self.vm0_testpmd.execute_cmd('set fwd macswap')
- self.dut_testpmd.execute_cmd('set vf mac antispoof 0 0 off')
- self.vm0_testpmd.execute_cmd('start')
- time.sleep(5)
-
- dumpout = self.send_and_macstrip(self.vf0_mac)
- out = self.vm0_testpmd.execute_cmd('stop')
-
- self.verify(fake_mac in dumpout,
- "Failed to disable vf mac anspoof!!!")
- self.verify("RX-packets: 1" in out, "Failed to receive packet!!!")
- self.verify("TX-packets: 1" in out,
- "Failed to disable mac antispoof!!!")
-
- self.dut_testpmd.execute_cmd('set vf mac antispoof 0 0 on')
- self.vm0_testpmd.execute_cmd('start')
- time.sleep(3)
- dumpout = self.send_and_macstrip(self.vf0_mac)
- out = self.vm0_testpmd.execute_cmd('stop')
- self.verify(fake_mac not in dumpout, "Failed to enable vf mac anspoof!!!")
- self.verify("RX-packets: 1" in out, "Failed to receive packet!!!")
- self.verify("TX-packets: 0" in out, "Failed to enable mac antispoof!!!")
-
- self.vm0_testpmd.quit()
- self.dut_testpmd.quit()
- self.vm0_dut.send_expect("sed -i '/struct rte_ether_addr fake_mac = {.addr_bytes = " +\
- "{0x00, 0x11, 0x22, 0x33, 0x44, 0x55},};/d' app/test-pmd/macswap_sse.h", "# ", 30)
- self.vm0_dut.send_expect("sed -i '%sd'" % line_num +\
- " app/test-pmd/macswap_sse.h", "# ", 30)
- self.vm0_dut.build_install_dpdk(self.target)
-
def test_vf_mac_set(self):
"""
--
2.33.1
next prev parent reply other threads:[~2021-10-26 5:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-26 13:27 [dts] [PATCH V2 0/2] *** delete test_mac_antispoof *** Yan Xia
2021-10-26 13:28 ` [dts] [PATCH V2 1/2] test_plans/vf_daemon: delete test_mac_antispoof Yan Xia
2021-10-26 6:48 ` Lin, Xueqin
2021-10-26 13:28 ` Yan Xia [this message]
2021-10-26 6:48 ` [dts] [PATCH V2 2/2] tests/vf_daemon: " Lin, Xueqin
2021-10-26 7:51 ` 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=20211026132801.74272-3-yanx.xia@intel.com \
--to=yanx.xia@intel.com \
--cc=dts@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).