ia64/xen-unstable

changeset 94:e84c63b9a807

bitkeeper revision 1.15.1.6 (3e2accd5ZlgmUafxBwWpk2RkxT-TtQ)

dev.c:
Fix network transmit refcnt bug.
author kaf24@labyrinth.cl.cam.ac.uk
date Sun Jan 19 16:05:41 2003 +0000 (2003-01-19)
parents a555f7a1f075
children f72ea5eac57b
files xen-2.4.16/net/dev.c
line diff
     1.1 --- a/xen-2.4.16/net/dev.c	Fri Jan 17 14:07:19 2003 +0000
     1.2 +++ b/xen-2.4.16/net/dev.c	Sun Jan 19 16:05:41 2003 +0000
     1.3 @@ -1977,21 +1977,17 @@ long do_net_update(void)
     1.4  
     1.5              if ( skb != NULL )
     1.6              {
     1.7 -                skb_get(skb); /* get a reference for non-local delivery */
     1.8                  skb->protocol = eth_type_trans(skb, skb->dev);
     1.9                  skb->src_vif = current_vif->id; 
    1.10                  net_get_target_vif(skb);
    1.11                  if ( skb->dst_vif > VIF_PHYSICAL_INTERFACE )
    1.12                  {
    1.13 -                    if (netif_rx(skb) == 0)
    1.14 -                        /* Give up non-local reference. Packet delivered locally. */
    1.15 -                        kfree_skb(skb);
    1.16 +                    (void)netif_rx(skb);
    1.17                  }
    1.18                  else if ( skb->dst_vif == VIF_PHYSICAL_INTERFACE )
    1.19                  {
    1.20 -
    1.21 -                        skb_push(skb, skb->dev->hard_header_len);
    1.22 -                        dev_queue_xmit(skb);
    1.23 +                    skb_push(skb, skb->dev->hard_header_len);
    1.24 +                    dev_queue_xmit(skb);
    1.25                  } 
    1.26                  else
    1.27                  {