netdev
[Top] [All Lists]

Re: Linux 2.4.22 loopback question

To: Cheng Jin <chengjin@xxxxxxxxxxxxxx>
Subject: Re: Linux 2.4.22 loopback question
From: Andi Kleen <ak@xxxxxxx>
Date: Thu, 6 May 2004 08:35:47 +0200
Cc: netdev@xxxxxxxxxxx
In-reply-to: <Pine.LNX.4.44.0405051440500.14630-100000@fast2.cs.caltech.edu>
References: <Pine.LNX.4.44.0405051440500.14630-100000@fast2.cs.caltech.edu>
Sender: netdev-bounce@xxxxxxxxxxx
On Wed, May 05, 2004 at 02:53:41PM -0700, Cheng Jin wrote:
> I have instrumented the code in net/core/dev.c, and it seems that indeed
> the corresponding ack would sometimes be generated by the receiver, 
> received and timestamped by netif_rx before tcp_transmit_skb returns.

Most likely because the network softirq runs in parallel in interrupt
context and picks up all the already queued packets. e.g. this
can be triggered when you receive a packet from ethernet.

-Adni

<Prev in Thread] Current Thread [Next in Thread>