Skip to content

libfc/libfcoe/fcoe updates for scsi-misc (2.6.39)

Robert Love linux-scsi 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest28 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/28libfc: always initialize the FCoE DDP exchange id for fsp as FC_XID_UNKNOWNdrivers/scsi/libfc/fc_fcp.c+1 -30 replies
2/28libfc: Return a valid return code in fc_fcp_pkt_abort()drivers/scsi/libfc/fc_fcp.c+4 -30 replies
3/28libfc: Cleanup return paths in fc_rport_error_retrydrivers/scsi/libfc/fc_rport.c+3 -20 replies
4/28libfc: dereferencing ERR_PTR in fc_tm_done()drivers/scsi/libfc/fc_fcp.c+1 -10 replies
5/28fnic: fix memory leakdrivers/scsi/fnic/vnic_dev.c+1 -10 replies
6/28fnic: Bumping up fnic version from 1.4.0.145 to 1.5.0.1.drivers/scsi/fnic/fnic.h+1 -10 replies
7/28fcoe: Fix module reference count for vportsdrivers/scsi/fcoe/fcoe.c+20 -130 replies
8/28fcoe: drop FCoE LOGO in FIP modedrivers/scsi/fcoe/fcoe.c+54 -300 replies
9/28libfc: fix sparse static and non-ANSI warningsdrivers/scsi/libfc/fc_exch.c drivers/scsi/libfc/fc_fcp.c drivers/scsi/libfc/fc_rport.c+9 -90 replies
10/28libfc: add hook for FC-4 provider registrationdrivers/scsi/libfc/fc_libfc.c drivers/scsi/libfc/fc_libfc.h drivers/scsi/libfc/fc_lport.c +2 more+259 -360 replies
11/28libfc: add method for setting handler for incoming exchangedrivers/scsi/libfc/fc_exch.c include/scsi/libfc.h+29 -00 replies
12/28libfc: add local port hook for provider session lookupinclude/scsi/libfc.h+2 -00 replies
13/28libfc: add hook to notify providers of local port changesdrivers/scsi/libfc/fc_libfc.c drivers/scsi/libfc/fc_libfc.h drivers/scsi/libfc/fc_lport.c +1 more+58 -10 replies
14/28libfc: use PRLI hook to get parameters when sending outgoing PRLIdrivers/scsi/libfc/fc_rport.c+24 -30 replies
15/28libfc: Remove usage of the Scsi_Host's host_lockdrivers/scsi/libfc/fc_fcp.c+6 -140 replies
16/28libfc: export seq_release() for users of seq_assign()drivers/scsi/libfc/fc_exch.c include/scsi/libfc.h+21 -00 replies
17/28libfc: Enhanced exchange ID selection mechanism and fix related EMA selection logic.drivers/scsi/libfc/fc_exch.c+43 -210 replies
18/28libfcoe: move logging macros into the local libfcoe.h header filedrivers/scsi/fcoe/libfcoe.c drivers/scsi/fcoe/libfcoe.h+27 -200 replies
19/28libfcoe: add fcoe_transport structure defines to include/scsi/libfcoe.hinclude/scsi/libfcoe.h+48 -00 replies
20/28libfcoe: add implementation to support fcoe transportdrivers/scsi/fcoe/fcoe_transport.c drivers/scsi/fcoe/libfcoe.h+524 -02 replies
21/28libfcoe: rename libfcoe.c to fcoe_cltr.c for the coming fcoe_transport.cdrivers/scsi/fcoe/Makefile drivers/scsi/fcoe/fcoe_ctlr.c drivers/scsi/fcoe/libfcoe.c+2692 -26900 replies
22/28libfcoe: include fcoe_transport.c into kernel libfcoe moduledrivers/scsi/fcoe/Makefile drivers/scsi/fcoe/fcoe_ctlr.c drivers/scsi/fcoe/fcoe_transport.c+9 -90 replies
23/28fcoe: prepare fcoe for using fcoe transportdrivers/scsi/fcoe/fcoe.c+15 -140 replies
24/28fcoe: convert fcoe.ko to become an fcoe transport provider driverdrivers/scsi/fcoe/fcoe.c+62 -1080 replies
25/28libfc: Extending lport's roles for target if there is a registered target.drivers/scsi/libfc/fc_libfc.c drivers/scsi/libfc/fc_libfc.h drivers/scsi/libfc/fc_lport.c+21 -00 replies
26/28libfc: introduce LLD event callbackdrivers/scsi/libfc/fc_npiv.c drivers/scsi/libfc/fc_rport.c include/scsi/libfc.h+34 -10 replies
27/28fcoe: use dedicated workqueue instead of system_wqdrivers/scsi/fcoe/fcoe.c+21 -110 replies
28/28libfcoe: Move common code from fcoe to libfcoe moduledrivers/scsi/fcoe/fcoe.c drivers/scsi/fcoe/fcoe.h drivers/scsi/fcoe/fcoe_transport.c +1 more+275 -2370 replies

Reviews trailers per patch

2 of 28 patches have a Reviewed-by or Acked-by.

PatchRoss BrattainNicholas A. Bellinger
1/28
2/28
3/28
4/28
5/28
6/28
7/28T-b
8/28
9/28
10/28
11/28
12/28Committed-by
13/28
14/28
15/28T-b R-b
16/28A-b
17/28
18/28
19/28
20/28
21/28
22/28
23/28
24/28
25/28
26/28
27/28
28/28

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/28] libfc/libfcoe/fcoe updates for scsi-misc (2.6.39)

This is a fairly significant update to libfc, libfcoe and fcoe. The two major changes are the addition hooks for a FC/FCoE target based on the new target infrastructure and the addition of a fcoe transport which will allow the upcoming bnx2fc driver to work with libfc and libfcoe.

1) fc4 provider hooks

These changes have been around for months and allow libfc to
respond (as a target) to commands sent from an initiator. There are also a few small changes here and there to libfc to make a target mode work. This changeset paves the way for TCM_FC which will bridge the TCM core with libfc/fcoe.

2) fcoe transport

libfcoe.c has now been split out into two new files:
fcoe_transport.c and fcoe_ctlr.c. fcoe_transport.c implements a registration system for fcoe transports. The first transport is SW FCoE (i.e. fcoe.ko), the second will be bnx2fc (a brdcm fcoe driver). Any fcoe transport will simply provide a match function to determine if a netdevice is managed by the transport. fcoe.ko is the default and will be used if no other transport is available.

One interesting outcome of this is that the create/destroy/etc...
entry points are moving from fcoe.ko to libfcoe.ko. There are corresponding changes to fcoe-utils (fcoe user space suite), but I don't intend to commit them until all of this code is accepted to mainline. fcoe-utils is tagged against mainline.

3) Miscellaneous

a) Removal of scsi_host lock usage in fc_queuecommand
b) rport event callback to LLD from libfc (will be used by

      bnx2fc)

c) Tejun Heo's workqueue change
d) Memory leak fix and version bump to fnic

All of these patches have been tested against today's scsi-misc.

---

Bhanu Prakash Gollapudi (2):
libfc: introduce LLD event callback
libfcoe: Move common code from fcoe to libfcoe module

Dan Carpenter (1):
libfc: dereferencing ERR_PTR in fc_tm_done()

Hillf Danton (2):
libfc: Return a valid return code in fc_fcp_pkt_abort()
libfc: Cleanup return paths in fc_rport_error_retry

Joe Eykholt (6):
libfc: add hook for FC-4 provider registration
libfc: add method for setting handler for incoming exchange
libfc: add local port hook for provider session lookup
libfc: add hook to notify providers of local port changes
libfc: use PRLI hook to get parameters when sending outgoing PRLI
libfc: export seq_release() for users of seq_assign()

Kiran Patil (2):
libfc: Enhanced exchange ID selection mechanism and fix related EMA selection logic.
libfc: Extending lport's roles for target if there is a registered target.

Randy Dunlap (1):
libfc: fix sparse static and non-ANSI warnings

Robert Love (2):
fcoe: Fix module reference count for vports
libfc: Remove usage of the Scsi_Host's host_lock

Tejun Heo (1):
fcoe: use dedicated workqueue instead of system_wq

Vasu Dev (1):
fcoe: drop FCoE LOGO in FIP mode

Venkata Siva Vijayendra Bhamidipati (2):
fnic: fix memory leak
fnic: Bumping up fnic version from 1.4.0.145 to 1.5.0.1.

Yi Zou (8):
libfc: always initialize the FCoE DDP exchange id for fsp as FC_XID_UNKNOWN
libfcoe: move logging macros into the local libfcoe.h header file
libfcoe: add fcoe_transport structure defines to include/scsi/libfcoe.h
libfcoe: add implementation to support fcoe transport
libfcoe: rename libfcoe.c to fcoe_cltr.c for the coming fcoe_transport.c
libfcoe: include fcoe_transport.c into kernel libfcoe module
fcoe: prepare fcoe for using fcoe transport
fcoe: convert fcoe.ko to become an fcoe transport provider driver

 drivers/scsi/fcoe/Makefile         |    2 
 drivers/scsi/fcoe/fcoe.c           |  563 +++----
 drivers/scsi/fcoe/fcoe.h           |   44 -
 drivers/scsi/fcoe/fcoe_ctlr.c      | 2682 ++++++++++++++++++++++++++++++++++++
 drivers/scsi/fcoe/fcoe_transport.c |  726 ++++++++++
 drivers/scsi/fcoe/libfcoe.c        | 2708 ------------------------------------
 drivers/scsi/fcoe/libfcoe.h        |   31 
 drivers/scsi/fnic/fnic.h           |    2 
 drivers/scsi/fnic/vnic_dev.c       |    2 
 drivers/scsi/libfc/fc_exch.c       |  103 +
 drivers/scsi/libfc/fc_fcp.c        |   39 -
 drivers/scsi/libfc/fc_libfc.c      |  120 ++
 drivers/scsi/libfc/fc_libfc.h      |   14 
 drivers/scsi/libfc/fc_lport.c      |   68 +
 drivers/scsi/libfc/fc_npiv.c       |    1 
 drivers/scsi/libfc/fc_rport.c      |  190 ++-
 include/scsi/libfc.h               |   74 +
 include/scsi/libfcoe.h             |   99 +
 18 files changed, 4252 insertions(+), 3216 deletions(-)
 create mode 100644 drivers/scsi/fcoe/fcoe_ctlr.c
 create mode 100644 drivers/scsi/fcoe/fcoe_transport.c
 delete mode 100644 drivers/scsi/fcoe/libfcoe.c
 create mode 100644 drivers/scsi/fcoe/libfcoe.h
Signature · 3 lines
Thanks, //Rob

 LocalWords:  shortlog diffstat