X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Flibraries%2Frobot%2Fshared%2Finterfaces.robot;h=7d27ac563c3f367f7255c6425995f3eff044920e;hb=1c1d5cbe67254f0457d8f27acb32882eded47b67;hp=5f743e6f18276146928ab460eb721f11eed0fc41;hpb=a00151f420029b9022ec9b442fceb8a9247bdc22;p=csit.git diff --git a/resources/libraries/robot/shared/interfaces.robot b/resources/libraries/robot/shared/interfaces.robot index 5f743e6f18..7d27ac563c 100644 --- a/resources/libraries/robot/shared/interfaces.robot +++ b/resources/libraries/robot/shared/interfaces.robot @@ -114,6 +114,8 @@ | | ... | Pre-initialize vfio-pci driver by adding related sections to startup | | ... | config on all DUTs. | | +| | ${index}= | Get Index From List | ${TEST TAGS} | DPDK +| | Run Keyword If | ${index} >= 0 | Return From Keyword | | FOR | ${dut} | IN | @{duts} | | | Run keyword | ${dut}.Add DPDK Dev | @{${dut}_pf_pci} | | | Run Keyword If | ${dpdk_no_tx_checksum_offload} @@ -143,9 +145,29 @@ | Pre-initialize layer rdma-core on all DUTs | | [Documentation] -| | ... | Pre-initialize rdma-core driver. Currently no operation. +| | ... | Pre-initialize rdma-core driver. | | -| | No operation +| | FOR | ${dut} | IN | @{duts} +| | | Set Interface Flow Control +| | | ... | ${nodes['${dut}']} | ${${dut}_pf_pci} | rx="off" | tx="off" +| | | Set PCI Parameter +| | | ... | ${nodes['${dut}']} | ${${dut}_pf_pci} | key="68.w" | value="3BCD" +| | END + +| Pre-initialize layer mlx5_core on all DUTs +| | [Documentation] +| | ... | Pre-initialize mlx5_core driver. +| | +| | FOR | ${dut} | IN | @{duts} +| | | Run Keyword If | ${jumbo} +| | | ... | Set Interface MTU | ${nodes['${dut}']} | ${${dut}_pf_pci} | mtu=9200 +| | | ... | ELSE +| | | ... | Set Interface MTU | ${nodes['${dut}']} | ${${dut}_pf_pci} | mtu=1500 +| | | Set Interface Flow Control +| | | ... | ${nodes['${dut}']} | ${${dut}_pf_pci} | rx="off" | tx="off" +| | | Set PCI Parameter +| | | ... | ${nodes['${dut}']} | ${${dut}_pf_pci} | key="68.w" | value="3BCD" +| | END | Initialize layer driver | | [Documentation] @@ -286,6 +308,13 @@ | | ... | rxq_size=${nic_rxq_size} | txq_size=${nic_txq_size} | | Set List Value | ${${dut}_vf${pf}} | 0 | ${_rdma} +| Initialize layer mlx5_core on node +| | [Documentation] +| | ... | Initialize mlx5_core interfaces on DUT on NIC PF. +| | ... | Currently no operation. +| | +| | No operation + | Initialize layer interface | | [Documentation] | | ... | Physical interfaces variables to be created on all DUTs.