kernel_optimize_test/drivers/scsi/libfc
Joe Eykholt f60e12e9c7 [SCSI] libfc: track FIP exchanges
When an exchange is received with a FIP encapsulation, we need
to know that the response must be sent via FIP and what the original
ELS opcode was.  This becomes important for VN2VN mode, where we may
receive FLOGI or LOGO from several peer VN_ports, and the LS_ACC or
LS_RJT must be sent FIP-encapsulated with the correct sub-type.

Add a field to the struct fc_frame, fr_encaps, to indicate the
encapsulation values.  That term is chosen to be neutral and
LLD-agnostic in case non-FCoE/FIP LLDs might find it useful.

The frame fr_encaps is transferred from the ingress frame to the
exchange by fc_exch_recv_req(), and back to the outgoing frame
by fc_seq_send().

This is taking the last byte in the skb->cb array.  If needed,
we could combine the info in sof, eof, flags, and encaps
together into one field, but it'd be better to do that if
and when its needed.

Signed-off-by: Joe Eykholt <jeykholt@cisco.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
2010-07-28 09:05:54 -05:00
..
fc_disc.c [SCSI] libfc: add discovery-private pointer for LLD 2010-07-28 09:05:52 -05:00
fc_elsct.c [SCSI] libfc: Move the port_id into lport 2010-05-16 22:22:34 -04:00
fc_exch.c [SCSI] libfc: track FIP exchanges 2010-07-28 09:05:54 -05:00
fc_fcp.c [SCSI] libfc: IO errors on link down due to cable unplug 2010-07-28 09:05:45 -05:00
fc_frame.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
fc_libfc.c [SCSI] libfc: Formatting cleanups across libfc 2009-12-04 12:01:07 -06:00
fc_libfc.h [SCSI] libfc: add discovery-private pointer for LLD 2010-07-28 09:05:52 -05:00
fc_lport.c [SCSI] libfc: add FLOGI state to rport for VN2VN 2010-07-28 09:05:53 -05:00
fc_npiv.c [SCSI] libfc: Move the port_id into lport 2010-05-16 22:22:34 -04:00
fc_rport.c [SCSI] libfc: add FLOGI state to rport for VN2VN 2010-07-28 09:05:53 -05:00
Makefile [SCSI] libfc: add some generic NPIV support routines to libfc 2009-12-04 12:00:56 -06:00