public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ashvin Goel <ashvin@acm.org>
To: linux-kernel@vger.kernel.org
Subject: Question regarding do_tcp_sendpages, tcp_current_mss and eff_sacks
Date: Sat, 17 Apr 2004 16:03:38 -0400	[thread overview]
Message-ID: <40818D9A.9030002@acm.org> (raw)

I am trying to use do_tcp_sendpages() to stream some data from within 
the Linux Redhat kernel 2.4.20 (it is an smp kernel running on a 
uniprocessor). After a while this function returns an error value of 
-512. This error value makes no sense to me. A little debugging showed 
that tcp_current_mss() returns negative values. In particular, for the 
socket to which do_tcp_sendpages() is sending data, tp->eff_sacks has 
the value 200. This makes the value returned by tcp_current_mss be -156 
(1448 - 4 - 200 * 8). Is this value reasonable? I think this value is 
causing do_tcp_sendpages() to return a large negative value.

Thanks for any help/suggestions. Please CC your post to me personally.

Thanks
Ashvin Goel

                 reply	other threads:[~2004-04-17 20:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=40818D9A.9030002@acm.org \
    --to=ashvin@acm.org \
    --cc=linux-kernel@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