netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "David S. Miller" <davem@redhat.com>
To: acme@conectiva.com.br
Cc: yoshfuji@linux-ipv6.org, netdev@oss.sgi.com
Subject: Re: is sk->reuse truly a boolean?
Date: Thu, 22 May 2003 00:10:27 -0700 (PDT)	[thread overview]
Message-ID: <20030522.001027.55734466.davem@redhat.com> (raw)
In-Reply-To: <20030520162906.GF801@conectiva.com.br>

   From: Arnaldo Carvalho de Melo <acme@conectiva.com.br>
   Date: Tue, 20 May 2003 13:29:07 -0300

   Another one I found in this audit:
   
   sk->no_check, as per setsockopt is a boolean, but sunrpc code wants tree
   values, does that need receiving this three values from userspace? if so we
   have a bug in setsockopt, but without looking at sunrpc code I guess this is
   only internal...

This UDP_CSUM_NORCV value made sense when we did UDP checksumming
at packet receive time, but now that we delay checksumming until
user recvmsg() call runs it is quite useless.

net/sunrpc/xprt.c:udp_data_ready() wants to see packets which have
not been checksummed yet, so it may do this and copy at the same
time.  This is the only behavior made by UDP, it never checks
sk->no_check value.

So UDP_CSUM_NORCV and the sk->no_check setting in net/sunrpc/xprt.c
can be both deleted.  It is true for 2.4.x too, and you probably want
to run this patch by the NFS guys first so they do not have a heart
attack when they notice this hit the tree :-)

      parent reply	other threads:[~2003-05-22  7:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-20 15:57 is sk->reuse truly a boolean? Arnaldo Carvalho de Melo
2003-05-20 16:15 ` YOSHIFUJI Hideaki / 吉藤英明
2003-05-20 16:29   ` Arnaldo Carvalho de Melo
2003-05-20 16:53     ` YOSHIFUJI Hideaki / 吉藤英明
2003-05-20 16:58       ` Arnaldo Carvalho de Melo
2003-05-20 17:02         ` YOSHIFUJI Hideaki / 吉藤英明
2003-05-20 17:08           ` Arnaldo Carvalho de Melo
2003-05-22  7:01           ` David S. Miller
2003-05-22  7:10     ` David S. Miller [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=20030522.001027.55734466.davem@redhat.com \
    --to=davem@redhat.com \
    --cc=acme@conectiva.com.br \
    --cc=netdev@oss.sgi.com \
    --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).