[patch] ixgbe stats cleanup

Andrew Boyer aboyer at averesystems.com
Mon Aug 6 21:01:00 UTC 2012


This patch fixes some nits in the ixgbe driver statistics:
 - Only read FCCRC and FCLAST on 82599+
 - Store total_missed_rx in stats.mpctotal, and display it in a sysctl
 - Don't increment if_opackets and if_ipackets every packet; they're overwritten by hw stats collection
 - Increment adapter->dropped_pkts instead of if_ierrors; if_ierrors is overwritten by hw stats collection
 - Include adapter->dropped_pkts in the calculation of if_ierrors
 - Increment rxr->packets so that AIM works

Comments welcome.

-Andrew

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ixgbe_stats.diff
Type: application/octet-stream
Size: 3699 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20120806/97463444/ixgbe_stats.obj
-------------- next part --------------


--------------------------------------------------
Andrew Boyer	aboyer at averesystems.com






More information about the freebsd-net mailing list