Files
linux-rockchip/include/linux
Eric Dumazet ce83060743 net: add pskb_may_pull_reason() helper
[ Upstream commit 1fb2d41501f38192d8a19da585cd441cf8845697 ]

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>
Stable-dep-of: 8bd67ebb50c0 ("net: bridge: xmit: make sure we have at least eth header len bytes")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-06-12 11:03:32 +02:00
..
2023-07-19 16:21:11 +02:00
2024-02-23 09:12:48 +01:00
2024-06-12 11:03:08 +02:00
2024-02-23 09:12:51 +01:00
2023-12-20 17:00:20 +01:00
2024-03-26 18:21:02 -04:00
2024-01-10 17:10:30 +01:00
2024-05-17 11:55:52 +02:00
2024-05-25 16:21:31 +02:00
2024-04-03 15:19:44 +02:00
2023-10-10 22:00:35 +02:00
2023-05-30 14:03:22 +01:00
2023-11-20 11:51:55 +01:00
2024-04-03 15:19:34 +02:00
2024-01-25 15:27:20 -08:00
2024-06-12 11:03:21 +02:00
2023-11-28 17:07:03 +00:00
2023-10-19 23:08:50 +02:00
2023-10-19 23:08:50 +02:00
2023-07-19 16:21:54 +02:00
2023-12-13 18:39:08 +01:00
2023-08-16 18:27:20 +02:00