net: Increase L2TPv3 buffer to fit jumboframes
authorChristian Svensson <blue@cmd.nu>
Fri, 30 Dec 2022 20:27:10 +0000 (21:27 +0100)
committerJason Wang <jasowang@redhat.com>
Fri, 17 Feb 2023 05:31:33 +0000 (13:31 +0800)
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 <blue@cmd.nu>
Signed-off-by: Jason Wang <jasowang@redhat.com>
net/l2tpv3.c

index 53b2d32573b4640b640e0b3ffe979e892e9ac3e7..b5547cb917af98484f332db80462f9e2f9f411b4 100644 (file)
@@ -42,7 +42,7 @@
  */
 
 #define BUFFER_ALIGN sysconf(_SC_PAGESIZE)
-#define BUFFER_SIZE 2048
+#define BUFFER_SIZE 16384
 #define IOVSIZE 2
 #define MAX_L2TPV3_MSGCNT 64
 #define MAX_L2TPV3_IOVCNT (MAX_L2TPV3_MSGCNT * IOVSIZE)