diff options
author | Yi Zou <yi.zou@intel.com> | 2012-12-06 01:24:29 -0500 |
---|---|---|
committer | Robert Love <robert.w.love@intel.com> | 2012-12-14 13:38:55 -0500 |
commit | c3d7909b865274ffa74fa2715c6663caa51a80e1 (patch) | |
tree | d0a738f49ffb92ccb62365bb80729f3eb0412122 /drivers/scsi | |
parent | 57c2728fa806aff08703e5739620454d723bc865 (diff) |
bnx2fc: add support to get_netdev for bnx2f_interface
Adds support to fcoe_port's newly added get_netdev fucntion pointer for bnx2fc.
Signed-off-by: Yi Zou <yi.zou@intel.com>
Cc: Bhanu Prakash Gollapudi <bprakash@broadcom.com>
Tested-by: Marcus Dennis <marcusx.e.dennis@intel.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/bnx2fc/bnx2fc_fcoe.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c index 8d975ef4eb69..9b9ccc94e7ae 100644 --- a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c +++ b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c | |||
@@ -119,7 +119,7 @@ static inline struct net_device *bnx2fc_netdev(const struct fc_lport *lport) | |||
119 | static void bnx2fc_get_lesb(struct fc_lport *lport, | 119 | static void bnx2fc_get_lesb(struct fc_lport *lport, |
120 | struct fc_els_lesb *fc_lesb) | 120 | struct fc_els_lesb *fc_lesb) |
121 | { | 121 | { |
122 | struct net_device *netdev = bnx2fc_netdev(lport); | 122 | struct net_device *netdev = fcoe_get_netdev(lport); |
123 | 123 | ||
124 | __fcoe_get_lesb(lport, fc_lesb, netdev); | 124 | __fcoe_get_lesb(lport, fc_lesb, netdev); |
125 | } | 125 | } |
@@ -127,7 +127,7 @@ static void bnx2fc_get_lesb(struct fc_lport *lport, | |||
127 | static void bnx2fc_ctlr_get_lesb(struct fcoe_ctlr_device *ctlr_dev) | 127 | static void bnx2fc_ctlr_get_lesb(struct fcoe_ctlr_device *ctlr_dev) |
128 | { | 128 | { |
129 | struct fcoe_ctlr *fip = fcoe_ctlr_device_priv(ctlr_dev); | 129 | struct fcoe_ctlr *fip = fcoe_ctlr_device_priv(ctlr_dev); |
130 | struct net_device *netdev = bnx2fc_netdev(fip->lp); | 130 | struct net_device *netdev = fcoe_get_netdev(fip->lp); |
131 | struct fcoe_fc_els_lesb *fcoe_lesb; | 131 | struct fcoe_fc_els_lesb *fcoe_lesb; |
132 | struct fc_els_lesb fc_lesb; | 132 | struct fc_els_lesb fc_lesb; |
133 | 133 | ||
@@ -1499,6 +1499,7 @@ static struct fc_lport *bnx2fc_if_create(struct bnx2fc_interface *interface, | |||
1499 | port = lport_priv(lport); | 1499 | port = lport_priv(lport); |
1500 | port->lport = lport; | 1500 | port->lport = lport; |
1501 | port->priv = interface; | 1501 | port->priv = interface; |
1502 | port->get_netdev = bnx2fc_netdev; | ||
1502 | INIT_WORK(&port->destroy_work, bnx2fc_destroy_work); | 1503 | INIT_WORK(&port->destroy_work, bnx2fc_destroy_work); |
1503 | 1504 | ||
1504 | /* Configure fcoe_port */ | 1505 | /* Configure fcoe_port */ |