How to disable NIC Multi-queue in Linux?

Currently I am using Ubuntu 18.04 with Linux Kernel 4.15 and mlx5_core. I found my NIC queue is set to 60, now I need to do some experiment and disable multi-queue, I searched on the internet but very few info is present.

If the mlx5 driver has a parameter that helps disable it, please tell me how to do that. Thank you !

Hi Qing Dong,

First, please kindly run the ethtool -l command to check whether the primary NIC supports NIC multi-queue.

[root@localhost ~]# ethtool -l eth0

Channel parameters for eth0:

Pre-set maximums:

RX: 0

TX: 0

Other: 0

Combined: 2 # This value indicates that a maximum of two queues can be configured.

Current hardware settings:

RX: 0

TX: 0

Other: 0

Combined: 1 # This value indicates that one queue is in effect.

You can run the following command on your hosts to disable multiple queues:

ethtool -L eth0 combined 1

Enjoy it!