]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Remove duplicate tcp_filter hook in ipv6
authorChenbo Feng <fengc@google.com>
Fri, 9 Jun 2017 19:17:37 +0000 (12:17 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 10 Jun 2017 20:08:02 +0000 (16:08 -0400)
commita963bfee281b6069ebfd6ebba5f6f637280c3e61
treec00243e6e2a85aa433b7cb1fa8001a2d5bf4202a
parentab2cc56bbd3ef21d31a5c946129ac3f1fc76f7ea
bpf: Remove duplicate tcp_filter hook in ipv6

There are two tcp_filter hooks in tcp_ipv6 ingress path currently.
One is at tcp_v6_rcv and another is in tcp_v6_do_rcv. It seems the
tcp_filter() call inside tcp_v6_do_rcv is redundent and some packet
will be filtered twice in this situation. This will cause trouble
when using eBPF filters to account traffic data.

Signed-off-by: Chenbo Feng <fengc@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/tcp_ipv6.c