]> git.dujemihanovic.xyz Git - linux.git/commit
net: lan966x: replace a few variables with new equivalent ones
authorDaniel Machon <daniel.machon@microchip.com>
Thu, 5 Sep 2024 08:06:31 +0000 (10:06 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 10 Sep 2024 09:04:16 +0000 (11:04 +0200)
commit8274d40eafa37b570ad7be8b7fe5fe507509c153
tree71b81b8fc11baaf68b1d9c641cfc24ca0a9c8376
parent1dfe4ca8cb4af9d648b0f04e4449728e94eb516e
net: lan966x: replace a few variables with new equivalent ones

Replace the old rx and tx variables: channel_id, FDMA_DCB_MAX,
FDMA_RX_DCB_MAX_DBS, FDMA_TX_DCB_MAX_DBS, dcb_index and db_index with
the equivalents from the FDMA rx and tx structs. These variables are not
entangled in any buffer allocation and can therefore be replaced in
advance.

Signed-off-by: Daniel Machon <daniel.machon@microchip.com>
Reviewed-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/microchip/lan966x/lan966x_fdma.c
drivers/net/ethernet/microchip/lan966x/lan966x_main.h