netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 net-next 0/3] Remove IPVlan module dependencies on IPv6 and L3 Master dev
@ 2018-02-17 19:11 Matteo Croce
  2018-02-17 19:11 ` [PATCH v2 net-next 1/2] ipvlan: drop ipv6 dependency Matteo Croce
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Matteo Croce @ 2018-02-17 19:11 UTC (permalink / raw)
  To: netdev; +Cc: David Miller, Mahesh Bandewar, Florian Westphal

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-02-19 14:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-17 19:11 [PATCH v2 net-next 0/3] Remove IPVlan module dependencies on IPv6 and L3 Master dev Matteo Croce
2018-02-17 19:11 ` [PATCH v2 net-next 1/2] ipvlan: drop ipv6 dependency Matteo Croce
2018-02-19 10:33   ` [PATCH v3 " Matteo Croce
2018-02-19 14:58     ` David Miller
2018-02-17 19:11 ` [PATCH v2 net-next 2/2] ipvlan: selects master_l3 device instead of depending on it Matteo Croce
2018-02-17 19:21 ` [PATCH v2 net-next 0/3] Remove IPVlan module dependencies on IPv6 and L3 Master dev Matteo Croce

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).