summaryrefslogtreecommitdiffstats
path: root/drivers/net/netdevsim
diff options
context:
space:
mode:
authorBodong Wang2019-06-29 00:36:16 +0200
committerSaeed Mahameed2019-07-02 01:40:31 +0200
commit062f4bf4aab5c6bb62bea59cda59d5c64f23ba29 (patch)
treea430d02b26b0ba191167e7f1ba0b16ebf8d0637c /drivers/net/netdevsim
parentnet/mlx5: E-Switch, Refactor eswitch SR-IOV interface (diff)
downloadkernel-qcow2-linux-062f4bf4aab5c6bb62bea59cda59d5c64f23ba29.tar.gz
kernel-qcow2-linux-062f4bf4aab5c6bb62bea59cda59d5c64f23ba29.tar.xz
kernel-qcow2-linux-062f4bf4aab5c6bb62bea59cda59d5c64f23ba29.zip
net/mlx5: E-Switch, Consolidate eswitch function number of VFs
Enabled number of VFs is key for eswich manager to do flow steering initialization and vport configurations. However, the number of enabled VFs may come from two sources as below. PF: num of VFs is provided by enabled SR-IOV of itself. ECPF: num of VFs is provided by enabled SR-IOV from its peer PF. And SR-IOV can't be enabled from ECPF itself. Current driver handles the two cases in different stages and passing the number of enabled VFs among a large scope of internal functions. It is usually hard to find out where is the real number of VFs from due to layers of argument pass-in. This patch consolidated that number from the entry point of doing eswitch setup, and maintained a copy so that eswitch functions can refer to it directly. Eswitch driver shall always use this number when referring to enabled number of VFs, don't use other numbers such as from SR-IOV. Signed-off-by: Bodong Wang <bodong@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/net/netdevsim')
0 files changed, 0 insertions, 0 deletions