mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "David S. Miller" <davem@redhat.com>
To: mike_phillips@urscorp.com
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>, linux-kernel@vger.kernel.org
Subject: Re: skb->truesize > sk->rcvbuf == Dropped packets
Date: Thu, 3 May 2001 16:49:59 -0700 (PDT)	[thread overview]
Message-ID: <15089.61095.23597.82875@pizda.ninka.net> (raw)
In-Reply-To: <OFB60DB560.B716D10F-ON84256A41.007A7A73@urscorp.com>
In-Reply-To: <OFB60DB560.B716D10F-ON84256A41.007A7A73@urscorp.com>


mike_phillips@urscorp.com writes:
 > Any suggestions on heuristics for this ? 
 > Say maybe copy if skb->len <= eth_max_mtu, skb->len <= skb->truesize * .5, 
 > or just copy the packets no matter what size. 

Pick a percentage of "acceptable waste" (ie. ratio of truesize to
len).

We know that cutoff values ~200 work for ethernet, for example.

On the topic of these checks that drop the packets, just so there
there is no misunderstanding.  We can't remove them else users
could consume memory in a basically uncontrolled manner.

Later,
David S. Miller
davem@redhat.com

  reply	other threads:[~2001-05-03 23:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-03 23:24 mike_phillips
2001-05-03 23:49 ` David S. Miller [this message]
2001-05-13 18:34   ` kuznet
2001-05-14  3:29   ` David S. Miller
2001-05-14 16:16     ` kuznet
  -- strict thread matches above, loose matches on Subject: below --
2001-05-14 15:08 mike_phillips
2001-05-03 22:29 mike_phillips
2001-05-03 22:51 ` Alan Cox

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=15089.61095.23597.82875@pizda.ninka.net \
    --to=davem@redhat.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mike_phillips@urscorp.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

all inboxes | Powered by JetHome®