Module Name: src Committed By: knakahara Date: Fri Oct 28 05:29:11 UTC 2016
Modified Files: src/sys/dev/pci: if_wm.c Log Message: Fix wm(4) input drop packet counter. WMREG_RNBC is incremented when there is no available buffers in host memory. However, ethernet controller can receive packets in such case if there is space in phy's FIFO. That is, ethernet controller drops packet only if there is no available buffers *and* there is no space in phy's FIFO. So, the number of dropped packets should be added WMREG_MPC only. ok by msaitoh@n.o To generate a diff of this commit: cvs rdiff -u -r1.430 -r1.431 src/sys/dev/pci/if_wm.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.