ipvlan: drop ipv6 dependency
authorMatteo Croce <mcroce@redhat.com>
Wed, 21 Feb 2018 00:31:13 +0000 (01:31 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Feb 2018 22:50:57 +0000 (17:50 -0500)
commit94333fac44d1da19ebdf41704780c1af3cabea61
tree7736c274474f4c93578cd0f4676cf40381b20866
parentcac56209a66ea3b0be67aa2966b2c628b944da1e
ipvlan: drop ipv6 dependency

IPVlan has an hard dependency on IPv6, refactor the ipvlan code to allow
compiling it with IPv6 disabled, move duplicate code into addr_equal()
and refactor series of if-else into a switch.

Signed-off-by: Matteo Croce <mcroce@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/Kconfig
drivers/net/ipvlan/ipvlan_core.c
drivers/net/ipvlan/ipvlan_main.c