diff options
author | 2023-06-14 16:01:07 -0700 | |
---|---|---|
committer | 2023-06-19 11:32:58 -0700 | |
commit | 6db5dd2bf4817a415daaf6a0226beadef1473d30 (patch) | |
tree | e283160f99e035747553a7a7baba0a7bbfeda76d /tools/perf/scripts/python/task-analyzer.py | |
parent | ipv6: exthdrs: Reload hdr only when needed in ipv6_srh_rcv(). (diff) | |
download | wireguard-linux-6db5dd2bf4817a415daaf6a0226beadef1473d30.tar.xz wireguard-linux-6db5dd2bf4817a415daaf6a0226beadef1473d30.zip |
ipv6: exthdrs: Remove redundant skb_headlen() check in ip6_parse_tlv().
ipv6_destopt_rcv() and ipv6_parse_hopopts() pulls these data
- Hop-by-Hop/Destination Options Header : 8
- Hdr Ext Len : skb_transport_header(skb)[1] << 3
and calls ip6_parse_tlv(), so it need not check if skb_headlen() is less
than skb_transport_offset(skb) + (skb_transport_header(skb)[1] << 3).
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions