6–Linux Driver Software
Setting Values for Optional Properties
41
83840-546-00 N
For example, set the
pri_map
parameter to
0x22221100
to map priority 0 and
1 to CoS 0, map priority 2 and 3 to CoS 1, and map priority 4–7 to CoS 2. In
another example, set the
pri_map
parameter to
0x11110000
to map priority 0
to 3 to CoS 0, and map priority 4 to 7 to CoS 1.
qs_per_cos
Use the optional parameter
qs_per_cos
to specify the quantity of queues that
will share the same CoS. The driver evaluates this parameter up to three values of
8 bits each. Each byte sets the required quantity of queues for that CoS. The total
quantity of queues is limited by the hardware limit.
For example, set
qs_per_cos
to
0x10101
to create a total of three queues,
one per CoS. In another example, set
qs_per_cos
to
0x404
to create a total
of eight queues, divided into two CoS, 4 queues in each CoS.
cos_min_rate
Use the optional parameter
cos_min_rate
to determine the weight of each
CoS for round-robin scheduling in transmission. This parameter is evaluated by
the driver, up to three values of eight bits each. Each byte sets the weight for that
CoS. The weight ranges from 0 to 100.
For example, set the
cos_min_rate
parameter to
0x101
for a fair
transmission rate between two CoS. As another example, set the
cos_min_rate
parameter to
0x30201
to give the higher CoS the higher rate
of transmission. To avoid using the fairness algorithm, omit setting the optional
parameter
cos_min_rate
or set it to
0
.
To differentiate the traffic according to the VLAN PRI value, set the
multi_mode
parameter to 2 as shown in the following:
insmod bnx2x.ko multi_mode=2 pri_map=0x11110000 qs_per_cos=0x404
or
modprobe bnx2x multi_mode=2 pri_map=0x11110000 qs_per_cos=0x404
To differentiate the traffic according to the IP DSCP value, set the
multi_mode
parameter to 4 as shown in the following:
insmod bnx2x.ko multi_mode=4 pri_map=0x22221100 qs_per_cos=0x10101
cos_min_rate=0x30201
or
modprobe bnx2x multi_mode=4 pri_map=0x22221100 qs_per_cos=0x10101
cos_min_rate=0x30201