On 09/30/2009 01:36 PM, Mike Christie wrote:

Actually, I think I messed up on fcoe in RHEL 5.x. It looks like enic
uses SET_NETDEV_DEV like it should and other drivers do. In RHEL 5 that
sets the the pci device to netdev->class_dev.dev. For fcoe then I should
pass scsi_add_host netdev->class_dev.dev.


Yeah, fcoe is definately busted in RHEL 5. Here is a patch that fixes it.
diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c
index faa9ddf..039bf10 100644
--- a/drivers/scsi/fcoe/fcoe.c
+++ b/drivers/scsi/fcoe/fcoe.c
@@ -566,7 +566,7 @@ static int fcoe_if_create(struct net_device *netdev)
        dev_add_pack(&fc->fip_packet_type);
 
        /* configure lport scsi host properties */
-       rc = fcoe_shost_config(lp, shost, netdev->class_dev.dev->parent);
+       rc = fcoe_shost_config(lp, shost, netdev->class_dev.dev);
        if (rc) {
                FCOE_NETDEV_DBG(netdev, "Could not configure shost for the "
                                "interface\n");
_______________________________________________
devel mailing list
[email protected]
http://www.open-fcoe.org/mailman/listinfo/devel

Reply via email to