linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Huang Zijiang <huang.zijiang@zte.com.cn>
To: linux-net-drivers@solarflare.com
Cc: ecree@solarflare.com, bkenward@solarflare.com,
	davem@davemloft.net, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org, wang.yi59@zte.com.cn,
	Huang Zijiang <huang.zijiang@zte.com.cn>
Subject: [PATCH 2/2] net: Replace dev_kfree_skb_any by dev_consume_skb_any
Date: Thu, 14 Feb 2019 14:42:13 +0800	[thread overview]
Message-ID: <1550126533-28462-1-git-send-email-huang.zijiang@zte.com.cn> (raw)

The skb should be freed by dev_consume_skb_any() efx_tx_tso_fallback()
when skb is still used. The skb is be replaced by segments, so the
original skb should be consumed(not drop).

Signed-off-by: Huang Zijiang <huang.zijiang@zte.com.cn>
---
 drivers/net/ethernet/sfc/tx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/sfc/tx.c b/drivers/net/ethernet/sfc/tx.c
index c3ad564..ed551f0 100644
--- a/drivers/net/ethernet/sfc/tx.c
+++ b/drivers/net/ethernet/sfc/tx.c
@@ -471,7 +471,7 @@ static int efx_tx_tso_fallback(struct efx_tx_queue *tx_queue,
 	if (IS_ERR(segments))
 		return PTR_ERR(segments);
 
-	dev_kfree_skb_any(skb);
+	dev_consume_skb_any(skb);
 	skb = segments;
 
 	while (skb) {
-- 
1.8.3.1


             reply	other threads:[~2019-02-14  6:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-14  6:42 Huang Zijiang [this message]
2019-02-14  9:13 ` [PATCH 2/2] net: Replace dev_kfree_skb_any by dev_consume_skb_any Sergei Shtylyov
2019-02-14  9:34 ` Bert Kenward
2019-02-14 17:28 ` 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=1550126533-28462-1-git-send-email-huang.zijiang@zte.com.cn \
    --to=huang.zijiang@zte.com.cn \
    --cc=bkenward@solarflare.com \
    --cc=davem@davemloft.net \
    --cc=ecree@solarflare.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-net-drivers@solarflare.com \
    --cc=netdev@vger.kernel.org \
    --cc=wang.yi59@zte.com.cn \
    /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;
as well as URLs for NNTP newsgroup(s).