This is to add support to FC-BB-5 Rev2 Link Error Status Block (LESB) to support
response to an incoming FC-LS ELS Read Link Status (RLS) request (ELS_RLS) for
an existing logged in rport. To support ELS_RLS for FCoE, the response should be
like what FC-BB-5 Rev2.0 Clause 7.10 describes as the Link Error Status Block
(LESB), which have several counters that are not available in the current FCoE
stack.

Some notes to patches:

The first patch five patches are prep work for adding needed statistics counters
for LESB. 

Patch 1, I added a fcoe_lld_stats for those counters that are not per-cpu
updated and come from LLD directly, most likely from net_device_stats.

Patch 2, this is to add to support the D bit in FIP FKA_ADV descriptor while I
was adding virtual link failure counter since it would match up to the current 
spec.

Patch 3, the spec says 2.5 * FKA_ADV_Period, and I suppose the 3 times + fuzzy
in the current fcoe_cltr_age_fcfs() is the doing the same thing as for
the virtual link maintenance protocol?

The last two patches add the actual els response handler for the received RLS
command.

This is tested using the user space tool that I will post right after this,
which sends the ELS_RLS to the target rport as FC_BSG_RPT_ELS bsg request.

thanks,
yi

The following series implements...

---

Yi Zou (7):
      libfc: add support of receiving ELS_RLS
      libfc: add fc_els_lesb_bb5 for FC-BB-5 LESB definitions
      libfcoe: add tracking LLD related stats in fcoe_lld_stats
      libfcoe: add tracking of FIP FCF Missing Discovery Advertisement
      libfcoe: update VLinkFailureCount in fcoe_dev_stats
      libfcoe: add checking disable flag in FIP_FKA_ADV
      libfc: add FC-BB-5 LESB counters to fcoe_dev_stats


 drivers/scsi/fcoe/fcoe.c      |   24 ++++++++
 drivers/scsi/fcoe/libfcoe.c   |   22 +++++++
 drivers/scsi/libfc/fc_lport.c |  124 +++++++++++++++++++++++++++++++++++++++++
 include/scsi/fc/fc_els.h      |   14 ++++-
 include/scsi/fc/fc_fip.h      |   10 +++
 include/scsi/libfc.h          |   23 ++++++++
 6 files changed, 213 insertions(+), 4 deletions(-)

-- 
Signature: Yi Zou <[email protected]>
_______________________________________________
devel mailing list
[email protected]
http://www.open-fcoe.org/mailman/listinfo/devel

Reply via email to