aboutsummaryrefslogtreecommitdiffstats
path: root/LICENSES
diff options
context:
space:
mode:
authorBodong Wang <bodong@mellanox.com>2018-12-14 09:33:22 -0600
committerSaeed Mahameed <saeedm@mellanox.com>2019-02-15 17:25:58 -0800
commit5ae5162066d8e59e365678a9e76fc4d8f6b78d40 (patch)
tree2d29337265affb5773a80c1af263005fdd73a7d9 /LICENSES
parentnet/mlx5: E-Switch, Centralize repersentor reg/unreg to eswitch driver (diff)
downloadlinux-dev-5ae5162066d8e59e365678a9e76fc4d8f6b78d40.tar.xz
linux-dev-5ae5162066d8e59e365678a9e76fc4d8f6b78d40.zip
net/mlx5: E-Switch, Assign a different position for uplink rep and vport
In offloads mode, the current implementation puts the uplink representor at index zero of the vport reps array. It is not "natural" to place it at index 0 since we want to put the representor for vport 0 at index 0 with the introduction of SmartNIC. A separate patch will handle the case whether a rep is needed for vport 0 (PF vport). So, we want to have a different placeholder for uplink vport and representor. It was placed at the end of vport and rep array. Since vport number can no longer act as an index into the vport or representors arrays, use functions to map vport numbers to indices when accessing the vports or representors arrays, and vice versa. Signed-off-by: Bodong Wang <bodong@mellanox.com> Signed-off-by: Eli Cohen <eli@mellanox.com> Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'LICENSES')
0 files changed, 0 insertions, 0 deletions