diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2020-01-26 11:44:29 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-01-27 11:23:13 +0100 |
commit | 5a44c71ccda60a50073c5d7fe3f694cdfa3ab0c2 (patch) | |
tree | b782b960385188e996026321eee747d93d6a05a2 /drivers/net/ethernet/apm | |
parent | a8ec173a3f29fd777681c72835d4d8642ebea899 (diff) | |
download | linux-5a44c71ccda60a50073c5d7fe3f694cdfa3ab0c2.tar.gz linux-5a44c71ccda60a50073c5d7fe3f694cdfa3ab0c2.tar.bz2 linux-5a44c71ccda60a50073c5d7fe3f694cdfa3ab0c2.zip |
drivers: net: xgene: Fix the order of the arguments of 'alloc_etherdev_mqs()'
'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>
Diffstat (limited to 'drivers/net/ethernet/apm')
-rw-r--r-- | drivers/net/ethernet/apm/xgene/xgene_enet_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/apm/xgene/xgene_enet_main.c b/drivers/net/ethernet/apm/xgene/xgene_enet_main.c index e284b6753725..6aee2f0fc0db 100644 --- a/drivers/net/ethernet/apm/xgene/xgene_enet_main.c +++ b/drivers/net/ethernet/apm/xgene/xgene_enet_main.c @@ -2020,7 +2020,7 @@ static int xgene_enet_probe(struct platform_device *pdev) int ret; ndev = alloc_etherdev_mqs(sizeof(struct xgene_enet_pdata), - XGENE_NUM_RX_RING, XGENE_NUM_TX_RING); + XGENE_NUM_TX_RING, XGENE_NUM_RX_RING); if (!ndev) return -ENOMEM; |