diff options
-rw-r--r-- | fdio.infra.ansible/roles/vpp_device/files/csit-initialize-vfs.sh | 7 | ||||
-rw-r--r-- | resources/libraries/bash/function/device.sh | 6 |
2 files changed, 10 insertions, 3 deletions
diff --git a/fdio.infra.ansible/roles/vpp_device/files/csit-initialize-vfs.sh b/fdio.infra.ansible/roles/vpp_device/files/csit-initialize-vfs.sh index 4d2c22e7f5..afa84ae15a 100644 --- a/fdio.infra.ansible/roles/vpp_device/files/csit-initialize-vfs.sh +++ b/fdio.infra.ansible/roles/vpp_device/files/csit-initialize-vfs.sh @@ -28,7 +28,12 @@ for pci_addr in ${PCI_WHITELIST[@]}; do # SR-IOV initialization case "${1:-start}" in "start" ) - sriov_totalvfs=$(< "${pci_path}"/sriov_totalvfs) + if [ $(< "${pci_path}"/sriov_totalvfs) -gt 128 ] + then + sriov_totalvfs=128 + else + sriov_totalvfs=$(< "${pci_path}"/sriov_totalvfs) + fi ;; "stop" ) sriov_totalvfs=0 diff --git a/resources/libraries/bash/function/device.sh b/resources/libraries/bash/function/device.sh index eab31a65a6..0f1c6f6de6 100644 --- a/resources/libraries/bash/function/device.sh +++ b/resources/libraries/bash/function/device.sh @@ -266,9 +266,11 @@ function get_available_interfaces () { "1n_skx") # Add Intel Corporation XL710/X710 Virtual Function to the # whitelist. + # Add Intel Corporation E810 Virtual Function to the + # whitelist. pci_id="0x154c\|0x1889" - tg_netdev=(ens1 enp134) - dut1_netdev=(ens5 enp175) + tg_netdev=(ens1 enp94 enp134) + dut1_netdev=(ens5 enp175 enp175) ports_per_nic=2 ;; "1n_tx2") |