Eric Dumazet 80bfab79b8 net: adopt skb_network_offset() and similar helpers
This is a cleanup patch, making code a bit more concise.

1) Use skb_network_offset(skb) in place of
       (skb_network_header(skb) - skb->data)

2) Use -skb_network_offset(skb) in place of
       (skb->data - skb_network_header(skb))

3) Use skb_transport_offset(skb) in place of
       (skb_transport_header(skb) - skb->data)

4) Use skb_inner_transport_offset(skb) in place of
       (skb_inner_transport_header(skb) - skb->data)

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Edward Cree <ecree.xilinx@gmail.com> # for sfc
Signed-off-by: David S. Miller <davem@davemloft.net>
2024-03-04 08:47:06 +00:00
..
2023-10-01 19:09:54 +01:00
2024-02-20 15:32:45 +01:00
2024-03-02 20:50:59 -08:00
2024-02-21 17:11:04 -08:00
2024-01-11 10:07:29 -08:00
2024-03-02 20:50:59 -08:00
2023-12-26 20:31:01 +00:00
2024-03-02 20:50:59 -08:00
2024-03-02 20:50:59 -08:00
2023-12-12 14:24:14 +01:00
2024-01-31 16:41:16 -08:00