From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Borkmann Subject: Re: [PATCH v2 bpf-next 0/3] bpf: Add MTU check to fib lookup helper Date: Tue, 22 May 2018 10:59:06 +0200 Message-ID: References: <20180521160816.7060-1-dsahern@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: davem@davemloft.net, David Ahern To: dsahern@kernel.org, netdev@vger.kernel.org, borkmann@iogearbox.net, ast@kernel.org Return-path: Received: from www62.your-server.de ([213.133.104.62]:57224 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750733AbeEVI7J (ORCPT ); Tue, 22 May 2018 04:59:09 -0400 In-Reply-To: <20180521160816.7060-1-dsahern@kernel.org> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 05/21/2018 06:08 PM, dsahern@kernel.org wrote: > From: David Ahern > > Packets that exceed the egress MTU can not be forwarded in the fast path. > Add IPv4 and IPv6 MTU helpers that take a FIB lookup result (versus the > typical dst path) and add the calls to bpf_ipv{4,6}_fib_lookup. > > v2 > - add ip6_mtu_from_fib6 to ipv6_stub > - only call the new MTU helpers for fib lookups in XDP path; skb > path uses is_skb_forwardable to determine if the packet can be > sent via the egress device from the FIB lookup > > David Ahern (3): > net/ipv4: Add helper to return path MTU based on fib result > net/ipv6: Add helper to return path MTU based on fib result > bpf: Add mtu checking to FIB forwarding helper > > include/net/addrconf.h | 2 ++ > include/net/ip6_fib.h | 6 ++++++ > include/net/ip6_route.h | 3 +++ > include/net/ip_fib.h | 2 ++ > net/core/filter.c | 42 +++++++++++++++++++++++++++++++++++------- > net/ipv4/route.c | 31 +++++++++++++++++++++++++++++++ > net/ipv6/addrconf_core.c | 8 ++++++++ > net/ipv6/af_inet6.c | 1 + > net/ipv6/route.c | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ > 9 files changed, 136 insertions(+), 7 deletions(-) Applied to bpf-next, thanks David!