path: root/drivers/net/mlx5/mlx5_ethdev.c
diff options
authorViacheslav Ovsiienko <>2019-03-27 13:15:39 +0000
committerFerruh Yigit <>2019-03-29 17:25:32 +0100
commit17e19bc4dde71079a18b188ab8523035e6df0b3e (patch)
tree59ce0a22e084533cb7b6d64978716a14d9089fd7 /drivers/net/mlx5/mlx5_ethdev.c
parentad74bc619504155fa23a8f872665eca5ec69601f (diff)
net/mlx5: add IB shared context alloc/free functions
The Mellanox NICs support SR-IOV and have E-Switch feature. When SR-IOV is set up in switchdev mode and E-Switch is enabled we have so called VF representors in the system. All representors belonging to the same E-Switch are created on the basis of the single PCI function and with current implementation each representor has its own dedicated Infiniband device and operates within its own Infiniband context. It is proposed to provide representors as ports of the single Infiniband device and operate on the shared Infiniband context saving various resources. This patch introduces appropriate structures. Also the functions to allocate and free shared IB context for multiport are added. The IB device context, Protection Domain, device attributes, Infiniband names are going to be relocated to the shared structure from the device private one. mlx5_dev_spawn() is updated to support shared context. Signed-off-by: Viacheslav Ovsiienko <> Acked-by: Shahaf Shuler <>
Diffstat (limited to 'drivers/net/mlx5/mlx5_ethdev.c')
0 files changed, 0 insertions, 0 deletions