From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Ahern Subject: [PATCH bpf-next 0/3] bpf: Add MTU check to fib lookup helper Date: Thu, 17 May 2018 09:09:27 -0700 Message-ID: <20180517160930.25076-1-dsahern@gmail.com> Cc: davem@davemloft.net, David Ahern To: netdev@vger.kernel.org, borkmann@iogearbox.net, ast@kernel.org Return-path: Received: from mail-pg0-f67.google.com ([74.125.83.67]:41413 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751779AbeEQQJl (ORCPT ); Thu, 17 May 2018 12:09:41 -0400 Received: by mail-pg0-f67.google.com with SMTP id w4-v6so2027081pgq.8 for ; Thu, 17 May 2018 09:09:41 -0700 (PDT) Sender: netdev-owner@vger.kernel.org List-ID: 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. 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/ip6_fib.h | 6 ++++++ include/net/ip6_route.h | 3 +++ include/net/ip_fib.h | 2 ++ net/core/filter.c | 10 ++++++++++ net/ipv4/route.c | 31 +++++++++++++++++++++++++++++++ net/ipv6/route.c | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 100 insertions(+) -- 2.11.0