]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: mtk_eth_soc: rely on rxd_size field in mtk_rx_alloc/mtk_rx_clean
authorLorenzo Bianconi <lorenzo@kernel.org>
Fri, 20 May 2022 18:11:34 +0000 (20:11 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 May 2022 21:24:33 +0000 (22:24 +0100)
commitd96d9594d0b6bec31c79fcabc0b36ea82df71cff
treec82826a7b2cdaacb11c1da5d99dd3024c08a8341
parent79c6b75abec45ff5837e15624b8bec56d63b56da
net: ethernet: mtk_eth_soc: rely on rxd_size field in mtk_rx_alloc/mtk_rx_clean

Remove mtk_rx_dma structure layout dependency in mtk_rx_alloc/mtk_rx_clean.
Initialize to 0 rxd3 and rxd4 in mtk_rx_alloc.
This is a preliminary patch to add mt7986 ethernet support.

Tested-by: Sam Shih <sam.shih@mediatek.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_eth_soc.c