Skip to content

Commit

Permalink
net: ethernet: ave: enable Rx drop interrupt
Browse files Browse the repository at this point in the history
This enables AVE_GI_RXDROP interrupt factor. This factor indicates
depletion of Rx descriptors and the handler counts the number
of dropped packets.

Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Kunihiko Hayashi authored and David S. Miller committed Mar 9, 2018
1 parent 1dd27cd commit d06cbe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/socionext/sni_ave.c
Original file line number Diff line number Diff line change
Expand Up @@ -1295,7 +1295,7 @@ static int ave_open(struct net_device *ndev)
val |= AVE_IIRQC_EN0 | (AVE_INTM_COUNT << 16);
writel(val, priv->base + AVE_IIRQC);

val = AVE_GI_RXIINT | AVE_GI_RXOVF | AVE_GI_TX;
val = AVE_GI_RXIINT | AVE_GI_RXOVF | AVE_GI_TX | AVE_GI_RXDROP;
ave_irq_restore(ndev, val);

napi_enable(&priv->napi_rx);
Expand Down

0 comments on commit d06cbe9

Please sign in to comment.