diff options
author | Eric Dumazet <edumazet@google.com> | 2023-02-10 21:47:06 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-02-14 06:55:32 +0300 |
commit | 1fb2d41501f38192d8a19da585cd441cf8845697 (patch) | |
tree | 81c97b4bcf20c5689ebfc82c53d382bcdf8f3b25 /include/linux/regulator | |
parent | dc68eaf2c29f410fb078fd6da8e56201d3282e0b (diff) | |
download | linux-1fb2d41501f38192d8a19da585cd441cf8845697.tar.xz |
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 <edumazet@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/regulator')
0 files changed, 0 insertions, 0 deletions