From: Matteo Croce Subject: [PATCH v2 net-next 0/3] Remove IPVlan module dependencies on IPv6 and L3 Master dev Date: Sat, 17 Feb 2018 20:11:48 +0100 Message-ID: <20180217191150.7643-1-mcroce@redhat.com> Cc: David Miller , Mahesh Bandewar , Florian Westphal To: netdev@vger.kernel.org Return-path: Received: from mail-wm0-f67.google.com ([74.125.82.67]:37351 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751121AbeBQTLy (ORCPT ); Sat, 17 Feb 2018 14:11:54 -0500 Received: by mail-wm0-f67.google.com with SMTP id v71so8502844wmv.2 for ; Sat, 17 Feb 2018 11:11:53 -0800 (PST) Sender: netdev-owner@vger.kernel.org List-ID: The IPVlan module currently depends on IPv6 and L3 Master dev. Refactor the code to allow building IPVlan module regardless of the value of CONFIG_IPV6 and CONFIG_NETFILTER, and change the CONFIG_NET_L3_MASTER_DEV dependency into a select, as compiling L3 Master device alone has no sense. $ grep -wE 'CONFIG_(IPV6|IPVLAN)' .config CONFIG_IPV6=y CONFIG_IPVLAN=m $ ll drivers/net/ipvlan/ipvlan.ko 48K drivers/net/ipvlan/ipvlan.ko $ grep -wE 'CONFIG_(IPV6|IPVLAN)' .config # CONFIG_IPV6 is not set CONFIG_IPVLAN=m $ ll drivers/net/ipvlan/ipvlan.ko 44K drivers/net/ipvlan/ipvlan.ko Matteo Croce (2): ipvlan: drop ipv6 dependency ipvlan: selects master_l3 device instead of depending on it drivers/net/Kconfig | 3 +- drivers/net/ipvlan/ipvlan_core.c | 71 ++++++++++++++++++++++++++++++---------- drivers/net/ipvlan/ipvlan_main.c | 48 +++++++++++++++++---------- 3 files changed, 85 insertions(+), 37 deletions(-) -- 2.14.3