fix(gso): Repair linux interface name detection 63/41963/2
authorVratko Polak <[email protected]>
Thu, 5 Dec 2024 09:44:09 +0000 (10:44 +0100)
committerVratko Polak <[email protected]>
Thu, 5 Dec 2024 09:44:09 +0000 (10:44 +0100)
+ Set GSO_FALSE tag on non-gso suite.

Change-Id: I32b6ff2f492a0dd8f2fe47ef5435c8d0e3318406
Signed-off-by: Vratko Polak <[email protected]>
resources/libraries/python/IPUtil.py
tests/vpp/perf/gso/2n1l-10ge2p1x710-ethip4-ip4base-2vhost-iperf3-mrr.robot

index d7996cc..672aa1a 100644 (file)
@@ -394,16 +394,12 @@ class IPUtil:
         :raises RuntimeError: If cannot get the information about interfaces.
         """
         cmd = f"grep '{pci_addr}' /sys/class/net/*/device/uevent"
-        ret_code, stdout, stderr = exec_cmd(node, cmd, timeout=30)
-        if ret_code != 0:
-            return None
-
+        msg = "Could not get information about interfaces"
+        stdout, stderr = exec_cmd_no_error(node, cmd, timeout=30, err_msg=msg)
         try:
-            stdout.split("/")[4]
+            return stdout.split("/")[4]
         except IndexError:
-            raise RuntimeError(
-                f"Could not get information about interfaces:\n{stderr}"
-            )
+            raise RuntimeError(f"{msg}:\n{stderr}")
 
     @staticmethod
     def set_linux_interface_up(
index f5d6db5..d41b22f 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (c) 2023 Cisco and/or its affiliates.
+# Copyright (c) 2024 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:
@@ -16,7 +16,7 @@
 |
 | Force Tags | 2_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | MRR
 | ... | NIC_Intel-X710 | IP4FWD | BASE | IP4BASE | DRV_VHOST
-| ... | RXQ_SIZE_1024 | TXQ_SIZE_1024 | GSO_TRUE
+| ... | RXQ_SIZE_1024 | TXQ_SIZE_1024 | GSO_FALSE
 | ... | ethip4-ip4base-2vhost-iperf3
 |
 | Suite Setup | Setup suite topology interfaces | iPerf3