[SK_BUFF]: Introduce skb_transport_offset()
For the quite common 'skb->h.raw - skb->data' sequence. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
badff6d01a
commit
ea2ae17d64
@ -1156,7 +1156,7 @@ EXPORT_SYMBOL(netif_device_attach);
|
||||
int skb_checksum_help(struct sk_buff *skb)
|
||||
{
|
||||
__wsum csum;
|
||||
int ret = 0, offset = skb->h.raw - skb->data;
|
||||
int ret = 0, offset = skb_transport_offset(skb);
|
||||
|
||||
if (skb->ip_summed == CHECKSUM_COMPLETE)
|
||||
goto out_set_summed;
|
||||
|
Reference in New Issue
Block a user