Specifying the relative port number

Red Hat Enterprise Linux 9.2 LPAR mode z/VM guest

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:
# chzdev -a <device_bus_id> portno=<integer>
or, using sysfs:
# 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.
# chzdev -a 0.0.a000 portno=1
or, using sysfs:
# echo 1 > /sys/bus/ccwgroup/drivers/qeth/0.0.a000/portno