summaryrefslogtreecommitdiff
path: root/drivers/net/bonding
diff options
context:
space:
mode:
authorDaniel Machon <daniel.machon@microchip.com>2024-09-05 10:06:32 +0200
committerPaolo Abeni <pabeni@redhat.com>2024-09-10 11:04:16 +0200
commit01a70754327bd628610587b6b7ae5efe2a5e7d1c (patch)
tree422fcb876f3beb131c8839425e79951c28688425 /drivers/net/bonding
parent8274d40eafa37b570ad7be8b7fe5fe507509c153 (diff)
net: lan966x: use the FDMA library for allocation of rx buffers
Use the two functions: fdma_alloc_phys() and fdma_dcb_init() for rx buffer allocation and use the new buffers throughout. In order to replace the old buffers with the new ones, we have to do the following refactoring: - use fdma_alloc_phys() and fdma_dcb_init() - replace the variables: rx->dma, rx->dcbs and rx->last_entry with the equivalents from the FDMA struct. - make use of fdma->db_size for rx buffer size. - add lan966x_fdma_rx_dataptr_cb callback for obtaining the dataptr. - Initialize FDMA struct values. 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>
Diffstat (limited to 'drivers/net/bonding')
0 files changed, 0 insertions, 0 deletions