mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
Pull Request for 3.13
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAABAgAGBQJSZW0dAAoJEEajxTw9cn4HMp8P/Ap2hwIHFfbdfshktNSLy6Xi xXq46qFh5IaiKE2+t3P4pDdr9UvaXD92ijVWSO0eZr2Y3cQ896/v7bakQt493BFB sRylmto7pzTGfA+tY5X498kBYKIHlKYdcY6sF89cOmMje8IMtwdlg4vWPbGXxFz5 z7VvIJkgTMDNOtJre93N0oSAfQf5iH9X7fnLGSsYntVTXoBrjzWHPq1547lhI7uR Zt1yTP5kvo3lvpLZuDB2+sly+Q7qsOJIN4teYIM0+gnIKXFqd2GGGw+MaFnx/jcu JIJuXkcDNxThLoT311IHPedWKt35liAI2aIy6z5uVeX/aGarcji0l2iDbJ7xswoL SMu6gQwdnNIZRFPupjWQCGd41wph1woo0W69a90Q57Sz9Yn8/owHhbApRHp2eCKx mz/AJ6wL4+Nq0oniRsxjFf8BJaqzbWxsp3hAcXXpsuliAH00D5Px0go/B80L1y32 R3NJ8earBo/cLaElmEdKT8fVuyiLdT4ckOVGF+MKuoXr+XfsI/p9o2wc/JZ1gTTH UfU5ee0d2BCj6tgh2QVsLXra9aHbXUa39YREUlO4QWG5ze0d+P/LMDCSlO+lxMk7 lUQRgQ91UQYpBOrSGzPcvSMmqg7vD+d4+PkTdIbaZtQUdQ1HLL0ARk6hFd14Cm2A 3CBlGvw/pPlk7+WQP92q =6dOX -----END PGP SIGNATURE----- Merge tag 'fcoe-3.13' into for-linus Pull Request for 3.13 for FCOE tree. Signed-off-by: James Bottomley <[email protected]>
This commit is contained in:
commit
323f6226a8
12 changed files with 310 additions and 176 deletions
|
|
@ -104,7 +104,7 @@ struct fc_esb {
|
|||
* esb_e_stat - flags from FC-FS-2 T11/1619-D Rev 0.90.
|
||||
*/
|
||||
#define ESB_ST_RESP (1 << 31) /* responder to exchange */
|
||||
#define ESB_ST_SEQ_INIT (1 << 30) /* port holds sequence initiaive */
|
||||
#define ESB_ST_SEQ_INIT (1 << 30) /* port holds sequence initiative */
|
||||
#define ESB_ST_COMPLETE (1 << 29) /* exchange is complete */
|
||||
#define ESB_ST_ABNORMAL (1 << 28) /* abnormal ending condition */
|
||||
#define ESB_ST_REC_QUAL (1 << 26) /* recovery qualifier active */
|
||||
|
|
|
|||
|
|
@ -410,6 +410,12 @@ struct fc_seq {
|
|||
* @fh_type: The frame type
|
||||
* @class: The class of service
|
||||
* @seq: The sequence in use on this exchange
|
||||
* @resp_active: Number of tasks that are concurrently executing @resp().
|
||||
* @resp_task: If @resp_active > 0, either the task executing @resp(), the
|
||||
* task that has been interrupted to execute the soft-IRQ
|
||||
* executing @resp() or NULL if more than one task is executing
|
||||
* @resp concurrently.
|
||||
* @resp_wq: Waitqueue for the tasks waiting on @resp_active.
|
||||
* @resp: Callback for responses on this exchange
|
||||
* @destructor: Called when destroying the exchange
|
||||
* @arg: Passed as a void pointer to the resp() callback
|
||||
|
|
@ -441,6 +447,9 @@ struct fc_exch {
|
|||
u32 r_a_tov;
|
||||
u32 f_ctl;
|
||||
struct fc_seq seq;
|
||||
int resp_active;
|
||||
struct task_struct *resp_task;
|
||||
wait_queue_head_t resp_wq;
|
||||
void (*resp)(struct fc_seq *, struct fc_frame *, void *);
|
||||
void *arg;
|
||||
void (*destructor)(struct fc_seq *, void *);
|
||||
|
|
|
|||
|
|
@ -90,6 +90,7 @@ enum fip_state {
|
|||
* @lp: &fc_lport: libfc local port.
|
||||
* @sel_fcf: currently selected FCF, or NULL.
|
||||
* @fcfs: list of discovered FCFs.
|
||||
* @cdev: (Optional) pointer to sysfs fcoe_ctlr_device.
|
||||
* @fcf_count: number of discovered FCF entries.
|
||||
* @sol_time: time when a multicast solicitation was last sent.
|
||||
* @sel_time: time after which to select an FCF.
|
||||
|
|
@ -127,6 +128,7 @@ struct fcoe_ctlr {
|
|||
struct fc_lport *lp;
|
||||
struct fcoe_fcf *sel_fcf;
|
||||
struct list_head fcfs;
|
||||
struct fcoe_ctlr_device *cdev;
|
||||
u16 fcf_count;
|
||||
unsigned long sol_time;
|
||||
unsigned long sel_time;
|
||||
|
|
@ -168,8 +170,11 @@ static inline void *fcoe_ctlr_priv(const struct fcoe_ctlr *ctlr)
|
|||
return (void *)(ctlr + 1);
|
||||
}
|
||||
|
||||
/*
|
||||
* This assumes that the fcoe_ctlr (x) is allocated with the fcoe_ctlr_device.
|
||||
*/
|
||||
#define fcoe_ctlr_to_ctlr_dev(x) \
|
||||
(struct fcoe_ctlr_device *)(((struct fcoe_ctlr_device *)(x)) - 1)
|
||||
(x)->cdev
|
||||
|
||||
/**
|
||||
* struct fcoe_fcf - Fibre-Channel Forwarder
|
||||
|
|
|
|||
Loading…
Reference in a new issue