Author: Jose Renato Santos <jsantos@hpl.hp.com>
Date: Thu Jun 11 12:27:22 2009 -0700
Set skb protocol field only after grant operations are completed.
Otherwise it will be corrupted when the header is not inline and
thus it has not been copied yet.
Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
msg.segmentation_type);
goto err;
}
- skb->protocol = eth_type_trans(skb, nc->net_device);
+
__skb_queue_tail(&pending_rx_queue, skb);
}
return;
sco = get_skb_overlay(skb);
if (unlikely(sco->failed))
kfree_skb(skb);
- else
+ else {
+ skb->protocol = eth_type_trans(skb, skb->dev);
netif_receive_skb(skb);
+ }
}
}