aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/cpu.c
diff options
context:
space:
mode:
authorChintan Vankar <[email protected]>2025-07-07 08:52:01 +0000
committerJakub Kicinski <[email protected]>2025-07-10 02:21:06 +0000
commit02c4d6c26f1f662da8885b299c224ca6628ad232 (patch)
treecf259bcf3dcc47e2f8faeb769e2c6176e0aa1ce9 /rust/helpers/cpu.c
parentnet: thunderx: avoid direct MTU assignment after WRITE_ONCE() (diff)
downloadkernel-02c4d6c26f1f662da8885b299c224ca6628ad232.tar.gz
kernel-02c4d6c26f1f662da8885b299c224ca6628ad232.zip
net: ethernet: ti: am65-cpsw-nuss: Fix skb size by accounting for skb_shared_info
While transitioning from netdev_alloc_ip_align() to build_skb(), memory for the "skb_shared_info" member of an "skb" was not allocated. Fix this by allocating "PAGE_SIZE" as the skb length, accounting for the packet length, headroom and tailroom, thereby including the required memory space for skb_shared_info. Fixes: 8acacc40f733 ("net: ethernet: ti: am65-cpsw: Add minimal XDP support") Reviewed-by: Siddharth Vadapalli <[email protected]> Signed-off-by: Chintan Vankar <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'rust/helpers/cpu.c')
0 files changed, 0 insertions, 0 deletions