diff options
author | Julian Wiedmann <jwi@linux.ibm.com> | 2020-10-01 19:11:32 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-10-02 16:22:49 -0700 |
commit | 949bbf4d2db873a6c229a43d816d9f8152b31704 (patch) | |
tree | a7d879f76b6568970c895d6c6dd685a692b3adca /drivers/s390/net/qeth_l2_main.c | |
parent | 72d5e8504e3b2b83a94403b0bbe3070b70538bb9 (diff) | |
download | lwn-949bbf4d2db873a6c229a43d816d9f8152b31704.tar.gz lwn-949bbf4d2db873a6c229a43d816d9f8152b31704.zip |
s390/qeth: allow configuration of TX queues for OSA devices
For OSA devices that are _not_ configured in prio-queue mode, give users
the option of selecting the number of active TX queues.
This requires setting up the HW queues with a reasonable default QoS
value in the QIB's PQUE parm area.
As with the other device types, we bring up the device with a minimal
number of TX queues for compatibility reasons.
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390/net/qeth_l2_main.c')
-rw-r--r-- | drivers/s390/net/qeth_l2_main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/s390/net/qeth_l2_main.c b/drivers/s390/net/qeth_l2_main.c index 290389fc7e79..c0ceeddd1549 100644 --- a/drivers/s390/net/qeth_l2_main.c +++ b/drivers/s390/net/qeth_l2_main.c @@ -571,9 +571,10 @@ static u16 qeth_l2_select_queue(struct net_device *dev, struct sk_buff *skb, return qeth_iqd_select_queue(dev, skb, qeth_get_ether_cast_type(skb), sb_dev); + if (qeth_uses_tx_prio_queueing(card)) + return qeth_get_priority_queue(card, skb); - return IS_VM_NIC(card) ? netdev_pick_tx(dev, skb, sb_dev) : - qeth_get_priority_queue(card, skb); + return netdev_pick_tx(dev, skb, sb_dev); } static void qeth_l2_set_rx_mode(struct net_device *dev) |