Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b2095ae5 authored by Sneh Shah's avatar Sneh Shah
Browse files

net: stmmac: Add skb_orphan to improve embedded TCP throughput



Add skb_orphan for ipv4/ipv6 skb to improve throughput with TSO.

Change-Id: If1ea924a890f00ba448ab0dc256b4ac37c53cad9
Signed-off-by: default avatarSneh Shah <snehshah@codeaurora.org>
parent 9f1d30da
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -3155,6 +3155,12 @@ static netdev_tx_t stmmac_xmit(struct sk_buff *skb, struct net_device *dev)
	struct stmmac_tx_queue *tx_q;
	unsigned int enh_desc;
	unsigned int des, int_mod;
	unsigned int eth_type;

	GET_ETH_TYPE(skb->data, eth_type);

	if (eth_type == ETH_P_IP || eth_type == ETH_P_IPV6)
		skb_orphan(skb);

	tx_q = &priv->tx_queue[queue];