]> git.baikalelectronics.ru Git - kernel.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:43:49 +0000 (16:43 +0100)
commit41f2f2c3634c6ef8cd6424e172c98b3d6a55189f
tree3dd958c3de169025bc1d469c8bb901811735a0d4
parent1a9bdfd0df8e82aec21bb75e2711c72b2fdab319
drivers: net: xgene: Fix the order of the arguments of 'alloc_etherdev_mqs()'

commit ffd9377288599fe5f2b8f488ea4cccabbd771b0b 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: 07875f33ce39 ("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