mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-22 14:21:55 +07:00
c675e06a98
Right now ipvlan has a hard dependency on CONFIG_NETFILTER and otherwise it cannot be built. However, the only ipvlan operation mode that actually depends on netfilter is l3s, everything else is independent of it. Break this hard dependency such that users are able to use ipvlan l3 mode on systems where netfilter is not compiled in. Therefore, this adds a hidden CONFIG_IPVLAN_L3S bool which is defaulting to y when CONFIG_NETFILTER is set in order to retain existing behavior for l3s. All l3s related code is refactored into ipvlan_l3s.c that is compiled in when enabled. Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Cc: Mahesh Bandewar <maheshb@google.com> Cc: Florian Westphal <fw@strlen.de> Cc: Martynas Pumputis <m@lambda.lt> Acked-by: Florian Westphal <fw@strlen.de> Signed-off-by: David S. Miller <davem@davemloft.net>
10 lines
223 B
Makefile
10 lines
223 B
Makefile
#
|
|
# Makefile for the Ethernet Ipvlan driver
|
|
#
|
|
|
|
obj-$(CONFIG_IPVLAN) += ipvlan.o
|
|
obj-$(CONFIG_IPVTAP) += ipvtap.o
|
|
|
|
ipvlan-objs-$(CONFIG_IPVLAN_L3S) += ipvlan_l3s.o
|
|
ipvlan-objs := ipvlan_core.o ipvlan_main.o $(ipvlan-objs-y)
|