From: Matteo Croce Subject: [PATCH 0/3] Remove IPVlan module dependencies on IPv6 and Netfilter Date: Wed, 14 Feb 2018 19:13:42 +0100 Message-ID: <20180214181345.6368-1-mcroce@redhat.com> Cc: Mahesh Bandewar To: netdev@vger.kernel.org Return-path: Received: from mail-wr0-f194.google.com ([209.85.128.194]:45633 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161695AbeBNSNs (ORCPT ); Wed, 14 Feb 2018 13:13:48 -0500 Received: by mail-wr0-f194.google.com with SMTP id h9so856485wre.12 for ; Wed, 14 Feb 2018 10:13:48 -0800 (PST) Sender: netdev-owner@vger.kernel.org List-ID: The IPVlan module currently depends on IPv6 and Netfilter. Refactor the code to allow building IPVlan module regardless of the value of CONFIG_IPV6 and CONFIG_NETFILTER. Also change the dependency to CONFIG_NET_L3_MASTER_DEV into a select, as compiling L3 Master device alone has no sense. $ grep -wE 'CONFIG_(IPV6|NETFILTER|IPVLAN)' .config CONFIG_IPV6=y CONFIG_NETFILTER=y CONFIG_IPVLAN=m $ ll drivers/net/ipvlan/ipvlan.ko 48K drivers/net/ipvlan/ipvlan.ko $ grep -wE 'CONFIG_(IPV6|NETFILTER|IPVLAN)' .config # CONFIG_IPV6 is not set CONFIG_NETFILTER=y CONFIG_IPVLAN=m $ ll drivers/net/ipvlan/ipvlan.ko 44K drivers/net/ipvlan/ipvlan.ko $ grep -wE 'CONFIG_(IPV6|NETFILTER|IPVLAN)' .config CONFIG_IPV6=m # CONFIG_NETFILTER is not set CONFIG_IPVLAN=m $ ll drivers/net/ipvlan/ipvlan.ko 46K drivers/net/ipvlan/ipvlan.ko $ grep -wE 'CONFIG_(IPV6|NETFILTER|IPVLAN)' .config # CONFIG_IPV6 is not set # CONFIG_NETFILTER is not set CONFIG_IPVLAN=m $ ll drivers/net/ipvlan/ipvlan.ko 43K drivers/net/ipvlan/ipvlan.ko Matteo Croce (3): ipvlan: drop ipv6 dependency ipvlan: drop netfilter dependency ipvlan: selects master_l3 device instead of depending on it drivers/net/Kconfig | 4 +- drivers/net/ipvlan/ipvlan.h | 2 + drivers/net/ipvlan/ipvlan_core.c | 73 ++++++++++++++++++++++++++++--------- drivers/net/ipvlan/ipvlan_main.c | 79 +++++++++++++++++++++++++++------------- 4 files changed, 111 insertions(+), 47 deletions(-) -- 2.14.3