Netdev List
 help / color / mirror / Atom feed
From: Rayagond Kokatanur <rayagond.kokatanur@gmail.com>
To: siva.kallam@samsung.com, bh74.an@samsung.com,
	ks.giri@samsung.com, vipul.pandya@samsung.com
Cc: netdev@vger.kernel.org,
	Rayagond Kokatanur <rayagond.kokatanur@gmail.com>
Subject: [PATCH] net:ethernet:samsung:initialize cur_rx_qnum
Date: Fri,  9 Dec 2016 17:44:05 +0530	[thread overview]
Message-ID: <1481285645-6028-1-git-send-email-rayagond.kokatanur@gmail.com> (raw)

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

             reply	other threads:[~2016-12-09 12:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-09 12:14 Rayagond Kokatanur [this message]
2016-12-09 22:42 ` [PATCH] net:ethernet:samsung:initialize cur_rx_qnum Francois Romieu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1481285645-6028-1-git-send-email-rayagond.kokatanur@gmail.com \
    --to=rayagond.kokatanur@gmail.com \
    --cc=bh74.an@samsung.com \
    --cc=ks.giri@samsung.com \
    --cc=netdev@vger.kernel.org \
    --cc=siva.kallam@samsung.com \
    --cc=vipul.pandya@samsung.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox