Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
fc_frame.h File Reference
#include <linux/scatterlist.h>
#include <linux/skbuff.h>
#include <scsi/scsi_cmnd.h>
#include <scsi/fc/fc_fs.h>
#include <scsi/fc/fc_fcp.h>
#include <scsi/fc/fc_encaps.h>
#include <linux/if_ether.h>

Go to the source code of this file.

Data Structures

struct  fc_frame
 
struct  fcoe_rcv_info
 

Macros

#define ntohll(x)   be64_to_cpu(x)
 
#define htonll(x)   cpu_to_be64(x)
 
#define FC_FRAME_HEADROOM   32 /* headroom for VLAN + FCoE headers */
 
#define FC_FRAME_TAILROOM   8 /* trailer space for FCoE */
 
#define FC_FRAME_SG_LEN   (MAX_SKB_FRAGS - 1)
 
#define fp_skb(fp)   (&((fp)->skb))
 
#define fr_hdr(fp)   ((fp)->skb.data)
 
#define fr_len(fp)   ((fp)->skb.len)
 
#define fr_cb(fp)   ((struct fcoe_rcv_info *)&((fp)->skb.cb[0]))
 
#define fr_dev(fp)   (fr_cb(fp)->fr_dev)
 
#define fr_seq(fp)   (fr_cb(fp)->fr_seq)
 
#define fr_sof(fp)   (fr_cb(fp)->fr_sof)
 
#define fr_eof(fp)   (fr_cb(fp)->fr_eof)
 
#define fr_flags(fp)   (fr_cb(fp)->fr_flags)
 
#define fr_encaps(fp)   (fr_cb(fp)->fr_encaps)
 
#define fr_max_payload(fp)   (fr_cb(fp)->fr_max_payload)
 
#define fr_fsp(fp)   (fr_cb(fp)->fr_fsp)
 
#define fr_crc(fp)   (fr_cb(fp)->fr_crc)
 
#define FCPHF_CRC_UNCHECKED   0x01 /* CRC not computed, still appended */
 

Functions

struct fc_framefc_frame_alloc_fill (struct fc_lport *, size_t payload_len)
 
struct fc_frame_fc_frame_alloc (size_t payload_len)
 
u32 fc_frame_crc_check (struct fc_frame *)
 
void fc_frame_leak_check (void)
 

Macro Definition Documentation

#define FC_FRAME_HEADROOM   32 /* headroom for VLAN + FCoE headers */

Definition at line 56 of file fc_frame.h.

#define FC_FRAME_SG_LEN   (MAX_SKB_FRAGS - 1)

Definition at line 60 of file fc_frame.h.

#define FC_FRAME_TAILROOM   8 /* trailer space for FCoE */

Definition at line 57 of file fc_frame.h.

#define FCPHF_CRC_UNCHECKED   0x01 /* CRC not computed, still appended */

Definition at line 106 of file fc_frame.h.

#define fp_skb (   fp)    (&((fp)->skb))

Definition at line 62 of file fc_frame.h.

#define fr_cb (   fp)    ((struct fcoe_rcv_info *)&((fp)->skb.cb[0]))

Definition at line 65 of file fc_frame.h.

#define fr_crc (   fp)    (fr_cb(fp)->fr_crc)

Definition at line 74 of file fc_frame.h.

#define fr_dev (   fp)    (fr_cb(fp)->fr_dev)

Definition at line 66 of file fc_frame.h.

#define fr_encaps (   fp)    (fr_cb(fp)->fr_encaps)

Definition at line 71 of file fc_frame.h.

#define fr_eof (   fp)    (fr_cb(fp)->fr_eof)

Definition at line 69 of file fc_frame.h.

#define fr_flags (   fp)    (fr_cb(fp)->fr_flags)

Definition at line 70 of file fc_frame.h.

#define fr_fsp (   fp)    (fr_cb(fp)->fr_fsp)

Definition at line 73 of file fc_frame.h.

#define fr_hdr (   fp)    ((fp)->skb.data)

Definition at line 63 of file fc_frame.h.

#define fr_len (   fp)    ((fp)->skb.len)

Definition at line 64 of file fc_frame.h.

#define fr_max_payload (   fp)    (fr_cb(fp)->fr_max_payload)

Definition at line 72 of file fc_frame.h.

#define fr_seq (   fp)    (fr_cb(fp)->fr_seq)

Definition at line 67 of file fc_frame.h.

#define fr_sof (   fp)    (fr_cb(fp)->fr_sof)

Definition at line 68 of file fc_frame.h.

#define htonll (   x)    cpu_to_be64(x)

Definition at line 36 of file fc_frame.h.

#define ntohll (   x)    be64_to_cpu(x)

Definition at line 35 of file fc_frame.h.

Function Documentation

struct fc_frame* _fc_frame_alloc ( size_t  payload_len)
read

Definition at line 55 of file fc_frame.c.

struct fc_frame* fc_frame_alloc_fill ( struct fc_lport ,
size_t  payload_len 
)
read

Definition at line 74 of file fc_frame.c.

u32 fc_frame_crc_check ( struct fc_frame )

Definition at line 34 of file fc_frame.c.

void fc_frame_leak_check ( void  )