From: Rabeeh Khoury <rabeeh@galileo.co.il>
To: Rabeeh Khoury <rabeeh@galileo.co.il>
Cc: netdev@oss.sgi.com
Subject: Re: Linux IP stack on kernel 2.4.18
Date: Mon, 03 Jun 2002 11:40:11 +0300 [thread overview]
Message-ID: <3CFB2B6B.90502@galileo.co.il> (raw)
In-Reply-To: 3CF9DDD0.3080809@galileo.co.il
I fixed the problems. I'm replying for the record of the mailing list.
Rabeeh Khoury wrote:
> Hi All,
>
> I'm using kernel 2.4.18 and developing an ethernet network interface
> driver.
> I have two problems that if you may consult me how to solve them -
>
> 1.. How can I adjust the throttling parameter of the IP stack not to
> drop any packet ? Meantime the IP stack routes 55k packets/sec and all
> the other it just drops (I can see them by the result of netif_rx).
echo 50000 > /proc/sys/net/core/netdev_max_backlog
This puts the throttling parameter of the IP stack to 50000, instead of
300 which is the defaul in kernel 2.4.18 (the default is set in
net/core/dev.c with the variable 'int netdev_max_backlog = 300;')
>
> 2.. Routing jumbo packets through IP stack - I send 9K packets in size
> and IP stack routes the packets but by sending 1K packets in size ! is
> this possible ? I tripple checked the device driver on receive and
> transmit and it's ok. Do you know what is the problem ?
The HW I'v used that generates jumbo packets has put a wrong
total_length field in the IP header, which made IP stack remove a large
chunck of the packet. The relevant code that removes the chunck is in
net/ipv4/ip_input.c -
/* Our transport medium may have padded the buffer out.
Now we know it
* is IP we can trim to the true length of the frame.
* Note this now means skb->len holds ntohs(iph->tot_len).
*/
if (skb->len > len) {
__pskb_trim(skb, len);
if (skb->ip_summed == CHECKSUM_HW)
skb->ip_summed = CHECKSUM_NONE;
}
>
>
>
> Thank you alot,
> Rabeeh
>
>
>
>
next prev parent reply other threads:[~2002-06-03 8:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-02 8:56 Linux IP stack on kernel 2.4.18 Rabeeh Khoury
2002-06-02 9:39 ` Thomas 'Dent' Mirlacher
2002-06-02 17:11 ` Rabeeh Khoury
2002-06-03 8:40 ` Rabeeh Khoury [this message]
2002-06-03 8:40 ` Rabeeh Khoury
2002-06-03 15:25 ` Robert Olsson
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=3CFB2B6B.90502@galileo.co.il \
--to=rabeeh@galileo.co.il \
--cc=netdev@oss.sgi.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.