[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL V2 06/10] net: Increase L2TPv3 buffer to fit jumboframes
From: |
Jason Wang |
Subject: |
[PULL V2 06/10] net: Increase L2TPv3 buffer to fit jumboframes |
Date: |
Thu, 16 Feb 2023 13:24:20 +0800 |
From: Christian Svensson <blue@cmd.nu>
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/l2tpv3.c b/net/l2tpv3.c
index 53b2d32..b5547cb 100644
--- a/net/l2tpv3.c
+++ b/net/l2tpv3.c
@@ -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)
--
2.7.4
- [PULL V2 00/10] Net patches, Jason Wang, 2023/02/16
- [PULL V2 02/10] net: Restore printing of the help text with "-nic help", Jason Wang, 2023/02/16
- [PULL V2 01/10] net: Move the code to collect available NIC models to a separate function, Jason Wang, 2023/02/16
- [PULL V2 05/10] hw/net/vmxnet3: allow VMXNET3_MAX_MTU itself as a value, Jason Wang, 2023/02/16
- [PULL V2 03/10] net: Replace "Supported NIC models" with "Available NIC models", Jason Wang, 2023/02/16
- [PULL V2 06/10] net: Increase L2TPv3 buffer to fit jumboframes,
Jason Wang <=
- [PULL V2 04/10] hw/net/lan9118: log [read|write]b when mode_16bit is enabled rather than abort, Jason Wang, 2023/02/16
- [PULL V2 07/10] vmnet: stop recieving events when VM is stopped, Jason Wang, 2023/02/16
- [PULL V2 08/10] hw/net/can/xlnx-zynqmp-can: fix assertion failures in transfer_fifo(), Jason Wang, 2023/02/16
- [PULL V2 10/10] vdpa: fix VHOST_BACKEND_F_IOTLB_ASID flag check, Jason Wang, 2023/02/16
- [PULL V2 09/10] net: stream: add a new option to automatically reconnect, Jason Wang, 2023/02/16
- Re: [PULL V2 00/10] Net patches, Philippe Mathieu-Daudé, 2023/02/16