summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_ethdev.c
diff options
context:
space:
mode:
authorViacheslav Ovsiienko <viacheslavo@mellanox.com>2019-03-27 13:15:39 +0000
committerFerruh Yigit <ferruh.yigit@intel.com>2019-03-29 17:25:32 +0100
commit17e19bc4dde71079a18b188ab8523035e6df0b3e (patch)
tree59ce0a22e084533cb7b6d64978716a14d9089fd7 /drivers/net/mlx5/mlx5_ethdev.c
parentad74bc619504155fa23a8f872665eca5ec69601f (diff)
downloaddpdk-next-eventdev-17e19bc4dde71079a18b188ab8523035e6df0b3e.zip
dpdk-next-eventdev-17e19bc4dde71079a18b188ab8523035e6df0b3e.tar.gz
dpdk-next-eventdev-17e19bc4dde71079a18b188ab8523035e6df0b3e.tar.xz
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 <viacheslavo@mellanox.com> Acked-by: Shahaf Shuler <shahafs@mellanox.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_ethdev.c')
0 files changed, 0 insertions, 0 deletions