TWSD-1120 : VA Instance is not able to be created when the ports are selected .

Review Request #1118 — Created Oct. 28, 2025 and submitted — Latest diff uploaded

stevenku
AVX2
rel_avx_2_7_5
TWSD-1120
ngurunathan, timlai, wli

Fixed the issue that AVX5800 cannot automatically assign resources when creating large VA.

Root cause

Each PCIe device is identified by BDF (Bus:Device:Function).

Bus(8-bit):Device(5-bit):Function(3-bit)

→ Function IDs are only 3 bits long, so each PCIe device can have a maximum of 8 functions (0–7).

The AVX5800 SSL card slot does not support ARI, so only 7 VFs can be created (plus 1 PF, a total of 8).
Due to hardware limitations, the available resources cannot be correctly returned when executing va_resource_get_available().
Therefore, change the value of the AVX5800 variable ssls from 8 to 7.

  1. Login to AVX.
  2. Go to " VA > VA Instance > click on + "
  3. Provide details and select image size as "large"
  4. click on next and select mode as "Auto" for ports selection(No port is selected in "Auto mode")
  5. click on "Next"
  6. Then click on "Save"

testing run:

$ /ca/bin/res_budget large 1

return:

ssl1: dvf1 dvf2 dvf3 dvf4 dvf5 dvf6 dvf7
port1: vf1
port2: vf1
port3: vf1
port4: vf1
    Loading...