Skip to content

Commit 5a44c71

Browse files
tititiou36davem330
authored andcommitted
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: 107dec2 ("drivers: net: xgene: Add support for multiple queues") Signed-off-by: Christophe JAILLET <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent a8ec173 commit 5a44c71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/apm/xgene/xgene_enet_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2020,7 +2020,7 @@ static int xgene_enet_probe(struct platform_device *pdev)
20202020
int ret;
20212021

20222022
ndev = alloc_etherdev_mqs(sizeof(struct xgene_enet_pdata),
2023-
XGENE_NUM_RX_RING, XGENE_NUM_TX_RING);
2023+
XGENE_NUM_TX_RING, XGENE_NUM_RX_RING);
20242024
if (!ndev)
20252025
return -ENOMEM;
20262026

0 commit comments

Comments
 (0)