* [PATCH] net: Increase L2TPv3 buffer to fit jumboframes
@ 2022-12-30 20:27 Christian Svensson
2023-01-02 5:58 ` Christian Svensson
2023-01-09 9:23 ` Jason Wang
0 siblings, 2 replies; 3+ messages in thread
From: Christian Svensson @ 2022-12-30 20:27 UTC (permalink / raw)
Cc: Christian Svensson, Jason Wang, open list:All patches CC here
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>
---
net/l2tpv3.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/l2tpv3.c b/net/l2tpv3.c
index 5852e42738..3d5c6d11d3 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.36.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] net: Increase L2TPv3 buffer to fit jumboframes
2022-12-30 20:27 [PATCH] net: Increase L2TPv3 buffer to fit jumboframes Christian Svensson
@ 2023-01-02 5:58 ` Christian Svensson
2023-01-09 9:23 ` Jason Wang
1 sibling, 0 replies; 3+ messages in thread
From: Christian Svensson @ 2023-01-02 5:58 UTC (permalink / raw)
Cc: Jason Wang, open list:All patches CC here, qemu-trivial
[-- Attachment #1: Type: text/plain, Size: 886 bytes --]
+qemu-trivial
On Fri, Dec 30, 2022, 21:27 Christian Svensson <blue@cmd.nu> wrote:
> 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>
> ---
> net/l2tpv3.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/net/l2tpv3.c b/net/l2tpv3.c
> index 5852e42738..3d5c6d11d3 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.36.2
>
>
[-- Attachment #2: Type: text/html, Size: 1319 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] net: Increase L2TPv3 buffer to fit jumboframes
2022-12-30 20:27 [PATCH] net: Increase L2TPv3 buffer to fit jumboframes Christian Svensson
2023-01-02 5:58 ` Christian Svensson
@ 2023-01-09 9:23 ` Jason Wang
1 sibling, 0 replies; 3+ messages in thread
From: Jason Wang @ 2023-01-09 9:23 UTC (permalink / raw)
To: Christian Svensson; +Cc: open list:All patches CC here
On Sat, Dec 31, 2022 at 4:27 AM Christian Svensson <blue@cmd.nu> wrote:
>
> 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>
Queued.
Thanks
> ---
> net/l2tpv3.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/net/l2tpv3.c b/net/l2tpv3.c
> index 5852e42738..3d5c6d11d3 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.36.2
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-01-09 9:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-30 20:27 [PATCH] net: Increase L2TPv3 buffer to fit jumboframes Christian Svensson
2023-01-02 5:58 ` Christian Svensson
2023-01-09 9:23 ` Jason Wang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).