[dts][PATCH V1 1/2] test_plans/ice_dcf_switch_filter: optimize max vfs script
Tu, Lijuan
lijuan.tu at intel.com
Tue Mar 7 06:44:18 CET 2023
> -----Original Message-----
> From: Hongbo Li <hongbox.li at intel.com>
> Sent: Tuesday, February 21, 2023 10:51 PM
> To: dts at dpdk.org
> Cc: Li, HongboX <hongbox.li at intel.com>
> Subject: [dts][PATCH V1 1/2] test_plans/ice_dcf_switch_filter: optimize max vfs
> script
>
> Change the method of obtaining the maximum number of VF that can be
> created on one PF
>
> Signed-off-by: Hongbo Li <hongbox.li at intel.com>
> ---
> .../ice_dcf_switch_filter_test_plan.rst | 28 ++++++++++---------
> 1 file changed, 15 insertions(+), 13 deletions(-)
>
> diff --git a/test_plans/ice_dcf_switch_filter_test_plan.rst
> b/test_plans/ice_dcf_switch_filter_test_plan.rst
> index 63ef56e0..488683b0 100644
> --- a/test_plans/ice_dcf_switch_filter_test_plan.rst
> +++ b/test_plans/ice_dcf_switch_filter_test_plan.rst
> @@ -2791,40 +2791,42 @@ are dropped.
> Test case: Max vfs
> ==================
>
> -Description: 256 VFs can be created on a Intel® Ethernet 800 Series NIC, if
> 2*100G NIC, each PF -can create 128 VFs, else if 4*25G NIC, each PF can create
> 64 VFs. This -case is used to test when all VFs on a PF are used, switch filter rules
> can work.
> +Description: This case is used to test when all VFs on a PF are used, switch filter
> rules can work.
> This case is designed based on 4*25G NIC.
>
> -1. generate 64 VFs on PF::
> +1.Query the maximum number of VF that can be created by each PF::
> +
> + cat /sys/bus/pci/devices/0000\:18\:00.0/sriov_totalvfs
> +
> +2. generate 64 VFs on PF::
>
> echo 64 > /sys/bus/pci/devices/0000:18:00.0/sriov_numvfs
Why it get the maximum number of VF, but not use it?
I see here 64 is still a hardcode, not the maximum number of VF.
More information about the dts
mailing list