summaryrefslogtreecommitdiffstats
path: root/src/net/fcoe.c
diff options
context:
space:
mode:
authorMichael Brown2010-11-27 15:37:53 +0100
committerMichael Brown2010-11-27 15:37:53 +0100
commit1415ec9c9a51ff7cbbb9413b712f768514212980 (patch)
tree1647163c9c67a667149337c18bf71656b6a46507 /src/net/fcoe.c
parent[fcoe] Create Fibre Channel port only when we have selected an FCF (diff)
downloadipxe-1415ec9c9a51ff7cbbb9413b712f768514212980.tar.gz
ipxe-1415ec9c9a51ff7cbbb9413b712f768514212980.tar.xz
ipxe-1415ec9c9a51ff7cbbb9413b712f768514212980.zip
[fc] Allow Fibre Channel ports to be explicitly named
Use the network interface name as the Fibre Channel port name. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/fcoe.c')
-rw-r--r--src/net/fcoe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/fcoe.c b/src/net/fcoe.c
index e155ff3a..24479ec0 100644
--- a/src/net/fcoe.c
+++ b/src/net/fcoe.c
@@ -1056,7 +1056,8 @@ static void fcoe_expired ( struct retry_timer *timer, int over __unused ) {
/* Attach Fibre Channel port */
if ( ( rc = fc_port_open ( &fcoe->transport, &fcoe->node_wwn.fc,
- &fcoe->port_wwn.fc ) ) != 0 ) {
+ &fcoe->port_wwn.fc,
+ fcoe->netdev->name ) ) != 0 ) {
DBGC ( fcoe, "FCoE %s could not create FC port: %s\n",
fcoe->netdev->name, strerror ( rc ) );
/* We will try again on the next timer expiry */