[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1424948758-48244-1-git-send-email-jaedon.shin@gmail.com>
Date: Thu, 26 Feb 2015 20:05:58 +0900
From: Jaedon Shin <jaedon.shin@...il.com>
To: Florian Fainelli <f.fainelli@...il.com>
Cc: netdev@...r.kernel.org, Jaedon Shin <jaedon.shin@...il.com>
Subject: [PATCH] net: bcmgenet: fix throughtput regression with TSO autosizing
This patch prevents the performance degradation of xmit after
605ad7f ("tcp: refine TSO autosizing").
Signed-off-by: Jaedon Shin <jaedon.shin@...il.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
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists