]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: sparx5: use FDMA library for adding DCB's in the tx path
authorDaniel Machon <daniel.machon@microchip.com>
Mon, 2 Sep 2024 14:54:14 +0000 (16:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Sep 2024 10:53:50 +0000 (11:53 +0100)
commitf4aa7e361ae2265ccdf2300f0a2ec531caed3f40
tree528182b663f970f10f138776eab56dd39879aac1
parent0a5c440850896a0ae5a2cd637b3e84e442520f1d
net: sparx5: use FDMA library for adding DCB's in the tx path

Use the fdma_dcb_add() function to add DCB's in the tx path. This gets
rid of the open-coding of nextptr and dataptr handling and leaves it to
the library.

Also, make sure the fdma indexes are advanced using: fdma_dcb_advance(),
so that the correct nextptr and dataptr offsets are retrieved.

Signed-off-by: Daniel Machon <daniel.machon@microchip.com>
Reviewed-by: Steen Hegelund <Steen.Hegelund@microchip.com>
Reviewed-by: Jens Emil Schulz Østergaard <jensemil.schulzostergaard@microchip.com>
Reviewed-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microchip/sparx5/sparx5_fdma.c