]> xenbits.xensource.com Git - legacy/linux-2.6.18-xen.git/commitdiff
revert: "netfront/back: do not mark packets of length < MSS as GSO"
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 14 Jan 2009 14:03:42 +0000 (14:03 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 14 Jan 2009 14:03:42 +0000 (14:03 +0000)
  changeset:   774:107e10e0e07c
  user:        Keir Fraser <keir.fraser@citrix.com>
  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.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
drivers/xen/netback/netback.c
drivers/xen/netfront/netfront.c

index f843244613cffa697ac64e70a1d8ca82651fab53..2d69f822d6c7c7400be06cce62eef526fede9d0f 100644 (file)
@@ -1345,11 +1345,6 @@ static void net_tx_action(unsigned long unused)
                        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++;
index 0f5faac6304314befd40be8679a74fcb298fd625..8e51aa7250f6f2b758629f2419cb1b4b144ebe0e 100644 (file)
@@ -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;