]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: sparx5: use FDMA library for adding DCB's in the rx path
authorDaniel Machon <daniel.machon@microchip.com>
Mon, 2 Sep 2024 14:54:10 +0000 (16:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Sep 2024 10:53:50 +0000 (11:53 +0100)
commit17b9521086818b1368a7fb2a9612554d6be8c795
tree776413e5e21e674dee2920cf86a53993d24ce89c
parent8fec1cea941d32b44bdaeded8ddb11dddcbf1412
net: sparx5: use FDMA library for adding DCB's in the rx path

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

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