Thread (7 messages) flat view 7 messages, 3 authors, 2021-03-11

Re: mlx5 sub function issue

From: ze wang <hidden>
Date: 2021-03-08 07:22:44

Hi Parav,

Thanks for the answer.
There are more than two hundred CPUs on our machine, we're planning to
put SFs into the containers, This may requires allocate one SF per
CPU,so we want to know the upper limit of creating SFs.

By the way, the latest version of the MFT download center is 4.16.1-9,
does this meet the 4.16.52 version requirements? If not satisfied,
where can I get mft-4.16.52?

Ze Wang


Parav Pandit [off-list ref] 於 2021年3月8日週一 下午1:17寫道:
Hi Ze Wang,



How many SFs do you prefer to create?
What applications would you like to run on more than 128 sfs?
How many CPUs do you have in system which will use this many sfs?



You need to use following.

mlxconfig tool from mft tools version 4.16.52 or higher to set number of SF.

mlxconfig -d b3:00.0  PF_BAR2_ENABLE=0 PER_PF_NUM_SF=1 PF_SF_BAR_SIZE=8
mlxconfig -d b3:00.0  PER_PF_NUM_SF=1 PF_TOTAL_SF=192 PF_SF_BAR_SIZE=8
mlxconfig -d b3:00.1  PER_PF_NUM_SF=1 PF_TOTAL_SF=192 PF_SF_BAR_SIZE=8

Cold reboot power cycle of the system as this changes the BAR size in device



Parav



From: ze wang <redacted>
Sent: Monday, March 8, 2021 7:22 AM
To: Saeed Mahameed <saeedm@nvidia.com>; Parav Pandit <redacted>
Subject: mlx5 sub function issue



Hi all,
      I have some confusion with mlx5 sub function feature. I tested it with Mellanox ConnectX-6 Dx recently, then I

found the maximum amount of SF in each PF is just 128,I‘m not sure if there is a problem with my configuration,

or there are some limits of SF in ConnectX-6.
Here is the environment:
system: CentOS Linux release 7.9.2009
NIC:  Mellanox Technologies MT2892 Family [ConnectX-6 Dx]
firmware-version: 22.29.2002 (MT_0000000430)
kernel: net-next master branch https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/
mlxconfig:
PF_BAR2_ENABLE    True(1)
PF_BAR2_SIZE      8
PER_PF_NUM_SF     True(1)
PF_TOTAL_SF       65535
PF_SF_BAR_SIZE    0

When I tried to create more SF:

~# devlink port add pci/0000:b3:00.0 flavour pcisf pfnum 0 sfnum 128
devlink answers: No space left on device

Is there anything missed in configuration? Can I create more sub functions in ConnectX-6?

Trully yours,
wangze
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help