[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1481285645-6028-1-git-send-email-rayagond.kokatanur@gmail.com>
Date: Fri, 9 Dec 2016 17:44:05 +0530
From: Rayagond Kokatanur <rayagond.kokatanur@...il.com>
To: siva.kallam@...sung.com, bh74.an@...sung.com, ks.giri@...sung.com,
vipul.pandya@...sung.com
Cc: netdev@...r.kernel.org,
Rayagond Kokatanur <rayagond.kokatanur@...il.com>
Subject: [PATCH] net:ethernet:samsung:initialize cur_rx_qnum
This patch initialize the cur_rx_qnum upon occurence of rx interrupt,
without this initialization driver will not work with multiple rx queues configurations.
NOTE: This patch is not tested on actual hw.
---
drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c b/drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c
index ea44a24..580a1a4 100644
--- a/drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c
+++ b/drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c
@@ -1681,6 +1681,7 @@ static irqreturn_t sxgbe_rx_interrupt(int irq, void *dev_id)
struct sxgbe_rx_queue *rxq = (struct sxgbe_rx_queue *)dev_id;
struct sxgbe_priv_data *priv = rxq->priv_ptr;
+ priv->cur_rx_qnum = rxq->queue_no;
/* get the channel status */
status = priv->hw->dma->rx_dma_int_status(priv->ioaddr, rxq->queue_no,
&priv->xstats);
--
1.9.1
Powered by blists - more mailing lists