bnx2fc: Make the fcoe_cltr the SCSI host parent
authorRobert Love <robert.w.love@intel.com>
Mon, 25 Mar 2013 18:00:26 +0000 (11:00 -0700)
committerRobert Love <robert.w.love@intel.com>
Mon, 25 Mar 2013 19:19:15 +0000 (12:19 -0700)
commit01bdcb626f80838f55ec2af993daef50b9c59c49
tree745c7ca9d9fe3599b626d0ea570f8fbe9024c914
parent8bb9660418e05bb1845ac1a2428444d78e322cc7
bnx2fc: Make the fcoe_cltr the SCSI host parent

The fcoemon userspace daemon is searching for the a hostX
under the the /sys/bus/fcoe/devices/ctlrX/ entries. When
interfaces created using fcoe_sysfs and fcoe.ko this linkage
is setup correctly, but bnx2fc is not doing the same thing
and therefore fcoemon does not create the fcoe interface
for bnx2fc.

This patch sets up the correct linkage for bnx2fc such that
fcoemon will work correctly with fcoe_sysfs and bnx2fc.

Signed-off-by: Robert Love <robert.w.love@intel.com>
Acked-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com>
drivers/scsi/bnx2fc/bnx2fc_fcoe.c