[Open-FCoE] [PATCH 3/7] Removed calling inner port ingress handler via inner port

Vasu Dev vasu.dev at intel.com
Tue Apr 1 15:25:52 UTC 2008


Called fcs_recv_req() directly from fc_sess, instead of calling this via
inner port ingress handler.

Signed-off-by: Vasu Dev <vasu.dev at intel.com>
---

 drivers/scsi/ofc/include/fcs_state.h |    1 +
 drivers/scsi/ofc/openfc/fc_sess.c    |    2 +-
 drivers/scsi/ofc/openfc/fcs_state.c  |    4 +---
 3 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/drivers/scsi/ofc/include/fcs_state.h b/drivers/scsi/ofc/include/fcs_state.h
index 151c1da..512d6d6 100644
--- a/drivers/scsi/ofc/include/fcs_state.h
+++ b/drivers/scsi/ofc/include/fcs_state.h
@@ -53,6 +53,7 @@ struct fcs_state *fcs_create(struct fcs_create_args *);
 void fcs_destroy(struct fcs_state *);
 
 void fcs_recv(struct fcs_state *, struct fc_frame *);
+void fcs_recv_req(struct fcs_state *sp, struct fc_frame *fp);
 int fcs_local_port_set(struct fcs_state *, fc_wwn_t node, fc_wwn_t port);
 int fcs_cmd_send(struct fcs_state *, struct fc_frame *,
 			struct fc_frame *, u_int, u_int);
diff --git a/drivers/scsi/ofc/openfc/fc_sess.c b/drivers/scsi/ofc/openfc/fc_sess.c
index 5055b97..33a778a 100644
--- a/drivers/scsi/ofc/openfc/fc_sess.c
+++ b/drivers/scsi/ofc/openfc/fc_sess.c
@@ -1166,7 +1166,7 @@ void fc_sess_recv_req(struct fc_seq *sp, struct fc_frame *fp, void *sess_arg)
 			break;
 		}
 	} else {
-		fc_port_ingress(sess->fs_local_port->fl_port, fp);
+		fcs_recv_req(sess->fs_local_port->sp, fp);
 	}
 }
 
diff --git a/drivers/scsi/ofc/openfc/fcs_state.c b/drivers/scsi/ofc/openfc/fcs_state.c
index 78d96df..769ca85 100644
--- a/drivers/scsi/ofc/openfc/fcs_state.c
+++ b/drivers/scsi/ofc/openfc/fcs_state.c
@@ -46,7 +46,6 @@
 
 static int fcs_debug;		/* set non-zero to get debug messages */
 
-static void fcs_recv_req(void *, struct fc_frame *);
 static void fcs_local_port_event(int, void *);
 static int fcs_local_port_prli_accept(struct fc_local_port *,
 				      struct fc_remote_port *, void *);
@@ -187,9 +186,8 @@ void fcs_recv(struct fcs_state *sp, struct fc_frame *fp)
 /*
  * Handler for new requests arriving.
  */
-static void fcs_recv_req(void *sp_arg, struct fc_frame *fp)
+void fcs_recv_req(struct fcs_state *sp, struct fc_frame *fp)
 {
-	struct fcs_state *sp = sp_arg;
 	struct fc_frame_header *fh;
 
 	fh = fc_frame_header_get(fp);




More information about the devel mailing list