net/ps3_gelic_net: Fix RX sk_buff length
stable inclusion from stable-v5.10.177 commit 3d5a97283e2aa00687399afef2a19e310081e202 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I88YNP Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3d5a97283e2aa00687399afef2a19e310081e202 -------------------------------- [ Upstream commit 19b3bb51 ] The Gelic Ethernet device needs to have the RX sk_buffs aligned to GELIC_NET_RXBUF_ALIGN, and also the length of the RX sk_buffs must be a multiple of GELIC_NET_RXBUF_ALIGN. The current Gelic Ethernet driver was not allocating sk_buffs large enough to allow for this alignment. Also, correct the maximum and minimum MTU sizes, and add a new preprocessor macro for the maximum frame size, GELIC_NET_MAX_FRAME. Fixes various randomly occurring runtime network errors. Fixes: 02c18891 ("ps3: gigabit ethernet driver for PS3, take3") Signed-off-by:Geoff Levand <geoff@infradead.org> Signed-off-by:
David S. Miller <davem@davemloft.net> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com> (cherry picked from commit 70034c60)
Loading
Please sign in to comment