[dts] [PATCH V1] tests/vf_pmd_bonded: optimize scripts
Jiale Song
songx.jiale at intel.com
Mon Apr 24 13:02:07 CEST 2023
when vf cancels trust, it will clear the function of spoofchk and need
to be reset.
Signed-off-by: Jiale Song <songx.jiale at intel.com>
---
tests/TestSuite_vf_pmd_bonded.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/TestSuite_vf_pmd_bonded.py b/tests/TestSuite_vf_pmd_bonded.py
index ca3b2823..821eba7b 100644
--- a/tests/TestSuite_vf_pmd_bonded.py
+++ b/tests/TestSuite_vf_pmd_bonded.py
@@ -2151,6 +2151,9 @@ UDP(sport=srcport, dport=destport)/Raw(load="\x50"*%s)], iface="%s", count=%d, v
self.dut.send_expect(
"ip link set %s vf 0 trust off" % (self.dport_ifaces0), "# "
)
+ self.dut.send_expect(
+ "ip link set %s vf 0 spoofchk off" % (self.dport_ifaces0), "# "
+ )
def tear_down_all(self):
"""
--
2.25.1
More information about the dts
mailing list