* [PATCH] net: netcp: fix improper initialization in netcp_ndo_open()
@ 2015-07-16 19:32 Murali Karicheri
2015-07-21 3:38 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Murali Karicheri @ 2015-07-16 19:32 UTC (permalink / raw)
To: davem, linux-kernel, netdev, w-kwok2
The keystone qmss will raise interrupt when packet arrive at the
receive queue. Only control available to avoid interrupt from happening
is to keep the free descriptor queue (FDQ) empty in the receive side.
So the filling of descriptors into the FDQ has to happen after
request_irq() call is made as part of knav_queue_enable_notify(). So
move the function netcp_rxpool_refill() after this call.
Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
---
drivers/net/ethernet/ti/netcp_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/ti/netcp_core.c b/drivers/net/ethernet/ti/netcp_core.c
index 5ec4ed3..ec8ed30 100644
--- a/drivers/net/ethernet/ti/netcp_core.c
+++ b/drivers/net/ethernet/ti/netcp_core.c
@@ -1617,11 +1617,11 @@ static int netcp_ndo_open(struct net_device *ndev)
}
mutex_unlock(&netcp_modules_lock);
- netcp_rxpool_refill(netcp);
napi_enable(&netcp->rx_napi);
napi_enable(&netcp->tx_napi);
knav_queue_enable_notify(netcp->tx_compl_q);
knav_queue_enable_notify(netcp->rx_queue);
+ netcp_rxpool_refill(netcp);
netif_tx_wake_all_queues(ndev);
dev_dbg(netcp->ndev_dev, "netcp device %s opened\n", ndev->name);
return 0;
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] net: netcp: fix improper initialization in netcp_ndo_open()
2015-07-16 19:32 [PATCH] net: netcp: fix improper initialization in netcp_ndo_open() Murali Karicheri
@ 2015-07-21 3:38 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2015-07-21 3:38 UTC (permalink / raw)
To: m-karicheri2; +Cc: linux-kernel, netdev, w-kwok2
From: Murali Karicheri <m-karicheri2@ti.com>
Date: Thu, 16 Jul 2015 15:32:14 -0400
> The keystone qmss will raise interrupt when packet arrive at the
> receive queue. Only control available to avoid interrupt from happening
> is to keep the free descriptor queue (FDQ) empty in the receive side.
> So the filling of descriptors into the FDQ has to happen after
> request_irq() call is made as part of knav_queue_enable_notify(). So
> move the function netcp_rxpool_refill() after this call.
>
> Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-07-21 3:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-16 19:32 [PATCH] net: netcp: fix improper initialization in netcp_ndo_open() Murali Karicheri
2015-07-21 3:38 ` 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).