]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: Correct RX dropped count for drops while interface is down
authorJon Cooper <jcooper@solarflare.com>
Mon, 30 Sep 2013 16:36:50 +0000 (17:36 +0100)
committerBen Hutchings <bhutchings@solarflare.com>
Thu, 12 Dec 2013 22:06:51 +0000 (22:06 +0000)
commitf195534fbeb19fdeb4b8e2d09a3c7de4d3706531
treee65cedae54bb32528176a2d31890ee86cd6db62d
parentaec8559f64f9f92e8129deb387c9ee75cb980e66
sfc: Correct RX dropped count for drops while interface is down

We don't directly control RX ingress on Siena or any later
controllers, and so we cannot prevent packets from entering the RX
datapath while the RX queues are not set up.  This results in
the hardware incrementing RX_NODESC_DROP_CNT, but it's not an
error and we should not include it in error stats.

When bringing an interface up or down, pull (or wait for) stats and
count the number of packets that were dropped while the interface was
down.  Subtract this from the reported RX dropped count.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/ef10.c
drivers/net/ethernet/sfc/efx.c
drivers/net/ethernet/sfc/falcon.c
drivers/net/ethernet/sfc/mcdi.h
drivers/net/ethernet/sfc/mcdi_port.c
drivers/net/ethernet/sfc/net_driver.h
drivers/net/ethernet/sfc/nic.c
drivers/net/ethernet/sfc/nic.h
drivers/net/ethernet/sfc/siena.c