Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
zfcp_fc.c File Reference
#include <linux/types.h>
#include <linux/slab.h>
#include <linux/utsname.h>
#include <scsi/fc/fc_els.h>
#include <scsi/libfc.h>
#include "zfcp_ext.h"
#include "zfcp_fc.h"

Go to the source code of this file.

Macros

#define KMSG_COMPONENT   "zfcp"
 
#define pr_fmt(fmt)   KMSG_COMPONENT ": " fmt
 

Functions

 module_param_named (no_auto_port_rescan, no_auto_port_rescan, bool, 0600)
 
 MODULE_PARM_DESC (no_auto_port_rescan,"no automatic port_rescan (default off)")
 
void zfcp_fc_conditional_port_scan (struct zfcp_adapter *adapter)
 
void zfcp_fc_inverse_conditional_port_scan (struct zfcp_adapter *adapter)
 
void zfcp_fc_post_event (struct work_struct *work)
 
void zfcp_fc_enqueue_event (struct zfcp_adapter *adapter, enum fc_host_event_code event_code, u32 event_data)
 
void zfcp_fc_wka_ports_force_offline (struct zfcp_fc_wka_ports *gs)
 
void zfcp_fc_incoming_els (struct zfcp_fsf_req *fsf_req)
 
void zfcp_fc_port_did_lookup (struct work_struct *work)
 
void zfcp_fc_trigger_did_lookup (struct zfcp_port *port)
 
void zfcp_fc_plogi_evaluate (struct zfcp_port *port, struct fc_els_flogi *plogi)
 
void zfcp_fc_link_test_work (struct work_struct *work)
 
void zfcp_fc_test_link (struct zfcp_port *port)
 
void zfcp_fc_scan_ports (struct work_struct *work)
 
void zfcp_fc_sym_name_update (struct work_struct *work)
 
int zfcp_fc_exec_bsg_job (struct fc_bsg_job *job)
 
int zfcp_fc_timeout_bsg_job (struct fc_bsg_job *job)
 
int zfcp_fc_gs_setup (struct zfcp_adapter *adapter)
 
void zfcp_fc_gs_destroy (struct zfcp_adapter *adapter)
 

Variables

struct kmem_cachezfcp_fc_req_cache
 

Macro Definition Documentation

#define KMSG_COMPONENT   "zfcp"

Definition at line 9 of file zfcp_fc.c.

#define pr_fmt (   fmt)    KMSG_COMPONENT ": " fmt

Definition at line 10 of file zfcp_fc.c.

Function Documentation

module_param_named ( no_auto_port_rescan  ,
no_auto_port_rescan  ,
bool  ,
0600   
)
MODULE_PARM_DESC ( no_auto_port_rescan  ,
"no automatic port_rescan (default off)"   
)
void zfcp_fc_conditional_port_scan ( struct zfcp_adapter adapter)

Definition at line 34 of file zfcp_fc.c.

void zfcp_fc_enqueue_event ( struct zfcp_adapter adapter,
enum fc_host_event_code  event_code,
u32  event_data 
)

zfcp_fc_enqueue_event - safely enqueue FC HBA API event from irq context : The adapter where to enqueue the event : The event code (as defined in fc_host_event_code in scsi_transport_fc.h) : The event data (e.g. n_port page in case of els)

Definition at line 83 of file zfcp_fc.c.

int zfcp_fc_exec_bsg_job ( struct fc_bsg_job job)

Definition at line 935 of file zfcp_fc.c.

void zfcp_fc_gs_destroy ( struct zfcp_adapter adapter)

Definition at line 986 of file zfcp_fc.c.

int zfcp_fc_gs_setup ( struct zfcp_adapter adapter)

Definition at line 969 of file zfcp_fc.c.

void zfcp_fc_incoming_els ( struct zfcp_fsf_req fsf_req)

zfcp_fc_incoming_els - handle incoming ELS - request which contains incoming ELS

Definition at line 272 of file zfcp_fc.c.

void zfcp_fc_inverse_conditional_port_scan ( struct zfcp_adapter adapter)

Definition at line 42 of file zfcp_fc.c.

void zfcp_fc_link_test_work ( struct work_struct work)

Definition at line 510 of file zfcp_fc.c.

void zfcp_fc_plogi_evaluate ( struct zfcp_port port,
struct fc_els_flogi plogi 
)

zfcp_fc_plogi_evaluate - evaluate PLOGI playload : zfcp_port structure : plogi payload

Evaluate PLOGI playload and copy important fields into zfcp_port structure

Definition at line 417 of file zfcp_fc.c.

void zfcp_fc_port_did_lookup ( struct work_struct work)

Definition at line 376 of file zfcp_fc.c.

void zfcp_fc_post_event ( struct work_struct work)

zfcp_fc_post_event - post event to userspace via fc_transport : work struct with enqueued events

Definition at line 54 of file zfcp_fc.c.

void zfcp_fc_scan_ports ( struct work_struct work)

zfcp_fc_scan_ports - scan remote ports and attach new ports : reference to scheduled work

Definition at line 681 of file zfcp_fc.c.

void zfcp_fc_sym_name_update ( struct work_struct work)

zfcp_fc_sym_name_update - Retrieve and update the symbolic port name : ns_up_work of the adapter where to update the symbolic port name

Retrieve the current symbolic port name that may have been set by the hardware using the GSPN request and update the fc_host symbolic_name sysfs attribute. When running in NPIV mode (and hence the port name is unique for this system), update the symbolic port name to add Linux specific information and update the FC nameserver using the RSPN request.

Definition at line 808 of file zfcp_fc.c.

void zfcp_fc_test_link ( struct zfcp_port port)

zfcp_fc_test_link - lightweight link test procedure : port to be tested

Test status of a link to a remote port using the ELS command ADISC. If there is a problem with the remote port, error recovery steps will be triggered.

Definition at line 546 of file zfcp_fc.c.

int zfcp_fc_timeout_bsg_job ( struct fc_bsg_job job)

Definition at line 963 of file zfcp_fc.c.

void zfcp_fc_trigger_did_lookup ( struct zfcp_port port)

zfcp_fc_trigger_did_lookup - trigger the d_id lookup using a GID_PN request : The zfcp_port to lookup the d_id for.

Definition at line 403 of file zfcp_fc.c.

void zfcp_fc_wka_ports_force_offline ( struct zfcp_fc_wka_ports *  gs)

Definition at line 177 of file zfcp_fc.c.

Variable Documentation

struct kmem_cache* zfcp_fc_req_cache

Definition at line 20 of file zfcp_fc.c.