diff options
author | Daniel Machon <daniel.machon@microchip.com> | 2024-09-02 16:54:15 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-09-04 12:53:50 +0200 |
commit | bb7a60dab43ba79df2c7795172f2c80894f25c50 (patch) | |
tree | 9f8c19c78bf3197fef89ea9b62180fb34b7a66ad /drivers/net/ethernet/microchip/sparx5 | |
parent | net: sparx5: use FDMA library for adding DCB's in the tx path (diff) | |
download | linux-bb7a60dab43ba79df2c7795172f2c80894f25c50.tar.xz linux-bb7a60dab43ba79df2c7795172f2c80894f25c50.zip |
net: sparx5: use library helper for freeing tx buffers
The library has the helper fdma_free_phys() for freeing physical FDMA
memory. Use it in the exit path.
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>
Diffstat (limited to 'drivers/net/ethernet/microchip/sparx5')
-rw-r--r-- | drivers/net/ethernet/microchip/sparx5/sparx5_fdma.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/microchip/sparx5/sparx5_fdma.c b/drivers/net/ethernet/microchip/sparx5/sparx5_fdma.c index 4fc52140752a..38735bac6482 100644 --- a/drivers/net/ethernet/microchip/sparx5/sparx5_fdma.c +++ b/drivers/net/ethernet/microchip/sparx5/sparx5_fdma.c @@ -494,5 +494,6 @@ int sparx5_fdma_stop(struct sparx5 *sparx5) FDMA_PORT_CTRL_XTR_BUF_IS_EMPTY_GET(val) == 0, 500, 10000, 0, sparx5); fdma_free_phys(&sparx5->rx.fdma); + fdma_free_phys(&sparx5->tx.fdma); return 0; } |