* flushing arp buffer -- why __skb_dequeue rather than __skb_dequeue_tail ?
@ 2002-08-08 22:16 Chris Friesen
2002-08-09 13:34 ` flushing arp buffer -- why __skb_dequeue rather than __skb_dequeue_tail kuznet
0 siblings, 1 reply; 2+ messages in thread
From: Chris Friesen @ 2002-08-08 22:16 UTC (permalink / raw)
To: linux-kernel
As part of one of our test cases we ran into a scenario where we were sending
out messages while waiting on an arp reply. As expected they were buffered, but
we noticed that after the reply was received the packets were sent out in LIFO
order.
In neigh_update() in neighbor.c, we're looping through the list calling
__skb_dequeue(). Is there any particular reason why this was chosen rather than
__skb_dequeue_tail()? The latter would result in FIFO flushing of the buffer
which could have some benefits to udp applications that retry on out-of-order
message receipt, and it doesn't seem to be many more instructions, if any.
Besides, this isn't the fast path so a few extra instructions shouldn't matter.
Would you anticipate any odd side effects if we did change to FIFO flushing?
Chris
--
Chris Friesen | MailStop: 043/33/F10
Nortel Networks | work: (613) 765-0557
3500 Carling Avenue | fax: (613) 765-2986
Nepean, ON K2H 8E9 Canada | email: cfriesen@nortelnetworks.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-08-09 13:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-08 22:16 flushing arp buffer -- why __skb_dequeue rather than __skb_dequeue_tail ? Chris Friesen
2002-08-09 13:34 ` flushing arp buffer -- why __skb_dequeue rather than __skb_dequeue_tail kuznet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox