18c2ecf20Sopenharmony_ciWhat: /sys/bus/fcoe/ 28c2ecf20Sopenharmony_ciDate: August 2012 38c2ecf20Sopenharmony_ciKernelVersion: TBD 48c2ecf20Sopenharmony_ciContact: Robert Love <robert.w.love@intel.com>, devel@open-fcoe.org 58c2ecf20Sopenharmony_ciDescription: The FCoE bus. Attributes in this directory are control interfaces. 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ciAttributes: 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci ctlr_create: 108c2ecf20Sopenharmony_ci 'FCoE Controller' instance creation interface. Writing an 118c2ecf20Sopenharmony_ci <ifname> to this file will allocate and populate sysfs with a 128c2ecf20Sopenharmony_ci fcoe_ctlr_device (ctlr_X). The user can then configure any 138c2ecf20Sopenharmony_ci per-port settings and finally write to the fcoe_ctlr_device's 148c2ecf20Sopenharmony_ci 'start' attribute to begin the kernel's discovery and login 158c2ecf20Sopenharmony_ci process. 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci ctlr_destroy: 188c2ecf20Sopenharmony_ci 'FCoE Controller' instance removal interface. Writing a 198c2ecf20Sopenharmony_ci fcoe_ctlr_device's sysfs name to this file will log the 208c2ecf20Sopenharmony_ci fcoe_ctlr_device out of the fabric or otherwise connected 218c2ecf20Sopenharmony_ci FCoE devices. It will also free all kernel memory allocated 228c2ecf20Sopenharmony_ci for this fcoe_ctlr_device and any structures associated 238c2ecf20Sopenharmony_ci with it, this includes the scsi_host. 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ciWhat: /sys/bus/fcoe/devices/ctlr_X 268c2ecf20Sopenharmony_ciDate: March 2012 278c2ecf20Sopenharmony_ciKernelVersion: TBD 288c2ecf20Sopenharmony_ciContact: Robert Love <robert.w.love@intel.com>, devel@open-fcoe.org 298c2ecf20Sopenharmony_ciDescription: 'FCoE Controller' instances on the fcoe bus. 308c2ecf20Sopenharmony_ci The FCoE Controller now has a three stage creation process. 318c2ecf20Sopenharmony_ci 1) Write interface name to ctlr_create 2) Configure the FCoE 328c2ecf20Sopenharmony_ci Controller (ctlr_X) 3) Enable the FCoE Controller to begin 338c2ecf20Sopenharmony_ci discovery and login. The FCoE Controller is destroyed by 348c2ecf20Sopenharmony_ci writing it's name, i.e. ctlr_X to the ctlr_delete file. 358c2ecf20Sopenharmony_ci 368c2ecf20Sopenharmony_ciAttributes: 378c2ecf20Sopenharmony_ci 388c2ecf20Sopenharmony_ci fcf_dev_loss_tmo: 398c2ecf20Sopenharmony_ci Device loss timeout period (see below). Changing 408c2ecf20Sopenharmony_ci this value will change the dev_loss_tmo for all 418c2ecf20Sopenharmony_ci FCFs discovered by this controller. 428c2ecf20Sopenharmony_ci 438c2ecf20Sopenharmony_ci mode: 448c2ecf20Sopenharmony_ci Display or change the FCoE Controller's mode. Possible 458c2ecf20Sopenharmony_ci modes are 'Fabric' and 'VN2VN'. If a FCoE Controller 468c2ecf20Sopenharmony_ci is started in 'Fabric' mode then FIP FCF discovery is 478c2ecf20Sopenharmony_ci initiated and ultimately a fabric login is attempted. 488c2ecf20Sopenharmony_ci If a FCoE Controller is started in 'VN2VN' mode then 498c2ecf20Sopenharmony_ci FIP VN2VN discovery and login is performed. A FCoE 508c2ecf20Sopenharmony_ci Controller only supports one mode at a time. 518c2ecf20Sopenharmony_ci 528c2ecf20Sopenharmony_ci enabled: 538c2ecf20Sopenharmony_ci Whether an FCoE controller is enabled or disabled. 548c2ecf20Sopenharmony_ci 0 if disabled, 1 if enabled. Writing either 0 or 1 558c2ecf20Sopenharmony_ci to this file will enable or disable the FCoE controller. 568c2ecf20Sopenharmony_ci 578c2ecf20Sopenharmony_ci lesb/link_fail: 588c2ecf20Sopenharmony_ci Link Error Status Block (LESB) link failure count. 598c2ecf20Sopenharmony_ci 608c2ecf20Sopenharmony_ci lesb/vlink_fail: 618c2ecf20Sopenharmony_ci Link Error Status Block (LESB) virtual link 628c2ecf20Sopenharmony_ci failure count. 638c2ecf20Sopenharmony_ci 648c2ecf20Sopenharmony_ci lesb/miss_fka: 658c2ecf20Sopenharmony_ci Link Error Status Block (LESB) missed FCoE 668c2ecf20Sopenharmony_ci Initialization Protocol (FIP) Keep-Alives (FKA). 678c2ecf20Sopenharmony_ci 688c2ecf20Sopenharmony_ci lesb/symb_err: 698c2ecf20Sopenharmony_ci Link Error Status Block (LESB) symbolic error count. 708c2ecf20Sopenharmony_ci 718c2ecf20Sopenharmony_ci lesb/err_block: 728c2ecf20Sopenharmony_ci Link Error Status Block (LESB) block error count. 738c2ecf20Sopenharmony_ci 748c2ecf20Sopenharmony_ci lesb/fcs_error: 758c2ecf20Sopenharmony_ci Link Error Status Block (LESB) Fibre Channel 768c2ecf20Sopenharmony_ci Services error count. 778c2ecf20Sopenharmony_ci 788c2ecf20Sopenharmony_ciNotes: ctlr_X (global increment starting at 0) 798c2ecf20Sopenharmony_ci 808c2ecf20Sopenharmony_ciWhat: /sys/bus/fcoe/devices/fcf_X 818c2ecf20Sopenharmony_ciDate: March 2012 828c2ecf20Sopenharmony_ciKernelVersion: TBD 838c2ecf20Sopenharmony_ciContact: Robert Love <robert.w.love@intel.com>, devel@open-fcoe.org 848c2ecf20Sopenharmony_ciDescription: 'FCoE FCF' instances on the fcoe bus. A FCF is a Fibre Channel 858c2ecf20Sopenharmony_ci Forwarder, which is a FCoE switch that can accept FCoE 868c2ecf20Sopenharmony_ci (Ethernet) packets, unpack them, and forward the embedded 878c2ecf20Sopenharmony_ci Fibre Channel frames into a FC fabric. It can also take 888c2ecf20Sopenharmony_ci outbound FC frames and pack them in Ethernet packets to 898c2ecf20Sopenharmony_ci be sent to their destination on the Ethernet segment. 908c2ecf20Sopenharmony_ci 918c2ecf20Sopenharmony_ciAttributes: 928c2ecf20Sopenharmony_ci 938c2ecf20Sopenharmony_ci fabric_name: 948c2ecf20Sopenharmony_ci Identifies the fabric that the FCF services. 958c2ecf20Sopenharmony_ci 968c2ecf20Sopenharmony_ci switch_name: 978c2ecf20Sopenharmony_ci Identifies the FCF. 988c2ecf20Sopenharmony_ci 998c2ecf20Sopenharmony_ci priority: 1008c2ecf20Sopenharmony_ci The switch's priority amongst other FCFs on the same 1018c2ecf20Sopenharmony_ci fabric. 1028c2ecf20Sopenharmony_ci 1038c2ecf20Sopenharmony_ci selected: 1048c2ecf20Sopenharmony_ci 1 indicates that the switch has been selected for use; 1058c2ecf20Sopenharmony_ci 0 indicates that the switch will not be used. 1068c2ecf20Sopenharmony_ci 1078c2ecf20Sopenharmony_ci fc_map: 1088c2ecf20Sopenharmony_ci The Fibre Channel MAP 1098c2ecf20Sopenharmony_ci 1108c2ecf20Sopenharmony_ci vfid: 1118c2ecf20Sopenharmony_ci The Virtual Fabric ID 1128c2ecf20Sopenharmony_ci 1138c2ecf20Sopenharmony_ci mac: 1148c2ecf20Sopenharmony_ci The FCF's MAC address 1158c2ecf20Sopenharmony_ci 1168c2ecf20Sopenharmony_ci fka_period: 1178c2ecf20Sopenharmony_ci The FIP Keep-Alive period 1188c2ecf20Sopenharmony_ci 1198c2ecf20Sopenharmony_ci fabric_state: The internal kernel state 1208c2ecf20Sopenharmony_ci 1218c2ecf20Sopenharmony_ci - "Unknown" - Initialization value 1228c2ecf20Sopenharmony_ci - "Disconnected" - No link to the FCF/fabric 1238c2ecf20Sopenharmony_ci - "Connected" - Host is connected to the FCF 1248c2ecf20Sopenharmony_ci - "Deleted" - FCF is being removed from the system 1258c2ecf20Sopenharmony_ci 1268c2ecf20Sopenharmony_ci dev_loss_tmo: The device loss timeout period for this FCF. 1278c2ecf20Sopenharmony_ci 1288c2ecf20Sopenharmony_ciNotes: A device loss infrastructure similar to the FC Transport's 1298c2ecf20Sopenharmony_ci is present in fcoe_sysfs. It is nice to have so that a 1308c2ecf20Sopenharmony_ci link flapping adapter doesn't continually advance the count 1318c2ecf20Sopenharmony_ci used to identify the discovered FCF. FCFs will exist in a 1328c2ecf20Sopenharmony_ci "Disconnected" state until either the timer expires and the 1338c2ecf20Sopenharmony_ci FCF becomes "Deleted" or the FCF is rediscovered and becomes 1348c2ecf20Sopenharmony_ci "Connected." 1358c2ecf20Sopenharmony_ci 1368c2ecf20Sopenharmony_ci 1378c2ecf20Sopenharmony_ciUsers: The first user of this interface will be the fcoeadm application, 1388c2ecf20Sopenharmony_ci which is commonly packaged in the fcoe-utils package. 139