From: Hannes Frederic Sowa <hannes@stressinduktion.org>
To: Tom Herbert <tom@herbertland.com>
Cc: Linux Kernel Network Developers <netdev@vger.kernel.org>,
Eric Dumazet <edumazet@google.com>,
Vladislav Yasevich <vyasevich@gmail.com>,
Benjamin Coddington <bcodding@redhat.com>
Subject: Re: [PATCH net v2 3/4] ipv6: no CHECKSUM_PARTIAL on MSG_MORE corked sockets
Date: Tue, 27 Oct 2015 19:29:11 +0100 [thread overview]
Message-ID: <1445970551.497935.421785961.521DBDF0@webmail.messagingengine.com> (raw)
In-Reply-To: <CALx6S34m5jEDMUtVZpsU05Z8ydXAYFoVBAsbAQF=sUc5h0TLiQ@mail.gmail.com>
On Tue, Oct 27, 2015, at 18:32, Tom Herbert wrote:
> On Tue, Oct 27, 2015 at 9:44 AM, Hannes Frederic Sowa
> <hannes@stressinduktion.org> wrote:
> >
> >
> > On Tue, Oct 27, 2015, at 17:36, Tom Herbert wrote:> > - if
> > (cork->length + length > maxnonfragsize - headersize) {
> >> > + if (cork->length + length > maxnonfragsize - headersize) {
> >> > emsgsize:
> >> > - ipv6_local_error(sk, EMSGSIZE, fl6,
> >> > - mtu - headersize +
> >> > - sizeof(struct ipv6hdr));
> >> > - return -EMSGSIZE;
> >> > - }
> >> > + ipv6_local_error(sk, EMSGSIZE, fl6,
> >> > + mtu - headersize +
> >> > + sizeof(struct ipv6hdr));
> >> > + return -EMSGSIZE;
> >> > }
> >> >
> >> > + /* CHECKSUM_PARTIAL only with no extension headers and when
> >>
> >> No, please don't do this. CHECKSUM_PARTIAL should work with extension
> >> headers as defined, so this is just disabling otherwise valid and
> >> useful functionality. If (some) drivers have problems with this they
> >> need to be identified and fixed.
> >
> > I don't understand. The old code already didn't allow the use of
> > opt_flen with CHECKSUM_PARTIAL.
> >
> Then that's a problem with the old code :-). Is there any other reason
> that we can't use CHECKSUM_PARTIAL with extension headers other than
> lack of correct driver support?
The lack of correct driver support is a big bumper, but as I wrote, I
don't see a reason to not lift this restriction in net-next. I proposed
a new feature flag, or by looking at your series, we could probably use
the extension header okay field for that.
I would be conservative in net though.
Bye,
Hannes
next prev parent reply other threads:[~2015-10-27 18:29 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-27 15:02 [PATCH net v2 0/4] net: clean up interactions of CHECKSUM_PARTIAL and fragmentation Hannes Frederic Sowa
2015-10-27 15:02 ` [PATCH net v2 1/4] ipv4: no CHECKSUM_PARTIAL on MSG_MORE corked sockets Hannes Frederic Sowa
2015-10-27 16:04 ` Tom Herbert
2015-10-27 16:34 ` Hannes Frederic Sowa
2015-10-27 16:41 ` Tom Herbert
2015-10-27 15:02 ` [PATCH net v2 2/4] ipv4: add defensive check for CHECKSUM_PARTIAL skbs in ip_fragment Hannes Frederic Sowa
2015-10-27 16:06 ` Tom Herbert
2015-10-27 18:30 ` Hannes Frederic Sowa
2015-10-27 18:46 ` Tom Herbert
2015-10-27 19:01 ` Sergei Shtylyov
2015-10-27 19:15 ` Hannes Frederic Sowa
2015-10-27 15:02 ` [PATCH net v2 3/4] ipv6: no CHECKSUM_PARTIAL on MSG_MORE corked sockets Hannes Frederic Sowa
2015-10-27 16:36 ` Tom Herbert
2015-10-27 16:44 ` Hannes Frederic Sowa
2015-10-27 17:32 ` Tom Herbert
2015-10-27 18:29 ` Hannes Frederic Sowa [this message]
2015-10-27 18:37 ` Tom Herbert
2015-10-27 19:19 ` Hannes Frederic Sowa
2015-10-27 21:42 ` Hannes Frederic Sowa
2015-10-27 22:03 ` Tom Herbert
2015-10-28 0:12 ` Hannes Frederic Sowa
2015-10-28 0:31 ` Tom Herbert
2015-10-27 15:02 ` [PATCH net v2 4/4] ipv6: add defensive check for CHECKSUM_PARTIAL skbs in ip_fragment 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=1445970551.497935.421785961.521DBDF0@webmail.messagingengine.com \
--to=hannes@stressinduktion.org \
--cc=bcodding@redhat.com \
--cc=edumazet@google.com \
--cc=netdev@vger.kernel.org \
--cc=tom@herbertland.com \
--cc=vyasevich@gmail.com \
/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).