1
0
Files
Andrey Zolotarev b1bd89af78 L2TP: avoid realloc skb headroom on pppol2tp_xmit, NDMS-1070
Improve performance.

Porting optimizations from kernel-3.4.
2021-03-28 23:23:43 +07:00

21 lines
406 B
C

/*
* L2TP-over-IP socket for L2TPv3.
*
* Author: James Chapman <jchapman@katalix.com>
*/
#ifndef _LINUX_L2TP_H_
#define _LINUX_L2TP_H_
#include <linux/in.h>
#include <linux/in6.h>
#include <uapi/linux/l2tp.h>
/* tune skb pad for CPU with L1_CACHE_BYTES >= 128 (e.g. MT7622) */
#if L1_CACHE_BYTES > 64
#define L2TP_SKB_PAD (NET_SKB_PAD >> 1)
#else
#define L2TP_SKB_PAD NET_SKB_PAD_ORIG
#endif
#endif