* Apparently with secret goal to sell you new device, when you
* will add new protocol to your host. F.e. IPv6. 8)
*
* Apparently with secret goal to sell you new device, when you
* will add new protocol to your host. F.e. IPv6. 8)
*
* the packet as seen by netif_rx in skb->csum.
* NOTE: Even if device supports only some protocols, but
* the packet as seen by netif_rx in skb->csum.
* NOTE: Even if device supports only some protocols, but
* @len: length of data pulled
*
* After doing a pull on a received packet, you need to call this to
* @len: length of data pulled
*
* After doing a pull on a received packet, you need to call this to
- * update the CHECKSUM_HW checksum, or set ip_summed to CHECKSUM_NONE
- * so that it can be recomputed from scratch.
+ * update the CHECKSUM_COMPLETE checksum, or set ip_summed to
+ * CHECKSUM_NONE so that it can be recomputed from scratch.
*/
static inline void skb_postpull_rcsum(struct sk_buff *skb,
const void *start, unsigned int len)
{
*/
static inline void skb_postpull_rcsum(struct sk_buff *skb,
const void *start, unsigned int len)
{
skb->csum = csum_sub(skb->csum, csum_partial(start, len, 0));
}
skb->csum = csum_sub(skb->csum, csum_partial(start, len, 0));
}
skb->ip_summed = CHECKSUM_NONE;
return __pskb_trim(skb, len);
}
skb->ip_summed = CHECKSUM_NONE;
return __pskb_trim(skb, len);
}