ethtool: introduce new ioctl for per-queue settings

Introduce a new ioctl for applying per-queue parameters.
Users can apply commands to specific queues by setting SUB_COMMAND and
queue_mask with the following ethtool command:

 ethtool -Q|--per-queue DEVNAME [queue_mask %x] SUB_COMMAND

If queue_mask is not set, the SUB_COMMAND will be applied to all queues.

SUB_COMMANDs for per-queue settings will be implemented in following

Based on patch by Kan Liang <>

Signed-off-by: Nicholas Nunley <>
Reviewed-by: Michal Kubecek <>
Signed-off-by: John W. Linville <>
2 files changed