Specifying the relative port number

Use the portno sysfs attribute to specify the relative port number.

Before you begin

  • This description applies to adapters that, per CHPID, show more than one port to Linux.
  • The device must be offline while you specify the relative port number.

Procedure

By default, the qeth group device uses port 0.
To use a different port, issue a command of the form:
# echo <integer> > /sys/bus/ccwgroup/drivers/qeth/<device_bus_id>/portno
Where <integer> is either 0 or 1.

Example

In this example, port 1 is assigned to the qeth group device.
# echo 1 > /sys/bus/ccwgroup/drivers/qeth/0.0.a000/portno