OpenCloudOS-Kernel/drivers/net/ethernet/mediatek
Chen Lin 2f2c0d2919 net: ethernet: mtk_eth_soc: fix misuse of mem alloc interface netdev[napi]_alloc_frag
When rx_flag == MTK_RX_FLAGS_HWLRO,
rx_data_len = MTK_MAX_LRO_RX_LENGTH(4096 * 3) > PAGE_SIZE.
netdev_alloc_frag is for alloction of page fragment only.
Reference to other drivers and Documentation/vm/page_frags.rst

Branch to use __get_free_pages when ring->frag_size > PAGE_SIZE.

Signed-off-by: Chen Lin <chen45464546@163.com>
Link: https://lore.kernel.org/r/1654692413-2598-1-git-send-email-chen45464546@163.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-06-08 20:37:27 -07:00
..
Kconfig net: ethernet: mtk_eth_soc: add support for Wireless Ethernet Dispatch (WED) 2022-04-06 14:08:49 +01:00
Makefile eth: mtk_eth_soc: silence the GCC 12 array-bounds warning 2022-05-22 22:21:11 +01:00
mtk_eth_path.c net: mtk_eth: simplify the mediatek code return expression 2020-12-14 17:51:26 -08:00
mtk_eth_soc.c net: ethernet: mtk_eth_soc: fix misuse of mem alloc interface netdev[napi]_alloc_frag 2022-06-08 20:37:27 -07:00
mtk_eth_soc.h net: ethernet: mtk_eth_soc: introduce support for mt7986 chipset 2022-05-22 22:24:33 +01:00
mtk_ppe.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-05-12 16:15:30 -07:00
mtk_ppe.h net: ethernet: mtk_eth_soc: support creating mac address based offload entries 2022-04-06 14:08:51 +01:00
mtk_ppe_debugfs.c net: ethernet: mtk_eth_soc: remove bridge flow offload type entry support 2022-04-06 14:08:50 +01:00
mtk_ppe_offload.c net: ethernet: mtk_eth_soc: fix error code in mtk_flow_offload_replace() 2022-05-23 11:42:34 +01:00
mtk_ppe_regs.h net: ethernet: mtk_eth_soc: add support for initializing the PPE 2021-03-24 12:48:39 -07:00
mtk_sgmii.c net: mtk_eth_soc: partially convert to phylink_pcs 2022-05-19 18:14:30 -07:00
mtk_star_emac.c eth: remove copies of the NAPI_POLL_WEIGHT define 2022-04-29 11:56:41 +01:00
mtk_wed.c net: ethernet: mtk_eth_soc: add check for allocation failure 2022-04-25 11:26:30 +01:00
mtk_wed.h net: ethernet: mtk_eth_soc: implement flow offloading to WED devices 2022-04-06 14:08:49 +01:00
mtk_wed_debugfs.c net: ethernet: mtk_eth_soc: add support for Wireless Ethernet Dispatch (WED) 2022-04-06 14:08:49 +01:00
mtk_wed_ops.c net: ethernet: mtk_eth_soc: add support for Wireless Ethernet Dispatch (WED) 2022-04-06 14:08:49 +01:00
mtk_wed_regs.h net: ethernet: mtk_eth_soc: add support for Wireless Ethernet Dispatch (WED) 2022-04-06 14:08:49 +01:00