mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 12:35:52 +02:00
net: fec: fec_enet_rx_queue(): use same signature as fec_enet_tx_queue()
There are the functions fec_enet_rx_queue() and fec_enet_tx_queue(), one for handling the RX queue the other one handles the TX queue. However they don't have the same signature. Align fec_enet_rx_queue() argument order with fec_enet_tx_queue() to make code more readable. Reviewed-by: Wei Fang <wei.fang@nxp.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Link: https://patch.msgid.link/20250618-fec-cleanups-v4-7-c16f9a1af124@pengutronix.de Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
a4addc3377
commit
e222c08f96
|
|
@ -1712,7 +1712,7 @@ fec_enet_run_xdp(struct fec_enet_private *fep, struct bpf_prog *prog,
|
|||
* effectively tossing the packet.
|
||||
*/
|
||||
static int
|
||||
fec_enet_rx_queue(struct net_device *ndev, int budget, u16 queue_id)
|
||||
fec_enet_rx_queue(struct net_device *ndev, u16 queue_id, int budget)
|
||||
{
|
||||
struct fec_enet_private *fep = netdev_priv(ndev);
|
||||
struct fec_enet_priv_rx_q *rxq;
|
||||
|
|
@ -1939,7 +1939,7 @@ static int fec_enet_rx(struct net_device *ndev, int budget)
|
|||
|
||||
/* Make sure that AVB queues are processed first. */
|
||||
for (i = fep->num_rx_queues - 1; i >= 0; i--)
|
||||
done += fec_enet_rx_queue(ndev, budget - done, i);
|
||||
done += fec_enet_rx_queue(ndev, i, budget - done);
|
||||
|
||||
return done;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user