Return-Path: Received: from mail-wr0-f196.google.com ([209.85.128.196]:39162 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751053AbeBUAbS (ORCPT ); Tue, 20 Feb 2018 19:31:18 -0500 Received: by mail-wr0-f196.google.com with SMTP id w77so19347337wrc.6 for ; Tue, 20 Feb 2018 16:31:17 -0800 (PST) From: Matteo Croce To: netdev@vger.kernel.org Cc: David Miller , Mahesh Bandewar , Florian Westphal Subject: [PATCH net-next v4 0/2] Remove IPVlan module dependencies on IPv6 and L3 Master dev Date: Wed, 21 Feb 2018 01:31:12 +0100 Message-Id: <20180221003114.4972-1-mcroce@redhat.com> 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 as done in other drivers like VxLAN or GENEVE. Also change the CONFIG_NET_L3_MASTER_DEV dependency into a select, since compiling L3 Master device alone has little 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 | 72 ++++++++++++++++++++++++++++++---------- drivers/net/ipvlan/ipvlan_main.c | 48 +++++++++++++++++---------- 3 files changed, 86 insertions(+), 37 deletions(-) -- 2.14.3