OSDN Git Service

bnx2fc: Use the fcoe_sysfs control interface
authorRobert Love <robert.w.love@intel.com>
Tue, 27 Nov 2012 06:53:40 +0000 (06:53 +0000)
committerRobert Love <robert.w.love@intel.com>
Fri, 14 Dec 2012 18:38:55 +0000 (10:38 -0800)
commit6e89ea3f1032d5c762f1ae9b0bd2039794596813
tree8454705e08cf841d3488c4fe738df21a6f37b154
parent435c86679a24ead623c8a47ca31038e250a75e05
bnx2fc: Use the fcoe_sysfs control interface

This patch adds support for the new fcoe_sysfs
control interface to bnx2fc.ko. It keeps the deprecated
interface in tact and therefore either the legacy
or the new control interfaces can be used. A mixed mode
is not supported. A user must either use the new
interfaces or the old ones, but not both.

The fcoe_ctlr's link state is now driven by both the
netdev link state as well as the fcoe_ctlr_device's
enabled attribute. The link must be up and the
fcoe_ctlr_device must be enabled before the FCoE
Controller starts discovery or login.

Signed-off-by: Robert Love <robert.w.love@intel.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
drivers/scsi/bnx2fc/bnx2fc_fcoe.c