FCoE VN2VN fixes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest22 patches 32 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/22 | libfc: Revisit kref handlingdrivers/ | +103 | 2 replies | |
| 2/22 | libfc: additional debugging messagesdrivers/ drivers/ drivers/ | +56 | 3 replies | |
| 3/22 | fcoe: FIP debuggingdrivers/ | +46 | 3 replies | |
| 4/22 | libfc: spurious I/O error under high loaddrivers/ | +17 | 1 reply | |
| 5/22 | libfc: Do not attempt to login if the port is already starteddrivers/ | +6 | 1 reply | |
| 6/22 | libfc: Debug PRLI failuresdrivers/ | +13 | 1 reply | |
| 7/22 | fcoe: filter out frames from invalid vlansdrivers/ | +11 | 1 reply | |
| 8/22 | fcoe: make R_A_TOV and E_D_TOV configurabledrivers/ drivers/ | +81 | 1 reply | |
| 9/22 | libfc: use configured lport R_A_TOV when sending exchangedrivers/ | +1 | 1 reply | |
| 10/22 | libfc: use configured e_d_tov for remote port state retriesdrivers/ | +1 | 1 reply | |
| 11/22 | fcoe: inhibit writing invalid values into the 'enabled' attributedrivers/ | +10 | 2 replies | |
| 12/22 | libfc: don't fail sequence abort for completed exchangesdrivers/ | +30 | 1 reply | |
| 13/22 | libfc: do not overwrite DID_TIME_OUT statusdrivers/ | +9 | 1 reply | |
| 14/22 | libfc: use error code for fc_rport_error()drivers/ include/ | +62 | 1 reply | |
| 15/22 | libfc: frame alloc failure messagesdrivers/ | +33 | 1 reply | |
| 16/22 | fc: add missing ELS explanation valuesinclude/ | +16 | 1 reply | |
| 17/22 | libfc: Send LS_RJT responses on frame allocation failuredrivers/ | +19 | 1 reply | |
| 18/22 | libfc: don't advance state machine for incoming FLOGIdrivers/ | +12 | 1 reply | |
| 19/22 | libfc: Implement RTV responderdrivers/ | +37 | 1 reply | |
| 20/22 | libfc: Do not drop out-of-order framesdrivers/ | +0 | 1 reply | |
| 21/22 | libfc: reset timeout on queue fulldrivers/ include/ | +20 | 1 reply | |
| 22/22 | fcoe: set default TC prioritydrivers/ | +7 | 0 replies |
Reviews trailers per patch
18 of 22 patches have a Reviewed-by or Acked-by.
| Patch | Johannes Thumshirn | Chad Dupuis |
|---|---|---|
| 1/22 | A-b | T-b |
| 2/22 | A-b | |
| 3/22 | A-b | |
| 4/22 | A-b | |
| 5/22 | A-b | |
| 6/22 | A-b | |
| 7/22 | ||
| 8/22 | A-b | |
| 9/22 | A-b | |
| 10/22 | A-b | |
| 11/22 | ||
| 12/22 | A-b | |
| 13/22 | A-b | |
| 14/22 | A-b | |
| 15/22 | ||
| 16/22 | A-b | |
| 17/22 | A-b | |
| 18/22 | A-b | |
| 19/22 | A-b | |
| 20/22 | A-b | |
| 21/22 | A-b | |
| 22/22 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 00/22] FCoE VN2VN fixes
Hi all,
after long and painful debugging session I finally managed to get FCoE VN2VN running on a point-to-point connection.
There wasn't so much a single issue, but rather an entire slew of rather annoying problems:
- rport kref handling is bonkers. Taking a kref once and releasing it when attempting to free the structure is just not what krefs are designed for.
- The FCoE stack reacts allergic to out-of-order frames. While in theory this shouldn't happen, it's hard to avoid with modern HW. Plus I even had been seeing this when using virtio. And to make matters worse, it would occasionally just drop any out of order frames, while handling them correctly in other cases.
- Failed FC REC/ABTS will cause an I/O error. There are perfectly legit cases where a REC might fail (eg if the exchange was already sent and it just got stuck in the RX queue), so it should not considered an error. A simple retry will be sufficient.
- FLOGI are handled ... interestingly. If both ends attempt an FLOGI the state machine is advanved on the incoming FLOGI request, so the stack gets confused when the (original) FLOGI ACC is being returned.
Additionally I've added lots of debugging statements and some general cleanup.
As usual, comments and reviews are welcome.
The entire patchset can be found atgit://git.kernel.org/hare/scsi-devel/h/vn2vn
Hannes Reinecke (22):
libfc: Revisit kref handling
libfc: additional debugging messages
fcoe: FIP debugging
libfc: spurious I/O error under high load
libfc: Do not attempt to login if the port is already started
libfc: Debug PRLI failures
fcoe: filter out frames from invalid vlans
fcoe: make R_A_TOV and E_D_TOV configurable
libfc: use configured lport R_A_TOV when sending exchange
libfc: use configured e_d_tov for remote port state retries
fcoe: inhibit writing invalid values into the 'enabled' attribute
libfc: don't fail sequence abort for completed exchanges
libfc: do not overwrite DID_TIME_OUT status
libfc: use error code for fc_rport_error()
libfc: frame alloc failure messages
fc: add missing ELS explanation values
libfc: Send LS_RJT responses on frame allocation failure
libfc: don't advance state machine for incoming FLOGI
libfc: Implement RTV responder
libfc: Do not drop out-of-order frames
libfc: reset timeout on queue full
fcoe: set default TC priority
drivers/scsi/fcoe/fcoe.c | 21 ++- drivers/scsi/fcoe/fcoe_ctlr.c | 63 +++++++- drivers/scsi/fcoe/fcoe_sysfs.c | 83 +++++++++- drivers/scsi/libfc/fc_exch.c | 64 ++++++-- drivers/scsi/libfc/fc_fcp.c | 131 ++++++++++++---- drivers/scsi/libfc/fc_rport.c | 349 ++++++++++++++++++++++++++++++----------- include/scsi/libfc.h | 8 +- include/uapi/scsi/fc/fc_els.h | 17 +- 8 files changed, 584 insertions(+), 152 deletions(-)
Signature · 1 line
1.8.5.6