summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMenglong Dong <imagedong@tencent.com>2022-01-27 17:13:01 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-07-29 17:25:16 +0200
commit8ac90de3d13709a72537400245448c9275276041 (patch)
treefe9b943c05c01d8521dfe9e545983b229e56a075 /net
parentb7adefdae236f5e5aff9fa856a9fb6992abd7341 (diff)
downloadlinux-stable-8ac90de3d13709a72537400245448c9275276041.tar.gz
linux-stable-8ac90de3d13709a72537400245448c9275276041.tar.bz2
linux-stable-8ac90de3d13709a72537400245448c9275276041.zip
net: socket: rename SKB_DROP_REASON_SOCKET_FILTER
[ Upstream commit 364df53c081d93fcfd6b91085ff2650c7f17b3c7 ] Rename SKB_DROP_REASON_SOCKET_FILTER, which is used as the reason of skb drop out of socket filter before it's part of a released kernel. It will be used for more protocols than just TCP in future series. Signed-off-by: Menglong Dong <imagedong@tencent.com> Reviewed-by: David Ahern <dsahern@kernel.org> Link: https://lore.kernel.org/all/20220127091308.91401-2-imagedong@tencent.com/ Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net')
-rw-r--r--net/ipv4/tcp_ipv4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
index d901858aa440..235ae91bfd5a 100644
--- a/net/ipv4/tcp_ipv4.c
+++ b/net/ipv4/tcp_ipv4.c
@@ -2098,7 +2098,7 @@ process:
nf_reset_ct(skb);
if (tcp_filter(sk, skb)) {
- drop_reason = SKB_DROP_REASON_TCP_FILTER;
+ drop_reason = SKB_DROP_REASON_SOCKET_FILTER;
goto discard_and_relse;
}
th = (const struct tcphdr *)skb->data;