Skip to contentSkip to conversation

question: emulate_large_send_offload

DISCUSSION David Miller 1 participant 2 messages Oct 30, 2008 – Oct 31, 2008 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

David Miller

author maintainer
#1 lore raw

From: Saikiran Madugula <[email protected]>
Date: Thu, 30 Oct 2008 17:54:41 +0000

netdev is the proper mailing list for code and technical networking discussions, linux-net is for simpler user questions such as "how do I configure a bridge with 3 interfaces under Linux"

netdev added to CC:

Quoted 10 lines

Any particular reason emulate_large_send_offload call is still present in the loopback_xmit (drivers/net/loopback.c)? It looks like the function has been removed recently (git commit 7447ef63cf2dfdc444f4c72ae13f604350b2e25f).

Saikiran.
Please CC me as I am not on the list.
--
To unsubscribe from this list: send the line "unsubscribe linux-net" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

author maintainer
#2 lore raw

From: David Miller <[email protected]>
Date: Thu, 30 Oct 2008 14:37:47 -0700 (PDT)

Quoted 5 lines

netdev added to CC:

Quoted 3 lines

Any particular reason emulate_large_send_offload call is still present in the loopback_xmit (drivers/net/loopback.c)? It looks like the function has been removed recently (git commit 7447ef63cf2dfdc444f4c72ae13f604350b2e25f).

Thanks for pointing this out, I've commited the following to correct it.

commit 3a8af722495469e9c550386b910c5b93c91cf107

Author: David S. Miller <[email protected]>
Date:   Fri Oct 31 00:00:33 2008 -0700

net: Really remove all of LOOPBACK_TSO code.

As noticed by Saikiran Madugula, commit 7447ef63cf2dfdc444f4c72ae13f604350b2e25f ("loopback: Remove rest of LOOPBACK_TSO code.") got rid of emulate_large_send_offload() but didn't get rid of the call
site as well.

drivers/net/loopback.c +0 -9
index 3b43bfd..b1ac63a 100644
@@ -76,15 +76,6 @@ static int loopback_xmit(struct sk_buff *skb, struct net_device *dev)
 
 	skb->protocol = eth_type_trans(skb,dev);
 
-#ifdef LOOPBACK_TSO
-	if (skb_is_gso(skb)) {
-		BUG_ON(skb->protocol != htons(ETH_P_IP));
-		BUG_ON(ip_hdr(skb)->protocol != IPPROTO_TCP);
-
-		emulate_large_send_offload(skb);
-		return 0;
-	}
-#endif
 	dev->last_rx = jiffies;
 
 	/* it's OK to use per_cpu_ptr() because BHs are off */