Skip to contentSkip to conversation

revert: "netfront/back: do not mark packets of length < MSS as GSO"

PATCH New Ian Campbell 1 participant 1 message Jan 14, 2009 Xen hypervisor interface

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 revert: "netfront/back: do not mark packets of length < MSS as GSO"

# HG changeset patch
# User Ian Campbell <[email protected]>
# Date 1231938287 0
# Node ID 762b3109882589dfa69eb694a493a9273bcdf722
# Parent 107e10e0e07c3984630b8d3eaecb5bb957be387a
revert: "netfront/back: do not mark packets of length < MSS as GSO"

  changeset:   774:107e10e0e07c
  user:        Keir Fraser <[email protected]>
  date:        Tue Jan 13 15:17:54 2009 +0000
  summary:     netfront/back: do not mark packets of length < MSS as GSO

Herbert Xu suggested a better fix in the network
stack which will follow.

drivers/xen/netback/netback.c +0 -5
diff -r 107e10e0e07c -r 762b31098825 drivers/xen/netback/netback.c
@@ -1345,11 +1345,6 @@ static void net_tx_action(unsigned long 
 			skb_shinfo(skb)->frags[0].page = (void *)~0UL;
 		}
 
-		if (skb->data_len < skb_shinfo(skb)->gso_size) {
-			skb_shinfo(skb)->gso_size = 0;
-			skb_shinfo(skb)->gso_type = 0;
-		}
-
 		__skb_queue_tail(&tx_queue, skb);
 
 		pending_cons++;
drivers/xen/netfront/netfront.c +0 -8
diff -r 107e10e0e07c -r 762b31098825 drivers/xen/netfront/netfront.c
@@ -1439,14 +1439,6 @@ err:
 		np->stats.rx_packets++;
 		np->stats.rx_bytes += skb->len;
 
-#if HAVE_TSO
-		if (skb->data_len < skb_shinfo(skb)->gso_size) {
-			skb_shinfo(skb)->gso_size = 0;
-#if HAVE_GSO
-			skb_shinfo(skb)->gso_type = 0;
-#endif
-		}
-#endif
 		__skb_queue_tail(&rxq, skb);
 
 		np->rx.rsp_cons = ++i;