netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Amit Uttamchandani <amit.uttam@gmail.com>
To: netdev <netdev@vger.kernel.org>
Subject: Handling receive packets with limited buffer space
Date: Fri, 19 Mar 2010 02:41:18 -0700	[thread overview]
Message-ID: <20100319094118.GA30249@debian> (raw)


In my modified ethoc.c driver, I am using only one receive buffer
descriptor due to limited space. This works fairly well for small
packets (arp, pings, etc.).

However, doing a 'wget' and downloading a file causes lots of drops and
thus results in a terminated connection.

How do I go about dealing with this? I tried stopping the queue
(netif_stop_queue) while I'm processing the rx skb and then resuming it
once I'm done, but this did not seem to help.

Any ideas on this?

Thanks for any help.
Amit

             reply	other threads:[~2010-03-19  9:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-19  9:41 Amit Uttamchandani [this message]
2010-03-20 15:01 ` Handling receive packets with limited buffer space Andi Kleen

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=20100319094118.GA30249@debian \
    --to=amit.uttam@gmail.com \
    --cc=netdev@vger.kernel.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).