Linux/linux 3bed3ccnet/core skbuff.c

net: Do not allocate page fragments that are not skb aligned

This patch addresses the fact that there are drivers, specifically tun,
that will call into the network page fragment allocators with buffer sizes
that are not cache aligned. Doing this could result in data alignment
and DMA performance issues as these fragment pools are also shared with the
skb allocator and any other devices that will use napi_alloc_frags or
netdev_alloc_frags.

Fixes: ffde7328a36d ("net: Split netdev_alloc_frag into __alloc_page_frag and add __napi_alloc_frag")
Reported-by: Jann Horn <jannh at google.com>
Signed-off-by: Alexander Duyck <alexander.h.duyck at linux.intel.com>
Signed-off-by: David S. Miller <davem at davemloft.net>
DeltaFile
+4-0net/core/skbuff.c
+4-01 files

UnifiedSplitRaw