net/mlx4: SRIOV support
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest16 of 21 patches 8 repliesIn review
- v110 of 21 patches 1 replySuperseded
Changes in v2 from the cover letter
- Fixed warnings found by -Wswitch-enum compilation flag.
16 of 21 patches are in this archive. The cover letter announces 21.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 2/21 | mlx4: Extanding port_mask functionalitydrivers/ drivers/ include/ | +8 | 0 replies | |
| 3/21 | mlx4_core: Add "native" argument to mlx4_cmd and its callers (where needed)drivers/ drivers/ drivers/ +13 more | +102 | 0 replies | |
| 4/21 | mlx4_core: Reduce number of PD bits to 17drivers/ drivers/ include/ | +19 | 0 replies | |
| 5/21 | net/mlx4_core: Implement the master-slave communication channeldrivers/ | +672 | 0 replies | |
| 6/21 | mlx4_core: Added FW commands and their wrappers for supporting SRIOVdrivers/ drivers/ drivers/ | +335 | 0 replies | |
| 7/21 | mlx4_core: srq modifications for SRIOVdrivers/ | +83 | 0 replies | |
| 9/21 | mlx4_core: cq modifications for SRIOVdrivers/ | +89 | 0 replies | |
| 11/21 | mlx4_core: Add wrapper functions and comm channel and slave event support to EQsdrivers/ | +350 | 0 replies | |
| 12/21 | mlx4_core: resource tracking for HCA resources used by guestsdrivers/ drivers/ drivers/ +6 more | +3628 | 0 replies | |
| 13/21 | mlx4_ib: disable SRIOV mode for IB ports (not yet supported)drivers/ | +5 | 0 replies | |
| 15/21 | mlx4: Ethernet port management modificationsdrivers/ drivers/ drivers/ +6 more | +630 | 0 replies | |
| 16/21 | mlx4_en: Allow communication between functions on same hostdrivers/ drivers/ | +24 | 0 replies | |
| 17/21 | mlx4_core: mtts resources units changed to offsetdrivers/ drivers/ drivers/ +4 more | +92 | 0 replies | |
| 18/21 | mlx4_core: adjust catas operation for SRIOV modedrivers/ drivers/ | +10 | 0 replies | |
| 19/21 | mlx4_core: Modify driver initialization flow to accommodate SRIOV for Ethernetdrivers/ drivers/ drivers/ +4 more | +933 | 0 replies | |
| 20/21 | mlx4_core: updated driver version to 1.1drivers/ | +2 | 0 replies |
Reviews trailers per patch
1 of 16 patches has a Reviewed-by or Acked-by.
| Patch | Jack Morgenstein |
|---|---|
| 2/21 | |
| 3/21 | |
| 4/21 | |
| 5/21 | |
| 6/21 | |
| 7/21 | |
| 9/21 | |
| 11/21 | |
| 12/21 | |
| 13/21 | |
| 15/21 | |
| 16/21 | |
| 17/21 | R-b |
| 18/21 | |
| 19/21 | |
| 20/21 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net-next V2 00/21] net/mlx4: SRIOV support
Hello David,
This is V2 of a patch set that adds SRIOV support for ConnectX2 and ConnectX3 HW for Ethernet Link layer. Infiniband and RoCE SRIOV support will be added at later stage
In ConnectX, nearly all device resources can be associated with any function.
Once allocated, these resources can be manipulated exclusively by their
associated functions in the same manner as in the single-function case.
The same driver acts both as pf and vf driver.mlx4_en module (Ethernet specific code) remains virtualization unaware and all the multifunction logic is implemented in mlx4_core module.
To keep that separation, some code (mainly port management) moved from mlx4_en to mlx4_core module.
The device continues to use a single HCA Command Register (HCR), which is owned by the pf. Thus, the pf is given the role of allocating resources to vfs, and controlling shared resource (such as ports).
A dedicated HW communication channel is used to transfer resource allocation and modification requests from vfs to the pf, and events from the pf to the vfs. Consequently, no hypervisor-specific services are required for pf-vf communication.
All vfs resources are tracked by the pf and cleaned up in case the vf doesn't close gracefully. The resource tracker also prevents untrusted vfs to manipulate resources that belong to other functions.
---
Change from V1:
- Fixed warnings found by -Wswitch-enum compilation flag.
Change from V0:
- Use enum {MLX4_CMD_NATIVE, MLX4_CMD_WRAPPED} instead of 1/0 when calling mlx4_cmd
- Added pf context behavior to mlx4_func_cap and query func cap
- Removed ifdef CONFIG_PCI_IOV, all modules parameters do not depend on this define anymore
- sr_iov module parameter changed to num_vfs
- made probe_vf parameter writable, allows binding of VF back to hypervisor
mlx4_en: updated driver version to 2.0 mlx4_core: updated driver version to 1.1 mlx4_core: Modify driver initialization flow to accommodate SRIOV for Ethernet. mlx4_core: adjust catas operation for SRIOV mode. mlx4_core: mtts resources units changed to offset mlx4_en: Allow communication between functions on same host mlx4: Ethernet port management modifications mlx4: Traffic steering management support for SRIOV mlx4_ib: disable SRIOV mode for IB ports (not yet supported). mlx4_core: resource tracking for HCA resources used by guests. mlx4_core: Add wrapper functions and comm channel and slave event support to EQs mlx4_core: mtt modifications for SRIOV mlx4_core: cq modifications for SRIOV mlx4_core: qp modifications for SRIOV mlx4_core: srq modifications for SRIOV mlx4_core: Added FW commands and their wrappers for supporting SRIOV. mlx4_core: Implement the master-slave communication channel. mlx4_core: Reduce number of PD bits to 17. mlx4_core: Add "native" argument to mlx4_cmd and its callers (where needed) mlx4: Extanding port_mask functionality mlx4_core: initial header-file changes for SRIOV support.
drivers/infiniband/hw/mlx4/mad.c | 6 drivers/infiniband/hw/mlx4/main.c | 14 drivers/net/ethernet/mellanox/mlx4/Makefile | 2 drivers/net/ethernet/mellanox/mlx4/catas.c | 7 drivers/net/ethernet/mellanox/mlx4/cmd.c | 1308 +++++++ drivers/net/ethernet/mellanox/mlx4/cq.c | 141 drivers/net/ethernet/mellanox/mlx4/en_netdev.c | 32 drivers/net/ethernet/mellanox/mlx4/en_port.c | 84 drivers/net/ethernet/mellanox/mlx4/en_port.h | 43 drivers/net/ethernet/mellanox/mlx4/en_rx.c | 15 drivers/net/ethernet/mellanox/mlx4/en_selftest.c | 2 drivers/net/ethernet/mellanox/mlx4/en_tx.c | 20 drivers/net/ethernet/mellanox/mlx4/eq.c | 430 +- drivers/net/ethernet/mellanox/mlx4/fw.c | 404 ++ drivers/net/ethernet/mellanox/mlx4/fw.h | 26 drivers/net/ethernet/mellanox/mlx4/icm.c | 5 drivers/net/ethernet/mellanox/mlx4/intf.c | 6 drivers/net/ethernet/mellanox/mlx4/main.c | 868 ++++- drivers/net/ethernet/mellanox/mlx4/mcg.c | 228 + drivers/net/ethernet/mellanox/mlx4/mlx4.h | 670 +++ drivers/net/ethernet/mellanox/mlx4/mlx4_en.h | 4 drivers/net/ethernet/mellanox/mlx4/mr.c | 486 ++ drivers/net/ethernet/mellanox/mlx4/pd.c | 19 drivers/net/ethernet/mellanox/mlx4/port.c | 616 ++- drivers/net/ethernet/mellanox/mlx4/profile.c | 9 drivers/net/ethernet/mellanox/mlx4/qp.c | 238 + drivers/net/ethernet/mellanox/mlx4/resource_tracker.c | 3103 ++++++++++++++++++ drivers/net/ethernet/mellanox/mlx4/sense.c | 3 drivers/net/ethernet/mellanox/mlx4/srq.c | 132 include/linux/mlx4/cmd.h | 51 include/linux/mlx4/device.h | 72 31 files changed, 8119 insertions(+), 925 deletions(-)
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html