net: tunnel: make skb_vlan_inet_prepare() return drop reasons

commit 9990ddf47d upstream.

Make skb_vlan_inet_prepare return the skb drop reasons, which is just
what pskb_may_pull_reason() returns. Meanwhile, adjust all the call of
it.

Signed-off-by: Menglong Dong <dongml2@chinatelecom.cn>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Cc: Eric Dumazet <edumazet@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Menglong Dong 2024-10-09 10:28:21 +08:00 • committed by Greg Kroah-Hartman
commit 4ce768ac42
4 changed files with 13 additions and 10 deletions