diff options
author | Eric Dumazet <[email protected]> | 2023-02-10 18:47:06 +0000 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-02-13 19:55:32 -0800 |
commit | 1fb2d41501f38192d8a19da585cd441cf8845697 (patch) | |
tree | 81c97b4bcf20c5689ebfc82c53d382bcdf8f3b25 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py | |
parent | dc68eaf2c29f410fb078fd6da8e56201d3282e0b (diff) |
net: add pskb_may_pull_reason() helper
pskb_may_pull() can fail for two different reasons.
Provide pskb_may_pull_reason() helper to distinguish
between these reasons.
It returns:
SKB_NOT_DROPPED_YET : Success
SKB_DROP_REASON_PKT_TOO_SMALL : packet too small
SKB_DROP_REASON_NOMEM : skb->head could not be resized
Signed-off-by: Eric Dumazet <[email protected]>
Reviewed-by: David Ahern <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions