Re: [PATCH net-next] bpf: Remove duplicate tcp_filter hook in ipv6

2017-06-10 Thread David Miller
From: Chenbo Feng Date: Fri, 9 Jun 2017 12:17:37 -0700 > From: Chenbo Feng > > 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

Re: [PATCH net-next] bpf: Remove duplicate tcp_filter hook in ipv6

2017-06-09 Thread Eric Dumazet
On Fri, Jun 9, 2017 at 12:17 PM, Chenbo Feng wrote: > From: Chenbo Feng > > 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 filte

[PATCH net-next] bpf: Remove duplicate tcp_filter hook in ipv6

2017-06-09 Thread Chenbo Feng
From: Chenbo Feng 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