public inbox for linux-arm-kernel@lists.infradead.org 
 help / color / mirror / Atom feed
From: Bartosz Golaszewski <brgl@bgdev•pl>
To: Giuseppe Cavallaro <peppe.cavallaro@st•com>,
	Alexandre Torgue <alexandre.torgue@st•com>,
	Jose Abreu <joabreu@synopsys•com>,
	"David S . Miller" <davem@davemloft•net>,
	Maxime Coquelin <mcoquelin.stm32@gmail•com>
Cc: Frode Isaksen <fisaksen@baylibre•com>,
	netdev@vger•kernel.org, linux-kernel@vger•kernel.org,
	Bartosz Golaszewski <bgolaszewski@baylibre•com>,
	linux-stm32@st-md-mailman•stormreply.com,
	linux-arm-kernel@lists•infradead.org
Subject: [PATCH] net: stmmac: Use netif_tx_napi_add() for TX polling function
Date: Tue, 30 Jul 2019 13:38:14 +0200	[thread overview]
Message-ID: <20190730113814.13825-1-brgl@bgdev.pl> (raw)

From: Frode Isaksen <fisaksen@baylibre•com>

This variant of netif_napi_add() should be used from drivers
using NAPI to exclusively poll a TX queue.

Signed-off-by: Frode Isaksen <fisaksen@baylibre•com>
Tested-by: Bartosz Golaszewski <bgolaszewski@baylibre•com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre•com>
---
 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
index 98b1a5c6d537..390dad5b9819 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
@@ -4313,8 +4313,9 @@ int stmmac_dvr_probe(struct device *device,
 				       NAPI_POLL_WEIGHT);
 		}
 		if (queue < priv->plat->tx_queues_to_use) {
-			netif_napi_add(ndev, &ch->tx_napi, stmmac_napi_poll_tx,
-				       NAPI_POLL_WEIGHT);
+			netif_tx_napi_add(ndev, &ch->tx_napi,
+					  stmmac_napi_poll_tx,
+					  NAPI_POLL_WEIGHT);
 		}
 	}
 
-- 
2.21.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists•infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

             reply	other threads:[~2019-07-30 11:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-30 11:38 Bartosz Golaszewski [this message]
2019-07-31 23:10 ` [PATCH] net: stmmac: Use netif_tx_napi_add() for TX polling function David Miller

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=20190730113814.13825-1-brgl@bgdev.pl \
    --to=brgl@bgdev$(echo .)pl \
    --cc=alexandre.torgue@st$(echo .)com \
    --cc=bgolaszewski@baylibre$(echo .)com \
    --cc=davem@davemloft$(echo .)net \
    --cc=fisaksen@baylibre$(echo .)com \
    --cc=joabreu@synopsys$(echo .)com \
    --cc=linux-arm-kernel@lists$(echo .)infradead.org \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-stm32@st-md-mailman$(echo .)stormreply.com \
    --cc=mcoquelin.stm32@gmail$(echo .)com \
    --cc=netdev@vger$(echo .)kernel.org \
    --cc=peppe.cavallaro@st$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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