34 #define FC_NAME_STRLEN 23 42 #define FC_PORT_ID_STRLEN 9 86 #define FC_LINK_RETRY_DELAY ( 2 * TICKS_PER_SEC ) 109 return (
link->rc == 0 );
172 #define FC_R_CTL_ROUTING_MASK 0xf0 187 #define FC_R_CTL_INFO_MASK 0x07 213 #define FC_RX_ID_UNKNOWN 0xffff 239 #define FC_RESPONDERS __table ( struct fc_responder, "fc_responders" ) 242 #define __fc_responder __table_entry ( FC_RESPONDERS, 01 ) 322 const struct fc_name *link_node_wwn,
323 const struct fc_name *link_port_wwn,
327 const struct fc_name *node_wwn,
328 const struct fc_name *port_wwn,
fc_f_ctl_misc
Fibre Channel Frame Control - Miscellaneous.
struct fc_name link_port_wwn
Link port name.
char name[8]
Name of this port.
struct fc_name port_wwn
Port name.
struct arbelprm_rc_send_wqe rc
struct fc_peer * fc_peer_get_wwn(const struct fc_name *port_wwn)
Get Fibre Channel peer by node name.
struct fc_port_id fc_gs_port_id
Generic services port ID.
int fc_aton(const char *wwn_text, struct fc_name *wwn)
Parse Fibre Channel WWN.
struct fc_ulp * fc_ulp_get_port_id_type(struct fc_port *port, const struct fc_port_id *peer_port_id, unsigned int type)
Get Fibre Channel upper-layer protocol by port ID and type.
struct list_head fc_peers
struct fc_ulp * ulp
Fibre Channel upper layer protocol.
struct list_head list
List of all ports.
int fc_port_login(struct fc_port *port, struct fc_port_id *port_id, const struct fc_name *link_node_wwn, const struct fc_name *link_port_wwn, int has_fabric)
Log in Fibre Channel port.
Last Sequence of Exchange.
struct fc_port_id ptp_link_port_id
Link port ID (for point-to-point links only)
struct list_head xchgs
List of active exchanges.
struct interface flogi
FLOGI interface.
uint32_t type
Operating system type.
const char * fc_id_ntoa(const struct fc_port_id *id)
Format Fibre Channel port ID.
A Fibre Channel responder.
struct fc_name node_wwn
Node name.
void fc_ulp_attach(struct fc_ulp *ulp, struct fc_ulp_user *user)
Attach Fibre Channel upper-layer protocol user.
Fibre Channel socket address.
fc_r_ctl_info
Fibre Channel Routing Control Information.
struct list_head list
List of upper-layer protocols.
struct fc_port_id sfc_port_id
Port ID.
static void fc_port_put(struct fc_port *port)
Drop reference to Fibre Channel port.
struct sockaddr * fc_fill_sockaddr(struct sockaddr_fc *sa_fc, struct fc_port_id *id)
Fill Fibre Channel socket address.
sa_family_t sfc_family
Socket address family (part of struct sockaddr)
struct list_head fc_ports
int fc_ulp_login(struct fc_ulp *ulp, const void *param, size_t param_len, int originated)
Log in Fibre Channel upper-layer protocol.
Last Data Frame of Sequence.
static void(*) struct refcnt refcnt)
struct fc_peer * peer
Fibre Channel peer.
struct fc_port_id fc_empty_port_id
Unassigned port ID.
void fc_ulp_logout(struct fc_ulp *ulp, int rc)
Log out Fibre Channel upper-layer protocol.
struct list_head users
Active users of this upper-layer protocol.
A doubly-linked list entry (or list head)
struct fc_port_id fc_f_port_id
F_Port contoller port ID.
struct fc_port_id port_id
Local port ID.
struct list_head list
List of users.
struct fc_port * port
Fibre Channel port, if known.
static struct fc_ulp_user * fc_ulp_user_get(struct fc_ulp_user *user)
Get reference to Fibre Channel upper-layer protocol user.
void fc_peer_logout(struct fc_peer *peer, int rc)
Log out Fibre Channel peer.
fc_r_ctl_routing
Fibre Channel Routing Control Routing.
const char * fc_ntoa(const struct fc_name *wwn)
Format Fibre Channel WWN.
struct fc_name link_node_wwn
Link node name.
Port is attached to a fabric.
struct list_head ulps
List of upper-layer protocols.
A Fibre Channel port identifier.
size_t param_len
Service parameter length.
static int fc_link_ok(struct fc_link_state *link)
Check Fibre Channel link state.
struct fc_link_state link
Link state monitor.
A login originated by us has succeeded.
void fc_port_logout(struct fc_port *port, int rc)
Log out Fibre Channel port.
int fc_port_open(struct interface *transport, const struct fc_name *node_wwn, const struct fc_name *port_wwn, const char *name)
Create Fibre Channel port.
uint16_t sa_family_t
A socket address family.
Transfer Sequence Initiative.
u32 link
Link to next descriptor.
struct list_head list
List of all peers.
struct interface prli
PRLI interface.
unsigned int usage
Active usage count.
Generalized socket address structure.
int(* respond)(struct interface *xchg, struct fc_port *port, struct fc_port_id *port_id, struct fc_port_id *peer_port_id)
Respond to exchange.
struct fc_port_id port_id
Peer port ID, if known.
static void fc_peer_put(struct fc_peer *peer)
Drop reference to Fibre Channel peer.
struct fc_link_state link
Link state monitor.
void * param
Service parameters, if any.
#define ref_get(refcnt)
Get additional reference to object.
Port is logged in to a name server.
static struct fc_ulp * fc_ulp_get(struct fc_ulp *ulp)
Get reference to Fibre Channel upper-layer protocol.
struct hv_monitor_parameter param[4][32]
Parameters.
fc_port_flags
Fibre Channel port flags.
struct fc_link_state link
Link state monitor.
int fc_peer_login(struct fc_peer *peer, struct fc_port *port, struct fc_port_id *port_id)
Log in Fibre Channel peer.
void(* examine)(struct fc_ulp_user *user)
Examine link state.
struct fc_name port_wwn
Port name.
static void fc_ulp_user_put(struct fc_ulp_user *user)
Drop reference to Fibre Channel upper-layer protocol user.
A Fibre Channel upper-layer protocol user.
static struct fc_peer * fc_peer_get(struct fc_peer *peer)
Get reference to Fibre Channel peer.
int fc_xchg_originate(struct interface *parent, struct fc_port *port, struct fc_port_id *peer_port_id, unsigned int type)
Originate a new Fibre Channel exchange.
struct fc_port * fc_port_find(const char *name)
Find Fibre Channel port by name.
struct fc_ulp * fc_ulp_get_wwn_type(const struct fc_name *port_wwn, unsigned int type)
Get Fibre Channel upper-layer protocol by port name and type.
struct refcnt refcnt
Reference count.
static struct fc_port * fc_port_get(struct fc_port *port)
Get reference to Fibre Channel port.
struct interface plogi
PLOGI interface.
int fc_id_aton(const char *id_text, struct fc_port_id *id)
Parse Fibre Channel port ID.
struct interface transport
Transport interface.
fc_type
Fibre Channel Data Structure Type.
static void fc_ulp_put(struct fc_ulp *ulp)
Drop reference to Fibre Channel upper-layer protocol.
fc_f_ctl_es
Fibre Channel Frame Control - Exchange and Sequence.
A Fibre Channel link state nonitor.
struct refcnt * refcnt
Containing object reference count, or NULL.
struct interface ns_plogi
Name server PLOGI interface.
void(* examine)(struct fc_link_state *link)
Examine link state.
struct mschapv2_challenge peer
Peer challenge.
void fc_ulp_detach(struct fc_ulp_user *user)
Detach Fibre Channel upper-layer protocol user.
char pad[sizeof(struct sockaddr) - sizeof(sa_family_t) - sizeof(struct fc_port_id)]
Padding.
First Sequence of Exchange.
struct fc_peer * fc_peer_get_port_id(struct fc_port *port, const struct fc_port_id *peer_port_id)
Get Fibre Channel peer by port ID.
static void fc_ulp_user_init(struct fc_ulp_user *user, void(*examine)(struct fc_ulp_user *user), struct refcnt *refcnt)
Initialise Fibre Channel upper-layer protocol user.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
struct fc_port_id fc_ptp_low_port_id
Point-to-point low port ID.
fc_ulp_flags
Fibre Channel upper-layer protocol flags.
#define ref_put(refcnt)
Drop reference to object.
A Fibre Channel upper-layer protocol.
struct fc_port_id fc_ptp_high_port_id
Point-to-point high port ID.