From: Jason Wang <jasowang@redhat.com>
To: Christian Svensson <blue@cmd.nu>
Cc: "open list:All patches CC here" <qemu-devel@nongnu.org>
Subject: Re: [PATCH] net: Increase L2TPv3 buffer to fit jumboframes
Date: Mon, 9 Jan 2023 17:23:45 +0800 [thread overview]
Message-ID: <CACGkMEseLO_8iVjLZ5VXwJcC+irmHpSu+G0Cn=7zmESCf=NVxA@mail.gmail.com> (raw)
In-Reply-To: <20221230202710.115187-1-blue@cmd.nu>
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
>
prev parent reply other threads:[~2023-01-09 9:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CACGkMEseLO_8iVjLZ5VXwJcC+irmHpSu+G0Cn=7zmESCf=NVxA@mail.gmail.com' \
--to=jasowang@redhat.com \
--cc=blue@cmd.nu \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).