162306a36Sopenharmony_ciWhat: /sys/bus/fcoe/ 262306a36Sopenharmony_ciDate: August 2012 362306a36Sopenharmony_ciKernelVersion: TBD 462306a36Sopenharmony_ciContact: Robert Love <robert.w.love@intel.com>, devel@open-fcoe.org 562306a36Sopenharmony_ciDescription: The FCoE bus. Attributes in this directory are control interfaces. 662306a36Sopenharmony_ci 762306a36Sopenharmony_ciAttributes: 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci ctlr_create: 1062306a36Sopenharmony_ci 'FCoE Controller' instance creation interface. Writing an 1162306a36Sopenharmony_ci <ifname> to this file will allocate and populate sysfs with a 1262306a36Sopenharmony_ci fcoe_ctlr_device (ctlr_X). The user can then configure any 1362306a36Sopenharmony_ci per-port settings and finally write to the fcoe_ctlr_device's 1462306a36Sopenharmony_ci 'start' attribute to begin the kernel's discovery and login 1562306a36Sopenharmony_ci process. 1662306a36Sopenharmony_ci 1762306a36Sopenharmony_ci ctlr_destroy: 1862306a36Sopenharmony_ci 'FCoE Controller' instance removal interface. Writing a 1962306a36Sopenharmony_ci fcoe_ctlr_device's sysfs name to this file will log the 2062306a36Sopenharmony_ci fcoe_ctlr_device out of the fabric or otherwise connected 2162306a36Sopenharmony_ci FCoE devices. It will also free all kernel memory allocated 2262306a36Sopenharmony_ci for this fcoe_ctlr_device and any structures associated 2362306a36Sopenharmony_ci with it, this includes the scsi_host. 2462306a36Sopenharmony_ci 2562306a36Sopenharmony_ciWhat: /sys/bus/fcoe/devices/ctlr_X 2662306a36Sopenharmony_ciDate: March 2012 2762306a36Sopenharmony_ciKernelVersion: TBD 2862306a36Sopenharmony_ciContact: Robert Love <robert.w.love@intel.com>, devel@open-fcoe.org 2962306a36Sopenharmony_ciDescription: 'FCoE Controller' instances on the fcoe bus. 3062306a36Sopenharmony_ci The FCoE Controller now has a three stage creation process. 3162306a36Sopenharmony_ci 1) Write interface name to ctlr_create 2) Configure the FCoE 3262306a36Sopenharmony_ci Controller (ctlr_X) 3) Enable the FCoE Controller to begin 3362306a36Sopenharmony_ci discovery and login. The FCoE Controller is destroyed by 3462306a36Sopenharmony_ci writing its name, i.e. ctlr_X to the ctlr_delete file. 3562306a36Sopenharmony_ci 3662306a36Sopenharmony_ciAttributes: 3762306a36Sopenharmony_ci 3862306a36Sopenharmony_ci fcf_dev_loss_tmo: 3962306a36Sopenharmony_ci Device loss timeout period (see below). Changing 4062306a36Sopenharmony_ci this value will change the dev_loss_tmo for all 4162306a36Sopenharmony_ci FCFs discovered by this controller. 4262306a36Sopenharmony_ci 4362306a36Sopenharmony_ci mode: 4462306a36Sopenharmony_ci Display or change the FCoE Controller's mode. Possible 4562306a36Sopenharmony_ci modes are 'Fabric' and 'VN2VN'. If a FCoE Controller 4662306a36Sopenharmony_ci is started in 'Fabric' mode then FIP FCF discovery is 4762306a36Sopenharmony_ci initiated and ultimately a fabric login is attempted. 4862306a36Sopenharmony_ci If a FCoE Controller is started in 'VN2VN' mode then 4962306a36Sopenharmony_ci FIP VN2VN discovery and login is performed. A FCoE 5062306a36Sopenharmony_ci Controller only supports one mode at a time. 5162306a36Sopenharmony_ci 5262306a36Sopenharmony_ci enabled: 5362306a36Sopenharmony_ci Whether an FCoE controller is enabled or disabled. 5462306a36Sopenharmony_ci 0 if disabled, 1 if enabled. Writing either 0 or 1 5562306a36Sopenharmony_ci to this file will enable or disable the FCoE controller. 5662306a36Sopenharmony_ci 5762306a36Sopenharmony_ci lesb/link_fail: 5862306a36Sopenharmony_ci Link Error Status Block (LESB) link failure count. 5962306a36Sopenharmony_ci 6062306a36Sopenharmony_ci lesb/vlink_fail: 6162306a36Sopenharmony_ci Link Error Status Block (LESB) virtual link 6262306a36Sopenharmony_ci failure count. 6362306a36Sopenharmony_ci 6462306a36Sopenharmony_ci lesb/miss_fka: 6562306a36Sopenharmony_ci Link Error Status Block (LESB) missed FCoE 6662306a36Sopenharmony_ci Initialization Protocol (FIP) Keep-Alives (FKA). 6762306a36Sopenharmony_ci 6862306a36Sopenharmony_ci lesb/symb_err: 6962306a36Sopenharmony_ci Link Error Status Block (LESB) symbolic error count. 7062306a36Sopenharmony_ci 7162306a36Sopenharmony_ci lesb/err_block: 7262306a36Sopenharmony_ci Link Error Status Block (LESB) block error count. 7362306a36Sopenharmony_ci 7462306a36Sopenharmony_ci lesb/fcs_error: 7562306a36Sopenharmony_ci Link Error Status Block (LESB) Fibre Channel 7662306a36Sopenharmony_ci Services error count. 7762306a36Sopenharmony_ci 7862306a36Sopenharmony_ciNotes: ctlr_X (global increment starting at 0) 7962306a36Sopenharmony_ci 8062306a36Sopenharmony_ciWhat: /sys/bus/fcoe/devices/fcf_X 8162306a36Sopenharmony_ciDate: March 2012 8262306a36Sopenharmony_ciKernelVersion: TBD 8362306a36Sopenharmony_ciContact: Robert Love <robert.w.love@intel.com>, devel@open-fcoe.org 8462306a36Sopenharmony_ciDescription: 'FCoE FCF' instances on the fcoe bus. A FCF is a Fibre Channel 8562306a36Sopenharmony_ci Forwarder, which is a FCoE switch that can accept FCoE 8662306a36Sopenharmony_ci (Ethernet) packets, unpack them, and forward the embedded 8762306a36Sopenharmony_ci Fibre Channel frames into a FC fabric. It can also take 8862306a36Sopenharmony_ci outbound FC frames and pack them in Ethernet packets to 8962306a36Sopenharmony_ci be sent to their destination on the Ethernet segment. 9062306a36Sopenharmony_ci 9162306a36Sopenharmony_ciAttributes: 9262306a36Sopenharmony_ci 9362306a36Sopenharmony_ci fabric_name: 9462306a36Sopenharmony_ci Identifies the fabric that the FCF services. 9562306a36Sopenharmony_ci 9662306a36Sopenharmony_ci switch_name: 9762306a36Sopenharmony_ci Identifies the FCF. 9862306a36Sopenharmony_ci 9962306a36Sopenharmony_ci priority: 10062306a36Sopenharmony_ci The switch's priority amongst other FCFs on the same 10162306a36Sopenharmony_ci fabric. 10262306a36Sopenharmony_ci 10362306a36Sopenharmony_ci selected: 10462306a36Sopenharmony_ci 1 indicates that the switch has been selected for use; 10562306a36Sopenharmony_ci 0 indicates that the switch will not be used. 10662306a36Sopenharmony_ci 10762306a36Sopenharmony_ci fc_map: 10862306a36Sopenharmony_ci The Fibre Channel MAP 10962306a36Sopenharmony_ci 11062306a36Sopenharmony_ci vfid: 11162306a36Sopenharmony_ci The Virtual Fabric ID 11262306a36Sopenharmony_ci 11362306a36Sopenharmony_ci mac: 11462306a36Sopenharmony_ci The FCF's MAC address 11562306a36Sopenharmony_ci 11662306a36Sopenharmony_ci fka_period: 11762306a36Sopenharmony_ci The FIP Keep-Alive period 11862306a36Sopenharmony_ci 11962306a36Sopenharmony_ci fabric_state: The internal kernel state 12062306a36Sopenharmony_ci 12162306a36Sopenharmony_ci - "Unknown" - Initialization value 12262306a36Sopenharmony_ci - "Disconnected" - No link to the FCF/fabric 12362306a36Sopenharmony_ci - "Connected" - Host is connected to the FCF 12462306a36Sopenharmony_ci - "Deleted" - FCF is being removed from the system 12562306a36Sopenharmony_ci 12662306a36Sopenharmony_ci dev_loss_tmo: The device loss timeout period for this FCF. 12762306a36Sopenharmony_ci 12862306a36Sopenharmony_ciNotes: A device loss infrastructure similar to the FC Transport's 12962306a36Sopenharmony_ci is present in fcoe_sysfs. It is nice to have so that a 13062306a36Sopenharmony_ci link flapping adapter doesn't continually advance the count 13162306a36Sopenharmony_ci used to identify the discovered FCF. FCFs will exist in a 13262306a36Sopenharmony_ci "Disconnected" state until either the timer expires and the 13362306a36Sopenharmony_ci FCF becomes "Deleted" or the FCF is rediscovered and becomes 13462306a36Sopenharmony_ci "Connected." 13562306a36Sopenharmony_ci 13662306a36Sopenharmony_ci 13762306a36Sopenharmony_ciUsers: The first user of this interface will be the fcoeadm application, 13862306a36Sopenharmony_ci which is commonly packaged in the fcoe-utils package. 139