]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: fec: improve fec_enet_rx_queue()
authorWei Fang <wei.fang@nxp.com>
Thu, 5 Feb 2026 08:57:32 +0000 (16:57 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 10 Feb 2026 09:58:19 +0000 (10:58 +0100)
commitbc609f97b140c555c4788adedb7fa9dc77e75a27
treed3fefec5fef2a7eb318ea1b286cc67f5c7c85c19
parent54a6e86ba4ffd3c816186d366770ae23a99245f1
net: fec: improve fec_enet_rx_queue()

This patch has made the following adjustments to fec_enet_rx_queue().

1. The function parameters are modified to maintain the same style as
subsequently added XDP-related interfaces.

2. Some variables are initialized at the time of declaration, and the
order of local variables is updated to follow the reverse xmas tree
style.

3. Replace variable cbd_bufaddr with dma.

Signed-off-by: Wei Fang <wei.fang@nxp.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260205085742.2685134-6-wei.fang@nxp.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/freescale/fec_main.c