Skip to content

Commit 0c65ef4

Browse files
bluecmdjasowang
authored andcommitted
net: Increase L2TPv3 buffer to fit jumboframes
Increase the allocated buffer size to fit larger packets. Given that jumboframes can commonly be up to 9000 bytes the closest suitable value seems to be 16 KiB. Tested by running qemu towards a Linux L2TPv3 endpoint and pushing jumboframe traffic through the interfaces. Signed-off-by: Christian Svensson <[email protected]> Signed-off-by: Jason Wang <[email protected]>
1 parent 099a638 commit 0c65ef4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/l2tpv3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
*/
4343

4444
#define BUFFER_ALIGN sysconf(_SC_PAGESIZE)
45-
#define BUFFER_SIZE 2048
45+
#define BUFFER_SIZE 16384
4646
#define IOVSIZE 2
4747
#define MAX_L2TPV3_MSGCNT 64
4848
#define MAX_L2TPV3_IOVCNT (MAX_L2TPV3_MSGCNT * IOVSIZE)

0 commit comments

Comments
 (0)