Message ID | 20230214062840.2434213-5-ke1.xu@intel.com (mailing list archive) |
---|---|
State | Accepted |
Headers | |
Series | Update vf_offload cases for DPDK-v23.03 validation. | |
Commit Message
diff --git a/tests/TestSuite_vf_offload.py b/tests/TestSuite_vf_offload.py index f3af2379..9475ef22 100644 --- a/tests/TestSuite_vf_offload.py +++ b/tests/TestSuite_vf_offload.py @@ -262,7 +262,7 @@ class TestVfOffload(TestCase): def filter_packets(self, packets): return [ p - for p in packets + for p in (packets if packets else []) if len(p.layers()) >= 3 and p.layers()[1] in {IP, IPv6, Dot1Q} and p.layers()[2] in {IP, IPv6, Dot1Q, UDP, TCP, SCTP, GRE, MPLS}