Skip to content

Add fcoe, fcoib drivers for mlx4 device

Vu Pham linux-rdma 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10mlx4_core: Change fw profile and qp context to enable FCdrivers/net/mlx4/main.c include/linux/mlx4/qp.h+13 -40 replies
2/10mlx4_core: Add mr_alloc_reserved to able create MPTs with pre-reserve rangedrivers/net/mlx4/mr.c include/linux/mlx4/device.h+29 -100 replies
3/10mlx4_core: Add mr_reserve_range to pre-reserve a range of MPTsdrivers/net/mlx4/main.c drivers/net/mlx4/mr.c include/linux/mlx4/device.h+25 -80 replies
4/10mlx4_core: Add interface to allocate fmr with pre-reserved MPTsdrivers/net/mlx4/mr.c include/linux/mlx4/device.h+59 -00 replies
5/10mlx4_core: Map phys_fmr with first byte offset enableddrivers/net/mlx4/mr.c include/linux/mlx4/device.h+26 -50 replies
6/10mlx4: Enable create and attach cq to the vector with least number of cqs already attacheddrivers/infiniband/hw/mlx4/cq.c drivers/net/mlx4/cq.c drivers/net/mlx4/en_cq.c +3 more+39 -70 replies
7/10mlx4_core: Enable T11 support bit in mlx4 devicedrivers/net/mlx4/fw.c include/linux/mlx4/device.h+17 -10 replies
8/10mlx4: Add API to query protocol device of specific port on mlx4_devicedrivers/infiniband/hw/mlx4/main.c drivers/net/mlx4/en_main.c drivers/net/mlx4/intf.c +1 more+46 -10 replies
9/10mlx4_fc: Implement fcoe/fcoib offload driver, fcoib initialization protocol driverdrivers/scsi/mlx4_fc/Makefile drivers/scsi/mlx4_fc/fcoib.h drivers/scsi/mlx4_fc/fcoib_api.h +7 more+8958 -02 replies
10/10mlx4_fc: Enable FC over Ethernet/Infiniband driversdrivers/scsi/Kconfig drivers/scsi/Makefile+24 -03 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 0/10] Add fcoe, fcoib drivers for mlx4 device

Hi Roland,

Thanks for your feedbacks for previous patch set. I reworked, rearranged order of the patches as suggested.
Please ignore the previous patch set. Here is the new one.

The following series implements fcoe and fcoib offload driver for mlx4 device

mlx4_fc: implement fcoe/fcoib, hook to scsi mid-layer to offload scsi operations, and use openfc's libfc to do ELS/BLS
mlx4_fcoib: driver implement fcoib initialization protocol to discover IB-FC gateways/bridges
mlx4: add/enable mlx4_core, mlx4_ib, mlx4_en to support fcoe/fcoib

 drivers/infiniband/hw/mlx4/cq.c       |    4 +-
 drivers/infiniband/hw/mlx4/main.c     |   10 +-
 drivers/net/mlx4/cq.c                 |   27 +-
 drivers/net/mlx4/en_cq.c              |    2 +-
 drivers/net/mlx4/en_main.c            |    9 +
 drivers/net/mlx4/fw.c                 |   13 +
 drivers/net/mlx4/intf.c               |   19 +
 drivers/net/mlx4/main.c               |    4 +-
 drivers/net/mlx4/mlx4.h               |    1 +
 drivers/net/mlx4/mr.c                 |  140 ++-
 drivers/scsi/Kconfig                  |   22 +
 drivers/scsi/Makefile                 |    2 +
 drivers/scsi/mlx4_fc/Makefile         |    8 +
 drivers/scsi/mlx4_fc/fcoib.h          |  343 ++++++
 drivers/scsi/mlx4_fc/fcoib_api.h      |   61 +
 drivers/scsi/mlx4_fc/fcoib_discover.c | 1925 
+++++++++++++++++++++++++++++++
 drivers/scsi/mlx4_fc/fcoib_main.c     | 1211 ++++++++++++++++++++
 drivers/scsi/mlx4_fc/mfc.c            | 2003 
+++++++++++++++++++++++++++++++++
 drivers/scsi/mlx4_fc/mfc.h            |  666 +++++++++++
 drivers/scsi/mlx4_fc/mfc_exch.c       | 1496 ++++++++++++++++++++++++
 drivers/scsi/mlx4_fc/mfc_rfci.c       | 1001 ++++++++++++++++
 drivers/scsi/mlx4_fc/mfc_sysfs.c      |  244 ++++
 include/linux/mlx4/device.h           |   23 +-
 include/linux/mlx4/driver.h           |    9 +
 include/rdma/ib_verbs.h               |   10 +-
 25 files changed, 9222 insertions(+), 31 deletions(-)

thanks
-vu