bitkeeper revision 1.15.1.6 (3e2accd5ZlgmUafxBwWpk2RkxT-TtQ)

dev.c:
  Fix network transmit refcnt bug.
This commit is contained in:
kaf24@labyrinth.cl.cam.ac.uk committed 2003-01-19 16:05:41 +00:00
1 parent 1ee5f0966b
commit efece054c0
1 file changed
+3 -7
+3 -7
View File
@@ -1977,21 +1977,17 @@ long do_net_update(void)
if ( skb != NULL )
{
skb_get(skb); /* get a reference for non-local delivery */
skb->protocol = eth_type_trans(skb, skb->dev);
skb->src_vif = current_vif->id;
net_get_target_vif(skb);
if ( skb->dst_vif > VIF_PHYSICAL_INTERFACE )
{
if (netif_rx(skb) == 0)
/* Give up non-local reference. Packet delivered locally. */
kfree_skb(skb);
(void)netif_rx(skb);
}
else if ( skb->dst_vif == VIF_PHYSICAL_INTERFACE )
{
skb_push(skb, skb->dev->hard_header_len);
dev_queue_xmit(skb);
skb_push(skb, skb->dev->hard_header_len);
dev_queue_xmit(skb);
}
else
{
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.