diff options
author | Eric Dumazet <[email protected]> | 2024-02-29 09:39:07 +0000 |
---|---|---|
committer | David S. Miller <[email protected]> | 2024-03-04 08:47:06 +0000 |
commit | 80bfab79b8351c8d858e6928a091b57c103dce29 (patch) | |
tree | f155ef3098223a759d26852f7c9d5ac892de07e1 /tools/perf/scripts/python/netdev-times.py | |
parent | 4b2765ae410abf01154cf97876384d8a58c43953 (diff) |
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 <[email protected]>
Acked-by: Edward Cree <[email protected]> # for sfc
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions