mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* NAPI enabled driver (tg3) silent packet loss ?
@ 2008-10-09 17:53 Rune V. Sjøen
  2008-10-09 18:47 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Rune V. Sjøen @ 2008-10-09 17:53 UTC (permalink / raw)
  To: Linux Kernel Mailing List

I am sending frames to a host using, all the frames are accounted for
in the rx_ucast_packets counter of the device.
However the application shows a substantial packet loss. I assume that
the rx_ucast_packets counter is incremented when the frame is received
and then it is put into the ring buffer. I am having a hard time
figuring out where these packets are lost, and my suspicion lies with
the NAPI enabled tg3.

If the ring buffer overflows will the driver overwrite/drop packets
without incrementing any counters ? That would explain why the packets
are counted as received and then lost (by not being passed to the next
layer).

-- 
Rune V. Sjoen
You always pass failure on the way to success

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: NAPI enabled driver (tg3) silent packet loss ?
  2008-10-09 17:53 NAPI enabled driver (tg3) silent packet loss ? Rune V. Sjøen
@ 2008-10-09 18:47 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2008-10-09 18:47 UTC (permalink / raw)
  To: rvsjoen; +Cc: linux-kernel, netdev

From: "Rune V. Sjøen" <rvsjoen@gmail.com>
Date: Thu, 9 Oct 2008 19:53:45 +0200

[ netdev@vger.kernel.org is the place to discuss networking
  things ]

> I am sending frames to a host using, all the frames are accounted for
> in the rx_ucast_packets counter of the device.
> However the application shows a substantial packet loss. I assume that
> the rx_ucast_packets counter is incremented when the frame is received
> and then it is put into the ring buffer. I am having a hard time
> figuring out where these packets are lost, and my suspicion lies with
> the NAPI enabled tg3.
> 
> If the ring buffer overflows will the driver overwrite/drop packets
> without incrementing any counters ? That would explain why the packets
> are counted as received and then lost (by not being passed to the next
> layer).

No, the generic device dropped counter will increment, or the
device specific RX ring full condition will be indicated.

You can also check if the networking stack itself is dropping
the packet, using netstat -s and friends.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-10-09 18:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-09 17:53 NAPI enabled driver (tg3) silent packet loss ? Rune V. Sjøen
2008-10-09 18:47 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome