aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/robot/shared
diff options
context:
space:
mode:
authorPeter Mikus <peter.mikus@icloud.com>2025-02-19 14:16:33 +0100
committerPeter Mikus <peter.mikus@icloud.com>2025-02-20 11:39:43 +0100
commit006e5cc5b4ba1972d6e0f9ff9f3a5332336bad85 (patch)
tree069b420661fbce16372cae6f86f048776b04bb84 /resources/libraries/robot/shared
parent10e9ea0af978882da73800c948b9141d37c8fde3 (diff)
feat(core): octeon plugin introduction
Signed-off-by: Peter Mikus <peter.mikus@icloud.com> Change-Id: I9f1193894e531a6eb946bef116d65788abb3de31
Diffstat (limited to 'resources/libraries/robot/shared')
-rw-r--r--resources/libraries/robot/shared/interfaces.robot67
1 files changed, 44 insertions, 23 deletions
diff --git a/resources/libraries/robot/shared/interfaces.robot b/resources/libraries/robot/shared/interfaces.robot
index dfb6482859..393811578e 100644
--- a/resources/libraries/robot/shared/interfaces.robot
+++ b/resources/libraries/robot/shared/interfaces.robot
@@ -134,31 +134,52 @@
| | Run Keyword If | ${index} >= 0 | Return From Keyword
| | FOR | ${dut} | IN | @{duts}
| | | Stop VPP Service | ${nodes['${dut}']}
-| | | Unbind PCI Devices From Other Driver | ${nodes['${dut}']} | vfio-pci |
-| | | ... | @{${dut}_pf_pci}
-| | | Run keyword | ${dut}.Add DPDK Dev | @{${dut}_pf_pci}
-| | | Run Keyword If | ${dpdk_enable_tcp_udp_checksum}
-| | | ... | ${dut}.Add DPDK Enable TCP UDP Checksum
-| | | Run Keyword If | ${dpdk_no_tx_checksum_offload}
-| | | ... | ${dut}.Add DPDK No Tx Checksum Offload
-| | | Run Keyword | ${dut}.Add DPDK Log Level | debug
-| | | Run Keyword | ${dut}.Add DPDK Uio Driver | vfio-pci
-| | | Run Keyword | ${dut}.Add DPDK Dev Default RXQ | ${rxq_count_int}
-| | | Run Keyword If | '${nic_name}' == 'Amazon-Nitro-100G'
-| | | ... | ${dut}.Add DPDK Dev Default Devargs | "llq_policy=2"
-| | | Run Keyword If | '${nic_name}' == 'Amazon-Nitro-200G'
-| | | ... | ${dut}.Add DPDK Dev Default Devargs | "llq_policy=2"
-| | | Run Keyword If | not ${jumbo}
-| | | ... | ${dut}.Add DPDK No Multi Seg
-| | | Run Keyword If | ${nic_rxq_size} > 0
-| | | ... | ${dut}.Add DPDK Dev Default RXD | ${nic_rxq_size}
-| | | Run Keyword If | ${nic_txq_size} > 0
-| | | ... | ${dut}.Add DPDK Dev Default TXD | ${nic_txq_size}
-| | | Run Keyword If | '${crypto_type}' != '${None}'
-| | | ... | ${dut}.Add DPDK Cryptodev | ${dp_count_int}
-| | | Run Keyword | ${dut}.Add DPDK Max Simd Bitwidth | ${GRAPH_NODE_VARIANT}
+| | | ${plugin}= | Get From List | ${plugins_to_enable} | 0
+| | | Run Keyword | Pre-initialize layer vfio-pci for ${plugin} | ${dut}
| | END
+| Pre-initialize layer vfio-pci for dev_octeon_plugin.so
+| | [Documentation]
+| | ... | Pre-initialize vfio-pci driver with dev_octeon_plugin.so to startup
+| | ... | config on all DUTs.
+| | [Arguments] | ${dut}
+| | Run Keyword If | ${nic_vfs}
+| | ... | ${dut}.Add OCTEON Dev | @{${dut}_prevf_pci}
+| | Run Keyword If | not ${nic_vfs}
+| | ... | Unbind PCI Devices From Other Driver | ${nodes['${dut}']} | vfio-pci |
+| | ... | ... | @{${dut}_pf_pci}
+| | Run Keyword If | not ${nic_vfs}
+| | ... | ${dut}.Add OCTEON Dev | @{${dut}_pf_pci}
+
+| Pre-initialize layer vfio-pci for dpdk_plugin.so
+| | [Documentation]
+| | ... | Pre-initialize vfio-pci driver with dev_octeon_plugin.so to startup
+| | ... | config on all DUTs.
+| | [Arguments] | ${dut}
+| | Unbind PCI Devices From Other Driver | ${nodes['${dut}']} | vfio-pci |
+| | ... | @{${dut}_pf_pci}
+| | Run keyword | ${dut}.Add DPDK Dev | @{${dut}_pf_pci}
+| | Run Keyword If | ${dpdk_enable_tcp_udp_checksum}
+| | ... | ${dut}.Add DPDK Enable TCP UDP Checksum
+| | Run Keyword If | ${dpdk_no_tx_checksum_offload}
+| | ... | ${dut}.Add DPDK No Tx Checksum Offload
+| | Run Keyword | ${dut}.Add DPDK Log Level | debug
+| | Run Keyword | ${dut}.Add DPDK Uio Driver | vfio-pci
+| | Run Keyword | ${dut}.Add DPDK Dev Default RXQ | ${rxq_count_int}
+| | Run Keyword If | '${nic_name}' == 'Amazon-Nitro-100G'
+| | ... | ${dut}.Add DPDK Dev Default Devargs | "llq_policy=2"
+| | Run Keyword If | '${nic_name}' == 'Amazon-Nitro-200G'
+| | ... | ${dut}.Add DPDK Dev Default Devargs | "llq_policy=2"
+| | Run Keyword If | not ${jumbo}
+| | ... | ${dut}.Add DPDK No Multi Seg
+| | Run Keyword If | ${nic_rxq_size} > 0
+| | ... | ${dut}.Add DPDK Dev Default RXD | ${nic_rxq_size}
+| | Run Keyword If | ${nic_txq_size} > 0
+| | ... | ${dut}.Add DPDK Dev Default TXD | ${nic_txq_size}
+| | Run Keyword If | '${crypto_type}' != '${None}'
+| | ... | ${dut}.Add DPDK Cryptodev | ${dp_count_int}
+| | Run Keyword | ${dut}.Add DPDK Max Simd Bitwidth | ${GRAPH_NODE_VARIANT}
+
| Pre-initialize layer avf on all DUTs
| | [Documentation]
| | ... | Pre-initialize avf driver. Currently no operation.