[V1] tests/vf_pmd_bonded: optimize scripts

Message ID 20230424110207.114437-1-songx.jiale@intel.com (mailing list archive)
State Accepted
Headers
Series [V1] tests/vf_pmd_bonded: optimize scripts |

Checks

Context Check Description
ci/Intel-dts-format-test success Testing OK
ci/Intel-dts-suite-test warning SKIPPED

Commit Message

Jiale, SongX April 24, 2023, 11:02 a.m. UTC
when vf cancels trust, it will clear the function of spoofchk and need
to be reset.

Signed-off-by: Jiale Song <songx.jiale@intel.com>
---
 tests/TestSuite_vf_pmd_bonded.py | 3 +++
 1 file changed, 3 insertions(+)
  

Comments

Tu, Lijuan April 26, 2023, 2:44 a.m. UTC | #1
On Mon, 24 Apr 2023 11:02:07 +0000, Jiale Song <songx.jiale@intel.com> wrote:
> when vf cancels trust, it will clear the function of spoofchk and need
> to be reset.
> 
> Signed-off-by: Jiale Song <songx.jiale@intel.com>


Applied, thanks
  

Patch

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):
         """