d15c3c44c1cd3547293e043e09052efe8dbfc582
[openwrt/openwrt.git] / target / linux / generic / pending-4.9 / 655-increase_skb_pad.patch
1 From: Felix Fietkau <nbd@nbd.name>
2 Subject: kernel: add a few patches for avoiding unnecessary skb reallocations - significantly improves ethernet<->wireless performance
3
4 lede-commit: 6f89cffc9add6939d44a6b54cf9a5e77849aa7fd
5 Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 ---
7 include/linux/skbuff.h | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
9
10 diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
11 index 32810f279f8e..5f3343ae25ef 100644
12 --- a/include/linux/skbuff.h
13 +++ b/include/linux/skbuff.h
14 @@ -2298,7 +2298,7 @@ static inline int pskb_network_may_pull(struct sk_buff *skb, unsigned int len)
15 * NET_IP_ALIGN(2) + ethernet_header(14) + IP_header(20/40) + ports(8)
16 */
17 #ifndef NET_SKB_PAD
18 -#define NET_SKB_PAD max(32, L1_CACHE_BYTES)
19 +#define NET_SKB_PAD max(64, L1_CACHE_BYTES)
20 #endif
21
22 int ___pskb_trim(struct sk_buff *skb, unsigned int len);
23 --
24 2.11.0
25