From patchwork Fri Jan 19 19:10:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pablo Neira Ayuso X-Patchwork-Id: 125213 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp432449ljf; Fri, 19 Jan 2018 11:12:49 -0800 (PST) X-Google-Smtp-Source: ACJfBouME1lyc7AeZFekmNH6nLO8pfPodqSd0Kh9Z0HYaXy+YQbiU8rgljiPJZjK+zpY746NNTWt X-Received: by 10.101.91.66 with SMTP id y2mr33055378pgr.11.1516389169239; Fri, 19 Jan 2018 11:12:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516389169; cv=none; d=google.com; s=arc-20160816; b=ByrO8CSzwZ+yoOG5MtMMP60CS9ewARbwYV87741wNdhzUSTCw6McqWx+0gtqbwpX9q RiQ/REkjl4iHa2fehR+a6J0q0NQ8bpqNnfCF/Ppl4+FVygNJpIml4fMnxf0j76dyJOXH NjBta0o/9daKf1BAFhgGScMKCPNNs8QDq3LuRLEjtrtlsudOSwqpZ0WRgC/4IuZwsLH2 XkBAr4QtMH0Q9XqHkmAALW71zz9g9OGNRS2ZkMy8ostS0ms5NsutCd3PJft+ynl1F7ma PJBhSnyMeo/Lq770hN3IfI0bBMraTusZen13pBpadQ/Aqh5RkcP3R9dXGd2h6ACLbN2Z nohQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=EELi1WBrNwR5FPenIih7lEX2oZGAr5V7PvI+ufN5HBM=; b=rqVuoCtMth7t8nhpgitp/hs9RSWS1kvvJNqPK4C81gpKV4AR3z5qMHDWN0trRNs2/L dMowJ+hyatV0YHs9hMK9K//eHGeGu5wht06cGq0zGWo5PgqfdqtXWRguOiD2tQxdMcwg UIkGheuwAfrtyzzMJoXFEr92Z5cubH1LH7tFfrdaHUEmiFUTZob3kgyC1cCnYitXqiTE ncILgtIfti52TEkAlcBqgVgxp/0t9v5QfGe5XCU0z64AMNbaJdgAyTa2oOFtrANBFBiZ Y1zhtGb50HzQK7+7zYCk+/11pr9/w1uEviZtbJ7+ngG6Vg3tTwCKLatbXdnIV6yn1kHD DKmA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f18si8783145pga.543.2018.01.19.11.12.49; Fri, 19 Jan 2018 11:12:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932634AbeASTMp (ORCPT + 7 others); Fri, 19 Jan 2018 14:12:45 -0500 Received: from mail.us.es ([193.147.175.20]:45156 "EHLO mail.us.es" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932394AbeASTLL (ORCPT ); Fri, 19 Jan 2018 14:11:11 -0500 Received: from antivirus1-rhel7.int (unknown [192.168.2.11]) by mail.us.es (Postfix) with ESMTP id 6E6992EFECF for ; Fri, 19 Jan 2018 20:11:04 +0100 (CET) Received: from antivirus1-rhel7.int (localhost [127.0.0.1]) by antivirus1-rhel7.int (Postfix) with ESMTP id 4C786DA849 for ; Fri, 19 Jan 2018 20:11:04 +0100 (CET) Received: by antivirus1-rhel7.int (Postfix, from userid 99) id 4BE38DA858; Fri, 19 Jan 2018 20:11:04 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on antivirus1-rhel7.int X-Spam-Level: X-Spam-Status: No, score=-108.2 required=7.5 tests=ALL_TRUSTED,BAYES_50, SMTPAUTH_US2,USER_IN_WHITELIST autolearn=disabled version=3.4.1 Received: from antivirus1-rhel7.int (localhost [127.0.0.1]) by antivirus1-rhel7.int (Postfix) with ESMTP id 580A7DA849; Fri, 19 Jan 2018 20:11:02 +0100 (CET) Received: from 192.168.1.97 (192.168.1.97) by antivirus1-rhel7.int (F-Secure/fsigk_smtp/550/antivirus1-rhel7.int); Fri, 19 Jan 2018 20:11:02 +0100 (CET) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/antivirus1-rhel7.int) Received: from salvia.here (barqueta.lsi.us.es [150.214.188.150]) (Authenticated sender: pneira@us.es) by entrada.int (Postfix) with ESMTPA id 4B8B941E4817; Fri, 19 Jan 2018 20:11:02 +0100 (CET) X-SMTPAUTHUS: auth mail.us.es From: Pablo Neira Ayuso To: netfilter-devel@vger.kernel.org Cc: davem@davemloft.net, netdev@vger.kernel.org Subject: [PATCH 17/32] netfilter: nf_tables: flow_offload depends on flow_table Date: Fri, 19 Jan 2018 20:10:26 +0100 Message-Id: <20180119191041.25804-18-pablo@netfilter.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180119191041.25804-1-pablo@netfilter.org> References: <20180119191041.25804-1-pablo@netfilter.org> X-Virus-Scanned: ClamAV using ClamSMTP Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Arnd Bergmann Without CONFIG_NF_FLOW_TABLE, the new nft_flow_offload module produces a link error: net/netfilter/nft_flow_offload.o: In function `nft_flow_offload_iterate_cleanup': nft_flow_offload.c:(.text+0xb0): undefined reference to `nf_flow_table_iterate' net/netfilter/nft_flow_offload.o: In function `flow_offload_iterate_cleanup': nft_flow_offload.c:(.text+0x160): undefined reference to `flow_offload_dead' net/netfilter/nft_flow_offload.o: In function `nft_flow_offload_eval': nft_flow_offload.c:(.text+0xc4c): undefined reference to `flow_offload_alloc' nft_flow_offload.c:(.text+0xc64): undefined reference to `flow_offload_add' nft_flow_offload.c:(.text+0xc94): undefined reference to `flow_offload_free' This adds a Kconfig dependency for it. Fixes: a3c90f7a2323 ("netfilter: nf_tables: flow offload expression") Signed-off-by: Arnd Bergmann Signed-off-by: Pablo Neira Ayuso --- net/netfilter/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.11.0 diff --git a/net/netfilter/Kconfig b/net/netfilter/Kconfig index ea447826e127..9019fa98003d 100644 --- a/net/netfilter/Kconfig +++ b/net/netfilter/Kconfig @@ -506,7 +506,7 @@ config NFT_CT connection tracking information such as the flow state. config NFT_FLOW_OFFLOAD - depends on NF_CONNTRACK + depends on NF_CONNTRACK && NF_FLOW_TABLE tristate "Netfilter nf_tables hardware flow offload module" help This option adds the "flow_offload" expression that you can use to