diff options
author | Vu Pham <vuhuong@nvidia.com> | 2020-12-11 22:12:19 -0800 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2021-01-22 11:32:09 -0800 |
commit | d7f33a457beef8d522f346d18ab0a1e3366dc20f (patch) | |
tree | 6aec8037618f9e7d168c26a1dad8283ae9f186c8 /net/switchdev/switchdev.c | |
parent | 1958fc2f0712ae771bfd2351b55e5a5b6b0bcfa4 (diff) |
net/mlx5: E-switch, Prepare eswitch to handle SF vport
Prepare eswitch to handle SF vport during
(a) querying eswitch functions
(b) egress ACL creation
(c) account for SF vports in total vports calculation
Assign a dedicated placeholder for SFs vports and their representors.
They are placed after VFs vports and before ECPF vports as below:
[PF,VF0,...,VFn,SF0,...SFm,ECPF,UPLINK].
Change functions to map SF's vport numbers to indices when
accessing the vports or representors arrays, and vice versa.
Signed-off-by: Vu Pham <vuhuong@nvidia.com>
Signed-off-by: Parav Pandit <parav@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions