[V3] tests/multiprocess: modify script to suport i40e driver
Checks
Commit Message
1.add IPv6_RAW type packet.
2.i40e driver only rss for IP and IPv6 packets by default, modify the case to support i40e driver.
Signed-off-by: Jiale Song <songx.jiale@intel.com>
---
framework/packet.py | 1 +
test_plans/multiprocess_test_plan.rst | 1 +
tests/TestSuite_multiprocess.py | 15 +++++++++++----
3 files changed, 13 insertions(+), 4 deletions(-)
Comments
On Wed, 29 Jun 2022 17:35:53 +0000, Jiale Song <songx.jiale@intel.com> wrote:
> 1.add IPv6_RAW type packet.
> 2.i40e driver only rss for IP and IPv6 packets by default, modify the case to support i40e driver.
>
> Signed-off-by: Jiale Song <songx.jiale@intel.com>
Applied, thanks
@@ -420,6 +420,7 @@ class Packet(object):
"ARP": {"layers": ["ether", "arp"], "cfgload": False},
"LLDP": {"layers": ["ether", "lldp"], "cfgload": False},
"IP_RAW": {"layers": ["ether", "ipv4", "raw"], "cfgload": True},
+ "IPv6_RAW": {"layers": ["ether", "ipv6", "raw"], "cfgload": True},
"TCP": {"layers": ["ether", "ipv4", "tcp", "raw"], "cfgload": True},
"UDP": {"layers": ["ether", "ipv4", "udp", "raw"], "cfgload": True},
"VLAN_UDP": {
@@ -229,6 +229,7 @@ summarize all received packets and check whether it is bigger than or equal to t
2. send some packets,the number of packets is a random value between 20 and 256, packet type including IPV6/4,TCP/UDP,
refer to Random_Packet
+ Note::I40e only rss for IP and IPv6 packets by default
3. stop all process and check output::
@@ -164,10 +164,17 @@ class TestMultiprocess(TestCase):
def random_packet(self, pkt_num):
pkt = Packet()
- pkt.generate_random_pkts(
- pktnum=pkt_num,
- dstmac="00:11:22:33:44:55",
- )
+ if self.kdriver == "i40e":
+ pkt.generate_random_pkts(
+ pktnum=pkt_num,
+ dstmac="00:11:22:33:44:55",
+ random_type=["IP_RAW", "IPv6_RAW"],
+ )
+ else:
+ pkt.generate_random_pkts(
+ pktnum=pkt_num,
+ dstmac="00:11:22:33:44:55",
+ )
pkt.send_pkt(crb=self.tester, tx_port=self.tester_ifaces[0], count=1)
def specify_packet(self, que_num):