]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drivers: net: xgene: Fix the order of the arguments of 'alloc_etherdev_mqs()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 26 Jan 2020 10:44:29 +0000 (11:44 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Mar 2020 15:45:22 +0000 (16:45 +0100)
commit58131dfb303fec977ebba6dddd3c266bd6588a66
tree7c6c78e3ea5c2fb1a5cf5cabf5daa07bc1eb3a98
parent25bda0cba6f8c2db5e4bb0d117300ef4a84058b4
drivers: net: xgene: Fix the order of the arguments of 'alloc_etherdev_mqs()'

commit 5a44c71ccda60a50073c5d7fe3f694cdfa3ab0c2 upstream.

'alloc_etherdev_mqs()' expects first 'tx', then 'rx'. The semantic here
looks reversed.

Reorder the arguments passed to 'alloc_etherdev_mqs()' in order to keep
the correct semantic.

In fact, this is a no-op because both XGENE_NUM_[RT]X_RING are 8.

Fixes: 107dec2749fe ("drivers: net: xgene: Add support for multiple queues")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/apm/xgene/xgene_enet_main.c