]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: fec: improve fec_enet_tx_queue()
authorWei Fang <wei.fang@nxp.com>
Thu, 5 Feb 2026 08:57:41 +0000 (16:57 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 10 Feb 2026 09:58:20 +0000 (10:58 +0100)
commitfee723a48cbe630c0e16ba3e6bca13569946a21c
treeb3e32186731be5b7d99971ec3ac798e897639cf8
parenta2ae70c0efe4eebc6dd5b96fcfbea913403768a3
net: fec: improve fec_enet_tx_queue()

To support AF_XDP zero-copy mode in the subsequent patch, the following
adjustments have been made to fec_tx_queue().

1. Change the parameters of fec_tx_queue().
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. Remove the variable xdpf and add the variable tx_buf.

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