net: rswitch: Use build_skb() for RX

[ Upstream commit 6a203cb516 ]

If this hardware receives a jumbo frame like 2KiB or more, it will be
split into multiple queues. In the near future, to support this, use
build_skb() instead of netdev_alloc_skb_ip_align().

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stable-dep-of: 0c9547e6cc ("net: renesas: rswitch: fix race window between tx start and complete")
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Yoshihiro Shimoda 2023-12-08 13:10:24 +09:00 • committed by Greg Kroah-Hartman
commit 99ee2eb6e0
2 changed files with 59 additions and 33 deletions