[SK_BUFF]: Introduce skb_network_offset()
For the quite common 'skb->nh.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
e7dd65dafd
commit
bbe735e424
@@ -2910,7 +2910,7 @@ e1000_tso(struct e1000_adapter *adapter, struct e1000_tx_ring *tx_ring,
|
||||
0);
|
||||
ipcse = 0;
|
||||
}
|
||||
ipcss = skb->nh.raw - skb->data;
|
||||
ipcss = skb_network_offset(skb);
|
||||
ipcso = (void *)&(skb->nh.iph->check) - (void *)skb->data;
|
||||
tucss = skb->h.raw - skb->data;
|
||||
tucso = (void *)&(skb->h.th->check) - (void *)skb->data;
|
||||
|
Reference in New Issue
Block a user