Q-Logic 8100 SERIES Using sysfs, Sysfs Locations and Parameters, # cd /sys/module/qlge/parameters

Models: 8100 SERIES

1 348
Download 348 pages 63.28 Kb
Page 202
Image 202

6–Configuring NIC Functionality in the Converged Network Adapter Configuring the NIC in a Linux Environment

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.

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.

For the QLogic NIC driver, the following table summarizes the sysfs locations and the parameters can be modified by accessing these locations.

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

 

 

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

6-34

FE0254601-00 A

Page 202
Image 202
Q-Logic 8100 SERIES manual Using sysfs, Sysfs Locations and Parameters, Sysfs Location Modifiable Driver Parameters