aboutsummaryrefslogtreecommitdiffstats
path: root/include/scsi/libfc.h
diff options
context:
space:
mode:
authorYi Zou <yi.zou@intel.com>2009-11-20 17:55:19 -0500
committerJames Bottomley <James.Bottomley@suse.de>2009-12-04 13:01:58 -0500
commitb84056bf68404a5fe06b452ea9790b9927e793a6 (patch)
tree67e9129cd1cf94465f6845ee8f378c856b27bd04 /include/scsi/libfc.h
parentb21a0c397eea722ff84bbeaf5e6e732a06b69896 (diff)
[SCSI] fcoe, libfc: add get_lesb() to allow LLD to fill the link error status block (LESB)
Add a member function pointer as get_lesb to libfc_function_template so LLD can fill the LESB based on its own statistics. For fcoe, it fills the LESB as a fcoe_fc_els_lesb struct according to FC-BB-5. Signed-off-by: Yi Zou <yi.zou@intel.com> Signed-off-by: Robert Love <robert.w.love@intel.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'include/scsi/libfc.h')
-rw-r--r--include/scsi/libfc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/scsi/libfc.h b/include/scsi/libfc.h
index b97be2903cbc..4b912eee33e5 100644
--- a/include/scsi/libfc.h
+++ b/include/scsi/libfc.h
@@ -511,6 +511,12 @@ struct libfc_function_template {
511 */ 511 */
512 int (*ddp_done)(struct fc_lport *, u16); 512 int (*ddp_done)(struct fc_lport *, u16);
513 /* 513 /*
514 * Allow LLD to fill its own Link Error Status Block
515 *
516 * STATUS: OPTIONAL
517 */
518 void (*get_lesb)(struct fc_lport *, struct fc_els_lesb *lesb);
519 /*
514 * Send a frame using an existing sequence and exchange. 520 * Send a frame using an existing sequence and exchange.
515 * 521 *
516 * STATUS: OPTIONAL 522 * STATUS: OPTIONAL