netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: ethernet: ave: enable Rx drop interrupt
@ 2018-03-09  6:27 Kunihiko Hayashi
  2018-03-09 17:00 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Kunihiko Hayashi @ 2018-03-09  6:27 UTC (permalink / raw)
  To: netdev, David Miller, Andrew Lunn, Florian Fainelli
  Cc: Masahiro Yamada, Kunihiko Hayashi, Masami Hiramatsu,
	linux-arm-kernel, Jassi Brar

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>
---
 drivers/net/ethernet/socionext/sni_ave.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/socionext/sni_ave.c b/drivers/net/ethernet/socionext/sni_ave.c
index b247707..043eb55 100644
--- a/drivers/net/ethernet/socionext/sni_ave.c
+++ b/drivers/net/ethernet/socionext/sni_ave.c
@@ -1349,7 +1349,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);
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] net: ethernet: ave: enable Rx drop interrupt
  2018-03-09  6:27 [PATCH] net: ethernet: ave: enable Rx drop interrupt Kunihiko Hayashi
@ 2018-03-09 17:00 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2018-03-09 17:00 UTC (permalink / raw)
  To: hayashi.kunihiko
  Cc: andrew, f.fainelli, masami.hiramatsu, jaswinder.singh, netdev,
	yamada.masahiro, linux-arm-kernel

From: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Date: Fri,  9 Mar 2018 15:27:20 +0900

> 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>

Applied, thank you.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-03-09 17:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-09  6:27 [PATCH] net: ethernet: ave: enable Rx drop interrupt Kunihiko Hayashi
2018-03-09 17:00 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).