diff options
| author | Menglong Dong <[email protected]> | 2022-04-13 16:15:58 +0800 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2022-04-13 13:09:57 +0100 |
| commit | 7d9dbdfbfdc5e52131bea94a7318ee35b15a5f19 (patch) | |
| tree | b209c774d48b131bd61a64559f7bfa6908286a1d /tools/perf/scripts/python/libxed.py | |
| parent | bba98083499f63f62419edf42022275d34a72470 (diff) | |
net: ipv6: add skb drop reasons to TLV parse
Replace kfree_skb() used in TLV encoded option header parsing with
kfree_skb_reason(). Following functions are involved:
ip6_parse_tlv()
ipv6_hop_ra()
ipv6_hop_ioam()
ipv6_hop_jumbo()
ipv6_hop_calipso()
ipv6_dest_hao()
Most skb drops during this process are regarded as 'InHdrErrors',
as 'IPSTATS_MIB_INHDRERRORS' is used when ip6_parse_tlv() fails,
which make we use 'SKB_DROP_REASON_IP_INHDR' correspondingly.
However, 'IP_INHDR' is a relatively general reason. Therefore, we
can use other reasons with higher priority in some cases. For example,
'SKB_DROP_REASON_UNHANDLED_PROTO' is used for unknown TLV options.
Signed-off-by: Menglong Dong <[email protected]>
Reviewed-by: Jiang Biao <[email protected]>
Reviewed-by: Hao Peng <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions