Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: NTop: Misc

Ethtool rx packet counter with TNAPI driver

 

 

NTop misc RSS feed   Index | Next | Previous | View Threaded


jonathan.lynch at thenowfactory

May 9, 2011, 8:09 AM

Post #1 of 2 (374 views)
Permalink
Ethtool rx packet counter with TNAPI driver

Hi Luca,

Im seeing double the amount of rx/tx packets in the ethtool statistics
versus the NIC counters.
Im using TNAPI driver 3.3.8 and the latest PF_RING (4601) from subversion -
with transparent_mode=2

rx_packets -> 141138 pkts/s
rx_bytes -> 1154.3 Mbit/s
rx_pkts_nic -> 70556 pkts/s
rx_bytes_nic -> 581.5 Mbit/s
rx_queue_0_bytes -> 0.0 Mbit/s
rx_queue_1_bytes -> 4.6 Mbit/s
rx_queue_2_bytes -> 0.0 Mbit/s
rx_queue_3_bytes -> 794.0 Mbit/s
rx_queue_4_bytes -> 71.0 Mbit/s
rx_queue_5_bytes -> 73.8 Mbit/s
rx_queue_6_bytes -> 128.1 Mbit/s
rx_queue_7_bytes -> 6.6 Mbit/s
rx_queue_8_bytes -> 9.6 Mbit/s
rx_queue_9_bytes -> 19.4 Mbit/s
rx_queue_10_bytes -> 46.8 Mbit/s

Any idea why packets are counted twice by the TNAPI driver?

The only line which increments the counters in ixgbe_tnapi.c is commented
out.
// adapter->net_stats.rx_packets+
+, adapter->net_stats.rx_bytes += skb->len; // FIX

Regards
Jonathan


deri at ntop

May 9, 2011, 10:09 AM

Post #2 of 2 (362 views)
Permalink
Re: Ethtool rx packet counter with TNAPI driver [In reply to]

Jonathan
we need to track this issue: please file a bug on https://www.ntop.org/bugzilla3/

Thanks Luca

On May 9, 2011, at 5:09 PM, Lynch, Jonathan wrote:

> Hi Luca,
>
> Im seeing double the amount of rx/tx packets in the ethtool statistics versus the NIC counters.
> Im using TNAPI driver 3.3.8 and the latest PF_RING (4601) from subversion - with transparent_mode=2
>
> rx_packets -> 141138 pkts/s
> rx_bytes -> 1154.3 Mbit/s
> rx_pkts_nic -> 70556 pkts/s
> rx_bytes_nic -> 581.5 Mbit/s
> rx_queue_0_bytes -> 0.0 Mbit/s
> rx_queue_1_bytes -> 4.6 Mbit/s
> rx_queue_2_bytes -> 0.0 Mbit/s
> rx_queue_3_bytes -> 794.0 Mbit/s
> rx_queue_4_bytes -> 71.0 Mbit/s
> rx_queue_5_bytes -> 73.8 Mbit/s
> rx_queue_6_bytes -> 128.1 Mbit/s
> rx_queue_7_bytes -> 6.6 Mbit/s
> rx_queue_8_bytes -> 9.6 Mbit/s
> rx_queue_9_bytes -> 19.4 Mbit/s
> rx_queue_10_bytes -> 46.8 Mbit/s
>
> Any idea why packets are counted twice by the TNAPI driver?
>
> The only line which increments the counters in ixgbe_tnapi.c is commented out.
> // adapter->net_stats.rx_packets+
> +, adapter->net_stats.rx_bytes += skb->len; // FIX
>
> Regards
> Jonathan
> _______________________________________________
> Ntop-misc mailing list
> Ntop-misc [at] listgateway
> http://listgateway.unipi.it/mailman/listinfo/ntop-misc

---
Due to lack of interest, tomorrow is cancelled - Kaiser Chiefs


_______________________________________________
Ntop-misc mailing list
Ntop-misc [at] listgateway
http://listgateway.unipi.it/mailman/listinfo/ntop-misc

NTop misc RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.