k8snetworkplumbingwg / sriov-cni

DPDK & SR-IOV CNI plugin
Apache License 2.0
307 stars 146 forks source link

Dont iterate on non existing VF ID #191

Closed adrianchiris closed 3 years ago

adrianchiris commented 3 years ago

VF index start from 0, totalVfs holds the total number of VFs. loop should not reach totalVFs value.

e.g in a system where a PF has 4 VFs the corresponding VF indexes are: 0..3

Signed-off-by: Adrian Chiris adrianc@nvidia.com

adrianchiris commented 3 years ago

addresses #190

zshi-redhat commented 3 years ago

/cc @MichalGuzieniuk

MichalGuzieniuk commented 3 years ago

LGTM