OSDN Git Service

amd-xgbe: Do not clear interrupt indicator
authorLendacky, Thomas <Thomas.Lendacky@amd.com>
Wed, 3 Dec 2014 00:16:48 +0000 (18:16 -0600)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Dec 2014 18:15:42 +0000 (13:15 -0500)
The interrupt value within the xgbe_ring_data structure is used as an
indicator of which Rx descriptor should have the INTE bit set to
generate an interrupt when that Rx descriptor is used.  This bit was
mistakenly cleared in the xgbe_unmap_rdata function, effectively
nullifying the ethtool rx-frames support.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/xgbe/xgbe-desc.c

index 6fc5da0..43b7d2e 100644 (file)
@@ -356,7 +356,6 @@ static void xgbe_unmap_skb(struct xgbe_prv_data *pdata,
 
        rdata->tso_header = 0;
        rdata->len = 0;
-       rdata->interrupt = 0;
        rdata->mapped_as_page = 0;
 
        if (rdata->state_saved) {