Merge branch 'ipvlan-deps'
authorDavid S. Miller <davem@davemloft.net>
Wed, 21 Feb 2018 22:51:04 +0000 (17:51 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Feb 2018 22:51:04 +0000 (17:51 -0500)
commit0ea5f58ebc83edfd13b0b254fbbc4ac191351c18
tree1205e2f0a7b0deb369e661f8c942d7f0850865bc
parentcac56209a66ea3b0be67aa2966b2c628b944da1e
parent218798f407875e8a1ce9164f5e0c50f02105dc64
Merge branch 'ipvlan-deps'

Matteo Croce says:

====================
Remove IPVlan module dependencies on IPv6 and L3 Master dev

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_IPVLAN=m
$ ll drivers/net/ipvlan/ipvlan.ko
44K drivers/net/ipvlan/ipvlan.ko
====================

Signed-off-by: David S. Miller <davem@davemloft.net>