[V1,5/8] tests/vlan_ethertype_config: modify script and test plan to support i40e fimware > 8.3
Commit Message
Modify script and test plan to i40e support fimware > 8.3.
When the fimrware > 8.3, if the filter is to take effect need to enable
extend.
Signed-off-by: Weiyuan Li <weiyuanx.li@intel.com>
---
tests/TestSuite_vlan_ethertype_config.py | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
@@ -194,6 +194,13 @@ class TestVlanEthertypeConfig(TestCase):
self.dut.send_expect(
"vlan set filter on %s" % dutRxPortId, "testpmd> "
)
+ if self.kdriver == "i40e" and self.nic not in [
+ "I40E_10G-10G_BASE_T_X722",
+ "I40E_10G-SFP_X722",
+ ]:
+ self.dut.send_expect(
+ "vlan set extend on %s" % dutRxPortId, "testpmd> "
+ )
self.dut.send_expect("start", "testpmd> ")
self.check_vlan_packets(rx_vlan, tpid, self.rxItf, False)
# test vlan filter off
@@ -209,8 +216,13 @@ class TestVlanEthertypeConfig(TestCase):
random_vlan = random.randint(1, MAX_VLAN - 1)
rx_vlans = [1, random_vlan, MAX_VLAN]
self.dut.send_expect("set fwd mac", "testpmd> ")
- self.dut.send_expect("vlan set filter on %s" % dutRxPortId, "testpmd> ")
+ self.dut.send_expect("vlan set filter on %s" % dutRxPortId, "testpmd> ")
self.dut.send_expect("vlan set strip off %s" % dutRxPortId, "testpmd> ", 20)
+ if self.kdriver == "i40e" and self.nic not in [
+ "I40E_10G-10G_BASE_T_X722",
+ "I40E_10G-SFP_X722",
+ ]:
+ self.dut.send_expect("vlan set extend on %s" % dutRxPortId, "testpmd> ")
self.dut.send_expect("start", "testpmd> ")
# caium_a063 card support only default '0x8100' tpid in rx mode