From: Senthil Kumar Nagappan <nagappanksenthil@gmail.com>
To: David Miller <davem@davemloft.net>, Alan.Davey@metaswitch.com
Cc: paul@jakma.org, netdev@vger.kernel.org, kuznet@ms2.inr.ac.ru,
jmorris@namei.org, yoshfuji@linux-ipv6.org, kaber@trash.net
Subject: Re: [PATCH] net: Fragment large datagrams even when IP_HDRINCL is set.
Date: Tue, 14 Dec 2021 17:33:37 +0530 [thread overview]
Message-ID: <797d729c-093c-4317-c371-5f64c8a3a2f3@gmail.com> (raw)
In-Reply-To: <20160712.111116.1765805486132601360.davem@davemloft.net>
On 7/12/2016 11:41 PM, David Miller wrote:
> From: Alan Davey <Alan.Davey@metaswitch.com>
> Date: Tue, 12 Jul 2016 12:34:07 +0000
>
>> - all future applications have to continue to implement their own fragmentation code, duplicating that which already exists in the kernel
> They have to do this anyways, don't you see this?
>
> Otherwise they don't support %99 of the kernels out there.
>
> Even if I put this change in now, it would take years for it to
> propagate to even a moderate percentage of Linux machines out there.
>
> And applications doing a "we only support kernels > version x.y.z" is
> a situation I don't want to promote if you think that's a reasonable
> way to handle this.
>
> Dave patch functionality is good to have in the kernel.
> The reason David says it not convincing, since its there for decades and "we only support kernels > version x.y.z", As Paul suggested we could have a socket option to avoid compatibility issues.
>
> Dave patch has minimal changes, but i see some downsides to it and suggestion to do this differently.
> 1. We will not be able to support MSG_MORE if we take this path.
> 2. we will try to allocate one big skb based on the user data size and kmalloc might fail to allocate a big contiguous buffer, which is not better as compared to the path taken using ip_append_data where we will take care allocating skb's based on the mtu.
> 3. other suggestion is, may be we can take the ip_append_data path, some were down the line we can use the user provided header.
next prev parent reply other threads:[~2021-12-14 12:03 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-23 14:23 [PATCH] net: Fragment large datagrams even when IP_HDRINCL is set Alan Davey
2016-05-31 18:39 ` David Miller
2016-06-08 8:41 ` Alan Davey
2016-06-08 9:33 ` YOSHIFUJI Hideaki
2016-06-08 9:39 ` Paul Jakma
2016-06-08 17:25 ` David Miller
2016-06-15 10:41 ` Alan Davey
2016-07-08 12:55 ` Paul Jakma
2016-07-08 22:41 ` David Miller
2016-07-08 23:21 ` Alexey Kuznetsov
2016-07-12 12:34 ` Alan Davey
2016-07-12 18:11 ` David Miller
2021-12-14 12:03 ` Senthil Kumar Nagappan [this message]
2016-06-15 13:03 ` Hannes Frederic Sowa
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=797d729c-093c-4317-c371-5f64c8a3a2f3@gmail.com \
--to=nagappanksenthil@gmail.com \
--cc=Alan.Davey@metaswitch.com \
--cc=davem@davemloft.net \
--cc=jmorris@namei.org \
--cc=kaber@trash.net \
--cc=kuznet@ms2.inr.ac.ru \
--cc=netdev@vger.kernel.org \
--cc=paul@jakma.org \
--cc=yoshfuji@linux-ipv6.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).