FROMLIST: bpf: Remove duplicate tcp_filter hook in ipv6
authorChenbo Feng <fengc@google.com>
Fri, 9 Jun 2017 19:17:37 +0000 (12:17 -0700)
committerChenbo Feng <fengc@google.com>
Fri, 16 Jun 2017 17:27:21 +0000 (10:27 -0700)
commite22ff4d119bc7708d51af23cb78b41b8c6310515
tree28f11844bc8d617befb97e678a095b658724578b
parent2c4f58af89edfb798e2212618a5c4337010dd431
FROMLIST: 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>
(url: http://patchwork.ozlabs.org/patch/774126/)
Bug: 30950746
Change-Id: Id4fe8cd5b7bac11a4d4141e203dd4b9fa59f3d6c
net/ipv6/tcp_ipv6.c