mirror of
https://github.com/ipxe/ipxe
synced 2026-01-13 09:29:04 +03:00
[fc] Do not use the command reference number in FCP_CMND IUs
The FCP command reference number is intended to be used for controlling precise delivery of FCP commands, rather than being an essentially arbitrary tag field (as with iSCSI and SRP). Use the Fibre Channel local exchange ID as the tag for FCP commands, instead of the FCP command reference. The local exchange ID does not appear within the FCP IU itself, but does appear within the FC frame header; debug traces can therefore still be correlated with packet captures. Reported-by: Hadar Hen Zion <hadarh@mellanox.co.il> Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -703,7 +703,7 @@ static struct fc_exchange * fc_xchg_create ( struct fc_port *port,
|
||||
* @v parent Interface to which to attach
|
||||
* @v port Fibre Channel port
|
||||
* @v peer_port_id Peer port ID
|
||||
* @ret rc Return status code
|
||||
* @ret xchg_id Exchange ID, or negative error
|
||||
*/
|
||||
int fc_xchg_originate ( struct interface *parent, struct fc_port *port,
|
||||
struct fc_port_id *peer_port_id, unsigned int type ) {
|
||||
@@ -722,7 +722,7 @@ int fc_xchg_originate ( struct interface *parent, struct fc_port *port,
|
||||
|
||||
/* Attach to parent interface and return */
|
||||
intf_plug_plug ( &xchg->ulp, parent );
|
||||
return 0;
|
||||
return xchg->xchg_id;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user