aboutsummaryrefslogtreecommitdiffstats
path: root/include/scsi/libfc.h
diff options
context:
space:
mode:
authorAbhijeet Joglekar <abjoglek@cisco.com>2009-02-27 13:54:35 -0500
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2009-03-06 16:35:47 -0500
commit1f6ff364ceda516f88351a8ab640e656beed0b26 (patch)
tree227a5f6e39372eaf3c898d1de8feb2b88df707b0 /include/scsi/libfc.h
parent33dd6f92a1a7ad85c54d47fd9d73371a32c0bde4 (diff)
[SCSI] libfc: Pass lport in exch_mgr_reset
fc_exch_mgr structure is private to fc_exch.c. To export exch_mgr_reset to transport, transport needs access to the exch manager. Change exch_mgr_reset to use lport param which is the shared structure between libFC and transport. Alternatively, fc_exch_mgr definition can be moved to libfc.h so that lport can be accessed from mp*. Signed-off-by: Abhijeet Joglekar <abjoglek@cisco.com> Signed-off-by: Robert Love <robert.w.love@intel.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'include/scsi/libfc.h')
-rw-r--r--include/scsi/libfc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/scsi/libfc.h b/include/scsi/libfc.h
index 9f2876397dda..042f4ade73d7 100644
--- a/include/scsi/libfc.h
+++ b/include/scsi/libfc.h
@@ -472,7 +472,7 @@ struct libfc_function_template {
472 * If s_id is non-zero, reset only exchanges originating from that FID. 472 * If s_id is non-zero, reset only exchanges originating from that FID.
473 * If d_id is non-zero, reset only exchanges sending to that FID. 473 * If d_id is non-zero, reset only exchanges sending to that FID.
474 */ 474 */
475 void (*exch_mgr_reset)(struct fc_exch_mgr *, 475 void (*exch_mgr_reset)(struct fc_lport *,
476 u32 s_id, u32 d_id); 476 u32 s_id, u32 d_id);
477 477
478 void (*rport_flush_queue)(void); 478 void (*rport_flush_queue)(void);
@@ -916,7 +916,7 @@ struct fc_seq *fc_seq_start_next(struct fc_seq *sp);
916 * If s_id is non-zero, reset only exchanges originating from that FID. 916 * If s_id is non-zero, reset only exchanges originating from that FID.
917 * If d_id is non-zero, reset only exchanges sending to that FID. 917 * If d_id is non-zero, reset only exchanges sending to that FID.
918 */ 918 */
919void fc_exch_mgr_reset(struct fc_exch_mgr *, u32 s_id, u32 d_id); 919void fc_exch_mgr_reset(struct fc_lport *, u32 s_id, u32 d_id);
920 920
921/* 921/*
922 * Functions for fc_functions_template 922 * Functions for fc_functions_template