mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
[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:
parent
e7dd65dafd
commit
bbe735e424
18 changed files with 33 additions and 28 deletions
|
@ -323,7 +323,7 @@ restart:
|
|||
nores = 1;
|
||||
break;
|
||||
}
|
||||
__skb_pull(skb, skb->nh.raw - skb->data);
|
||||
__skb_pull(skb, skb_network_offset(skb));
|
||||
} while ((q = NEXT_SLAVE(q)) != start);
|
||||
|
||||
if (nores && skb_res == NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue