diff options
| author | Chen Lin <[email protected]> | 2022-06-08 12:46:53 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2022-06-09 03:37:27 +0000 |
| commit | 2f2c0d2919a14002760f89f4e02960c735a316d2 (patch) | |
| tree | c0a4998716427a9dd92107daf1da24afa4b9ffcd /net/switchdev/switchdev.c | |
| parent | ip_gre: test csum_start instead of transport header (diff) | |
| download | kernel-2f2c0d2919a14002760f89f4e02960c735a316d2.tar.gz kernel-2f2c0d2919a14002760f89f4e02960c735a316d2.zip | |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
