summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorBodong Wang <bodong@mellanox.com>2019-01-28 22:12:45 -0600
committerSaeed Mahameed <saeedm@mellanox.com>2019-02-15 17:25:57 -0800
commit879c8f84e3602961e441723aaaac372a44dfe588 (patch)
tree4246864b89dc7d8c696789fbf923f81e694612d8 /include/linux
parentc9b99abcf232f69ddff158b1f313fd7d2654414b (diff)
downloadlinux-stable-879c8f84e3602961e441723aaaac372a44dfe588.tar.gz
linux-stable-879c8f84e3602961e441723aaaac372a44dfe588.tar.bz2
linux-stable-879c8f84e3602961e441723aaaac372a44dfe588.zip
net/mlx5: E-Switch, Use getter and iterator to access vport/rep
With only PF and VF, it is sufficient to have the vport/rep array index as the vport number. This is because PF and VF vports numbers are consecutive serial numbers. In downstream patches with introducing of ECPF and UPLINK vports, it's not consecutive any more. Use getter to get specific vport/rep, and use iterator to traversal a list of vport/rep. This hides the translation between array index and vport number, and provides flexibility of using different translation mechanism in the future. This patch doesn't change any functionality. Signed-off-by: Bodong Wang <bodong@mellanox.com> Suggested-by: Saeed Mahameed <saeedm@mellanox.com> Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions