net: mvneta: rely on MVNETA_MAX_RX_BUF_SIZE for pkt split in mvneta_swbm_rx_frame()
authorLorenzo Bianconi <lorenzo@kernel.org>
Tue, 8 Sep 2020 18:23:31 +0000 (20:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Sep 2020 19:40:19 +0000 (12:40 -0700)
commit6eb8b7fbe3915921738b2cac211ff65b75750a04
treec999225fedde7228cd04ef7cf10a65fcde7d8468
parent8c5c49a6a0518d704a084106a1ab3edcc80a1fb7
net: mvneta: rely on MVNETA_MAX_RX_BUF_SIZE for pkt split in mvneta_swbm_rx_frame()

In order to easily change the rx buffer size, rely on
MVNETA_MAX_RX_BUF_SIZE instead of PAGE_SIZE in mvneta_swbm_rx_frame
routine for rx buffer split. Currently this is not an issue since we set
MVNETA_MAX_RX_BUF_SIZE to PAGE_SIZE - MVNETA_SKB_PAD but it is a good to
have to configure a different rx buffer size.

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvneta.c