diff options
author | Joe Eykholt <jeykholt@cisco.com> | 2010-07-20 18:19:58 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-07-28 10:05:52 -0400 |
commit | 3d902ac09a2812b359edf633425d1327a18399e9 (patch) | |
tree | 188605c45a1502862610b03e8429a67ed3d3a7b7 /drivers/scsi/fcoe | |
parent | 0685230c59b5482e04ab50e7afc51119ceaba651 (diff) |
[SCSI] libfcoe: fcoe: fnic: change fcoe_ctlr_init interface to specify mode
There are three modes that libfcoe currently supports, and a new one
is coming. Change the fcoe_ctlr_init() interface to add the mode
desired. This should not change any functionality.
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>
Diffstat (limited to 'drivers/scsi/fcoe')
-rw-r--r-- | drivers/scsi/fcoe/fcoe.c | 2 | ||||
-rw-r--r-- | drivers/scsi/fcoe/libfcoe.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c index a120962b25b8..9d64e08305c7 100644 --- a/drivers/scsi/fcoe/fcoe.c +++ b/drivers/scsi/fcoe/fcoe.c | |||
@@ -357,7 +357,7 @@ static struct fcoe_interface *fcoe_interface_create(struct net_device *netdev) | |||
357 | /* | 357 | /* |
358 | * Initialize FIP. | 358 | * Initialize FIP. |
359 | */ | 359 | */ |
360 | fcoe_ctlr_init(&fcoe->ctlr); | 360 | fcoe_ctlr_init(&fcoe->ctlr, FIP_MODE_AUTO); |
361 | fcoe->ctlr.send = fcoe_fip_send; | 361 | fcoe->ctlr.send = fcoe_fip_send; |
362 | fcoe->ctlr.update_mac = fcoe_update_src_mac; | 362 | fcoe->ctlr.update_mac = fcoe_update_src_mac; |
363 | fcoe->ctlr.get_src_addr = fcoe_get_src_mac; | 363 | fcoe->ctlr.get_src_addr = fcoe_get_src_mac; |
diff --git a/drivers/scsi/fcoe/libfcoe.c b/drivers/scsi/fcoe/libfcoe.c index e510888e78ca..76056e4c9297 100644 --- a/drivers/scsi/fcoe/libfcoe.c +++ b/drivers/scsi/fcoe/libfcoe.c | |||
@@ -108,10 +108,10 @@ static inline int fcoe_ctlr_fcf_usable(struct fcoe_fcf *fcf) | |||
108 | * fcoe_ctlr_init() - Initialize the FCoE Controller instance | 108 | * fcoe_ctlr_init() - Initialize the FCoE Controller instance |
109 | * @fip: The FCoE controller to initialize | 109 | * @fip: The FCoE controller to initialize |
110 | */ | 110 | */ |
111 | void fcoe_ctlr_init(struct fcoe_ctlr *fip) | 111 | void fcoe_ctlr_init(struct fcoe_ctlr *fip, enum fip_state mode) |
112 | { | 112 | { |
113 | fip->state = FIP_ST_LINK_WAIT; | 113 | fip->state = FIP_ST_LINK_WAIT; |
114 | fip->mode = FIP_ST_AUTO; | 114 | fip->mode = mode; |
115 | INIT_LIST_HEAD(&fip->fcfs); | 115 | INIT_LIST_HEAD(&fip->fcfs); |
116 | mutex_init(&fip->ctlr_mutex); | 116 | mutex_init(&fip->ctlr_mutex); |
117 | fip->flogi_oxid = FC_XID_UNKNOWN; | 117 | fip->flogi_oxid = FC_XID_UNKNOWN; |