blob: e0ac7abfadf2898f90953e640f78e8d148b540a2 [file] [log] [blame]
developerfd40db22021-04-29 10:08:25 +08001--- a/net/Kconfig 2020-04-29 17:25:49.750444000 +0800
2+++ b/net/Kconfig 2020-04-29 17:42:40.950424000 +0800
3@@ -451,6 +451,18 @@
4 migration of VMs with direct attached VFs by failing over to the
5 paravirtual datapath when the VF is unplugged.
6
7+config HW_NAT
8+ bool "HW NAT support"
9+ default n
10+ ---help---
11+ This feature provides a fast path to support network lan/wan nat.
12+ If you need hw_nat engine to reduce cpu loading, please say Y.
13+
14+ Note that the answer to this question doesn't directly affect the
15+ kernel: saying N will just cause the configurator to skip all
16+ the questions about Mediatek Ethernet devices. If you say Y,
17+ you will be asked for your specific card in the following questions.
18+
19 endif # if NET
20
21 # Used by archs to tell that they support BPF JIT compiler plus which flavour.
22--- a/net/Makefile 2020-04-23 16:36:46.000000000 +0800
23+++ b/net/Makefile 2020-04-29 17:42:58.106487000 +0800
24@@ -62,6 +62,9 @@
25 obj-$(CONFIG_6LOWPAN) += 6lowpan/
26 obj-$(CONFIG_IEEE802154) += ieee802154/
27 obj-$(CONFIG_MAC802154) += mac802154/
28+ifeq ($(CONFIG_HW_NAT),y)
29+obj-y += nat/foe_hook/
30+endif
31
32 ifeq ($(CONFIG_NET),y)
33 obj-$(CONFIG_SYSCTL) += sysctl_net.o