Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934148AbeALPvI (ORCPT + 1 other); Fri, 12 Jan 2018 10:51:08 -0500 Received: from mout.kundenserver.de ([212.227.126.130]:52889 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933997AbeALPvG (ORCPT ); Fri, 12 Jan 2018 10:51:06 -0500 From: Arnd Bergmann To: Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , "David S. Miller" Cc: Arnd Bergmann , William Breathitt Gray , "Pablo M. Bermudo Garay" , Manuel Messner , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] netfilter: nf_tables: flow_offload depends on flow_table Date: Fri, 12 Jan 2018 16:50:26 +0100 Message-Id: <20180112155033.3694504-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:WSOEG7ERv+0uSoQHHNQHDsbmdhB1I8Qv6rOwCXt7RZbJn+RiSSc teIw9bm/LQRZKJ14a0FgzQzGOuMFETqDMY7XYW5j9lnAiPu7r4tn/+zSr3U2nmdT9JxAL3r LZxiEFGq7Hxk2hLZrJM9szi3dZSeLLJ0+UhchH5TcYEkp4xb3uUg0dStmDNCH/XCMmKgnh+ fAtaSrMlP6AwoalkFjpqg== X-UI-Out-Filterresults: notjunk:1;V01:K0:JrckZO3Hoak=:HbhEWOJfIH818/iILfzzTn MRbDpScrboxE0hXk267VtTdYw3Gkt87CkgaFxBNwhoc1JsMKmLN883zSPWHVxALDKeRXmkAkE jyv9S2OEFvHPkr4ix6gv7xyLafQUm9VvyJyjP4NS2FkhL8uH1iZX6n7jzLQ9e+4NOPKcewvv7 3S6KP1WMiSldr75LBQNxyN/WLwCwSfttEceDWO7f8ETD8HasxY0+lQMMJqUvqzf8vYSQv7VyR LC6rWC1uQiB5OJ6GJdYt515pHnci21shxE9HsIo/etSGUHhvaUfFzDJCtgITf5ZL+5L4NWY2C mL/aJy8wd7mF0wba/R3qpR7vB3GNoi3u6ghCS0bwPa8+txtTqmMzEMBqeH/q2mrYcp0KXbiC+ k5bEgrT7K7gZIhAcrNKIWm6Bni0pFhlQBI4C9iDHkrRxkHjYlu515u0wD7CjZ2v/dAycpaMuB SBEPKRBriVoBj5+/vtHRkOQaX/Ry6XXlB4GvFTcT/8SENDVLptPVxPEBBewy75ZFUQ2quUcVp TJ6iRCUvG6E4GshDvPiTP4iV6s9rFLUpL70mAStsWejxYgPpfxFfCUaz6t4ekHem1GilNZwRO G2SPlB5pfE20uxS0pn+x56urb96HsXOfXAgR1fVbMdV+qcdHlYtd/yVmXpwtuIHtzoHYqDTqL W0zHCkLsa6nLpFCJvpJaeSiQCAUIPrHXY8wuJq8xlaAp/TcvIf0o1rHg1CoFH7UXSugF8S5Sa MXx7ydyxSEDQ1D+x2AR3y1gFbxT4JX3ZU93ixw== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: 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 --- net/netfilter/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.9.0