fix(dpdk): CX7 support 68/38968/2 oper-230605
authorpmikus <peter.mikus@protonmail.ch>
Fri, 2 Jun 2023 11:52:16 +0000 (11:52 +0000)
committerPeter Mikus <peter.mikus@protonmail.ch>
Fri, 2 Jun 2023 11:56:57 +0000 (11:56 +0000)
Signed-off-by: pmikus <peter.mikus@protonmail.ch>
Change-Id: Ib98b25bd3c98b5e6dbcb1bfe8478bd41bf37d71c

fdio.infra.ansible/roles/docker_images/files/base/Dockerfile
fdio.infra.ansible/roles/docker_images/templates/docker-compose-sut.yaml.j2
resources/libraries/python/DPDK/TestpmdTest.py

index 5a0ad8a..6f859d9 100644 (file)
@@ -33,6 +33,7 @@ RUN apt-get -q update \
         libapr1 \
         libblas-dev \
         libffi-dev \
+        libibverbs-dev \
         liblapack-dev \
         libmbedcrypto7 \
         libmbedtls14 \
@@ -57,6 +58,7 @@ RUN apt-get -q update \
         python3-setuptools \
         python3-virtualenv \
         qemu-system \
+        rdma-core \
         rsyslog \
         screen \
         socat \
index d24ea02..79f0f71 100644 (file)
@@ -4,6 +4,8 @@ services:
     build:
       context: "base/"
       dockerfile: "Dockerfile"
+    cap_add:
+      - NET_RAW
     command: ["/usr/sbin/sshd","-D", "-p", "6001"]
     expose:
       - "6001"
@@ -47,6 +49,8 @@ services:
     build:
       context: "base/"
       dockerfile: "Dockerfile"
+    cap_add:
+      - NET_RAW
     command: ["/usr/sbin/sshd","-D", "-p", "6002"]
     expose:
       - "6002"
index 091110f..f2e1efa 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (c) 2022 Cisco and/or its affiliates.
+# Copyright (c) 2023 Cisco and/or its affiliates.
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # You may obtain a copy of the License at:
@@ -27,7 +27,7 @@ class TestpmdTest:
     """
     This class start testpmd on topology nodes and check if properly started.
     """
-    
+
     @staticmethod
     def start_testpmd_on_all_duts(
             nodes, topology_info, phy_cores, rx_queues=None, jumbo_frames=False,
@@ -88,6 +88,10 @@ class TestpmdTest:
             if u"DUT" in node:
                 for i in range(3):
                     try:
+                        nic_model = nodes[node]["interfaces"][if1]["model"]
+                        if "Mellanox-CX7VEAT" in nic_model:
+                            # Does not support lsc interrupt.
+                            break
                         TestpmdTest.check_testpmd(nodes[node])
                         break
                     except RuntimeError: