From dace457bafd839eeabbf18a2a34c1005ccab4cc0 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 24 Oct 2012 11:21:34 -0700 Subject: [intel] Report receive overruns via network device errors Signed-off-by: Michael Brown --- src/drivers/net/intel.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/drivers/net/intel.c') diff --git a/src/drivers/net/intel.c b/src/drivers/net/intel.c index 353fc971..0811ed91 100644 --- a/src/drivers/net/intel.c +++ b/src/drivers/net/intel.c @@ -699,10 +699,14 @@ static void intel_poll ( struct net_device *netdev ) { if ( icr & INTEL_IRQ_TXDW ) intel_poll_tx ( netdev ); - /* Poll for RX completionsm, if applicable */ + /* Poll for RX completions, if applicable */ if ( icr & INTEL_IRQ_RXT0 ) intel_poll_rx ( netdev ); + /* Report receive overruns */ + if ( icr & INTEL_IRQ_RXO ) + netdev_rx_err ( netdev, NULL, -ENOBUFS ); + /* Check link state, if applicable */ if ( icr & INTEL_IRQ_LSC ) intel_check_link ( netdev ); -- cgit v1.2.3-55-g7522