Q-Logic 8100 SERIES 用户手册

下载
页码 348
6–Configuring NIC Functionality in the Converged Network Adapter
Configuring the NIC in a Linux Environment
6-34
FE0254601-00 A
Using sysfs
The sysfs virtual file system, provided by Linux 2.6 kernels, is available in RHEL 
5. It exports information about supported devices and drivers from the kernel 
device model into user space and configures devices and drivers.
For the QLogic NIC driver, the following table summarizes the sysfs locations 
and the parameters can be modified by accessing these locations.
For example:
1.
Change directory into the sysfs location where the driver parameter to be 
modified is represented as a sysfs special file/entry. For example:
# cd /sys/module/qlge/parameters
2.
Modify the sysfs entry for the corresponding driver parameter. The 
following command forces the qlge driver to use MSI interrupts. For 
example:
# echo 1 > qlge_irq_type
NOTE:
Driver parameter changes that you make with sysfs are effective 
immediately, and do not interrupt I/O operations on the adapter.
CAUTION!
Driver parameter changes that you make with sysfs are not persistent 
across reboots or driver reloads.
Table 6-3. Sysfs Locations and Parameters
Sysfs Location
Modifiable Driver Parameters
/sys/module/qlge/parameters
qlge_irq_type
qlge_mpi_coredump
qlge_spool_coredump
/sys/class/net/ethX/
mtu
flags
weight