From patchwork Tue Dec 14 17:27:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Westphal X-Patchwork-Id: 12676499 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9FE75C433EF for ; Tue, 14 Dec 2021 17:27:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231710AbhLNR1q (ORCPT ); Tue, 14 Dec 2021 12:27:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231209AbhLNR1p (ORCPT ); Tue, 14 Dec 2021 12:27:45 -0500 Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [IPv6:2a0a:51c0:0:12e:520::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 902D6C061574 for ; Tue, 14 Dec 2021 09:27:45 -0800 (PST) Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.92) (envelope-from ) id 1mxBaY-0005R0-Aq; Tue, 14 Dec 2021 18:27:42 +0100 From: Florian Westphal To: netdev@vger.kernel.org Cc: davem@davemloft.net, kuba@kernel.org, dsahern@kernel.org, Florian Westphal Subject: [PATCH v2 net-next 0/4] fib: remove suppress indirection, merge nl policies Date: Tue, 14 Dec 2021 18:27:27 +0100 Message-Id: <20211214172731.3591-1-fw@strlen.de> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org v2: don't break build with CONFIG_IPV6=n. This series removes the 'suppress' indirection in fib_rule_ops struct and merges the different (largely identical) nla policies. Florian Westphal (4): fib: remove suppress indirection fib: place common code in a helper fib: rules: remove duplicated nla policies fib: expand fib_rule_policy include/net/fib_rules.h | 30 ----------- net/core/fib_rules.c | 111 +++++++++++++++++++++++++++++++++++++--- net/decnet/dn_rules.c | 5 -- net/ipv4/fib_rules.c | 40 --------------- net/ipv4/ipmr.c | 5 -- net/ipv6/fib6_rules.c | 39 -------------- net/ipv6/ip6mr.c | 5 -- 7 files changed, 105 insertions(+), 130 deletions(-)