[dts] [PATCH V1 2/2] tests/TestSuite_kernelpf_iavf:adapt to I40E driver update
Ma, LihongX
lihongx.ma at intel.com
Fri Oct 30 02:56:33 CET 2020
> -----Original Message-----
> From: dts <dts-bounces at dpdk.org> On Behalf Of Xie wei
> Sent: Thursday, October 29, 2020 3:40 PM
> To: dts at dpdk.org
> Cc: Xie, WeiX <weix.xie at intel.com>
> Subject: [dts] [PATCH V1 2/2] tests/TestSuite_kernelpf_iavf:adapt to I40E
> driver update
>
> *Update i40e driver to 2.13.10, while vlan tag is removed, the pkts with
> vlan tag shall not be received.
>
> Signed-off-by: Xie wei <weix.xie at intel.com>
> ---
> tests/TestSuite_kernelpf_iavf.py | 28 ++++++++++++++++++++++------
> 1 file changed, 22 insertions(+), 6 deletions(-)
>
> diff --git a/tests/TestSuite_kernelpf_iavf.py
> b/tests/TestSuite_kernelpf_iavf.py
> index da925109..adeac42f 100644
> --- a/tests/TestSuite_kernelpf_iavf.py
> +++ b/tests/TestSuite_kernelpf_iavf.py
> @@ -428,8 +428,12 @@ class TestKernelpfIavf(TestCase):
> out = self.send_and_getout(vlan=random_vlan, pkt_type="VLAN_UDP")
> tcpdump_out = self.get_tcpdump_package()
> receive_pkt = re.findall('vlan %s' % random_vlan, tcpdump_out)
> - self.verify(len(receive_pkt) == 2, "fail to tester received vlan
> packet!!!")
> - self.verify(self.vf_mac in out, "Failed to received vlan
> packet!!!")
> + if self.kdriver == 'ice':
> + self.verify(len(receive_pkt) == 2, "fail to tester received
> vlan packet!!!")
> + self.verify(self.vf_mac in out, "Failed to received vlan
> packet!!!")
> + else:
> + self.verify(len(receive_pkt) == 1, "fail to tester received
> vlan packet!!!")
> + self.verify(self.vf_mac not in out, "Received vlan
> + packet!!!")
Some of the cases not set the cmd 'vlan filter on' , the modify do not match your description ,please check it.
Regards,
Ma,lihong
More information about the dts
mailing list