netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: bcmgenet: fix throughtput regression with TSO autosizing
@ 2015-02-26 11:05 Jaedon Shin
  2015-02-26 16:36 ` David Miller
  2015-02-26 17:27 ` Eric Dumazet
  0 siblings, 2 replies; 6+ messages in thread
From: Jaedon Shin @ 2015-02-26 11:05 UTC (permalink / raw)
  To: Florian Fainelli; +Cc: netdev, Jaedon Shin

This patch prevents the performance degradation of xmit after
605ad7f ("tcp: refine TSO autosizing").

Signed-off-by: Jaedon Shin <jaedon.shin@gmail.com>
---
 drivers/net/ethernet/broadcom/genet/bcmgenet.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/ethernet/broadcom/genet/bcmgenet.c b/drivers/net/ethernet/broadcom/genet/bcmgenet.c
index ff83c46b..87eeff0 100644
--- a/drivers/net/ethernet/broadcom/genet/bcmgenet.c
+++ b/drivers/net/ethernet/broadcom/genet/bcmgenet.c
@@ -1310,6 +1310,9 @@ static netdev_tx_t bcmgenet_xmit(struct sk_buff *skb, struct net_device *dev)
 out:
 	spin_unlock_irqrestore(&ring->lock, flags);
 
+	if (index != DESC_INDEX)
+		skb_orphan(skb);
+
 	return ret;
 }
 
-- 
2.3.0

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-02-27 15:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-26 11:05 [PATCH] net: bcmgenet: fix throughtput regression with TSO autosizing Jaedon Shin
2015-02-26 16:36 ` David Miller
2015-02-27 14:33   ` Jaedon Shin
2015-02-27 15:13     ` Eric Dumazet
2015-02-26 17:27 ` Eric Dumazet
2015-02-26 17:29   ` Florian Fainelli

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).