blob: eafa48ee8cb7831fa9e68cd718b88a844722b03b [file] [log] [blame]
developere5e687d2023-08-08 16:05:33 +08001config MTK_TOPS_SUPPORT
2 bool "Mediatek Tunnel Offload Processor System Support"
3 help
4 Support for Mediatek Tunnel Offload Processor System which
5 offloads tunnel protocols such as GRE, VxLAN, L2TP, PPTP etc. from
6 host CPU. The TOPS system cooperate with Mediatek HNAT HW and
7 Mediatek PCE HW to offload specific tunnel procotol.
8
9config MTK_TOPS_GRE
10 depends on MTK_TOPS_SUPPORT
11 bool
12 help
13 Support for GRE offload to Mediatek Network Processing Unit.
14 Alleviate host CPU's loading by offloading GRE related encapulation
15 and decapulation to NPU.
16
17config MTK_TOPS_GRETAP
18 depends on MTK_TOPS_SUPPORT
19 select MTK_TOPS_GRE
20 bool "Mediatek TOPS L2oGRE Offload Support"
21 help
22 Support for L2oGRE offload to Mediatek Network Processing Unit.
23 Alleviate host CPU's loading by offloading L2oGRE encapulation and
24 decapulation to NPU.
25
26config MTK_TOPS_PPTP
27 depends on MTK_TOPS_SUPPORT
28 bool "Mediatek TOPS PPTP Offload Support"
29 help
30 Support for PPTP offload to Mediatek Network Processing Unit.
31 Alleviate host CPU's loading by offloading PPTP encapulation and
32 decapulation to NPU.
33
34config MTK_TOPS_L2TP
35 depends on MTK_TOPS_SUPPORT
36 bool
37 help
38 Support for L2TP offload to Mediatek Network Processing Unit.
39 Alleviate host CPU's loading by offloading L2TP related encapulation
40 and decapulation to NPU.
41
42config MTK_TOPS_IP_L2TP
43 depends on MTK_TOPS_SUPPORT
44 select MTK_TOPS_L2TP
45 bool "Mediatek TOPS IP L2TP Offload Support"
46 help
47 Support for IP L2TP offload to Mediatek Network Processing Unit.
48 Alleviate host CPU's loading by offloading IP L2TP encapulation and
49 decapulation to NPU.
50
51config MTK_TOPS_UDP_L2TP_CTRL
52 depends on MTK_TOPS_SUPPORT
53 select MTK_TOPS_L2TP
54 bool "Mediatek TOPS UDP L2TP Control Offload Support"
55 help
56 Support for UDP L2TP control offload to Mediatek Network Processing
57 Unit. Alleviate host CPU's loading by offloading UDP L2TP control
58 encapulation and decapulation to NPU.
59
60config MTK_TOPS_UDP_L2TP_DATA
61 depends on MTK_TOPS_SUPPORT
62 select MTK_TOPS_L2TP
63 bool "Mediatek TOPS UDP L2TP Data Offload Support"
64 help
65 Support for UDP L2TP data offload to Mediatek Network Processing
66 Unit. Alleviate host CPU's loading by offloading UDP L2TP data
67 encapulation and decapulation to NPU.
68
69config MTK_TOPS_VXLAN
70 depends on MTK_TOPS_SUPPORT
71 bool "Mediatek TOPS VxLAN Offload Support"
72 help
73 Support for VxLAN offload to Mediatek Network Processing Unit.
74 Alleviate host CPU's loading by offloading VxLAN encapulation and
75 decapulation to NPU.
76
77config MTK_TOPS_NATT
78 depends on MTK_TOPS_SUPPORT
79 bool "Mediatek TOPS NAT Traversal Offload Support"
80 help
81 Support for NATT offload to Mediatek Network Processing Unit.
82 Alleviate host CPU's loading by offloading NATT encapulation and
83 decapulation to NPU.
84
85config MTK_TOPS_CAPWAP
86 depends on MTK_TOPS_SUPPORT
87 bool
88 help
89 Support for CAPWAP offload to Mediatek Network Processing Unit.
90 Alleviate host CPU's loading by offloading CAPWAP related
91 encapulation and decapulation to NPU.
92
93config MTK_TOPS_CAPWAP_CTRL
94 depends on MTK_TOPS_SUPPORT
95 select MTK_TOPS_CAPWAP
96 bool "Mediatek TOPS CAPWAP Control Offload Support"
97 help
98 Support for CAPWAP control offload to Mediatek Network Processing
99 Unit. Alleviate host CPU's loading by offloading CAPWAP control
100 encapulation and decapulation to NPU.
101
102config MTK_TOPS_CAPWAP_DATA
103 depends on MTK_TOPS_SUPPORT
104 select MTK_TOPS_CAPWAP
105 bool "Mediatek TOPS CAPWAP Data Offload Support"
106 help
107 Support for CAPWAP data offload to Mediatek Network Processing
108 Unit. Alleviate host CPU's loading by offloading CAPWAP data
109 encapulation and decapulation to NPU.
110
111config MTK_TOPS_CAPWAP_DTLS
112 depends on MTK_TOPS_SUPPORT
113 select MTK_TOPS_CAPWAP
114 bool "Mediatek TOPS CAPWAP DTLS Offload Support"
115 help
116 Support for CAPWAP DTLS offload to Mediatek Network Processing
117 Unit. Alleviate host CPU's loading by offloading CAPWAP DTLS
118 encapulation and decapulation to NPU.
119
120config MTK_TOPS_IPSEC
121 depends on MTK_TOPS_SUPPORT
122 bool
123 help
124 Support for IPSEC offload to Mediatek Network Processing Unit.
125 Alleviate host CPU's loading by offloading IPSEC related
126 encapulation and decapulation to NPU.
127
128config MTK_TOPS_IPSEC_ESP
129 depends on MTK_TOPS_SUPPORT
130 select MTK_TOPS_IPSEC
131 bool "Mediatek TOPS IPSec ESP Offload Support"
132 help
133 Support for IPSec ESP offload to Mediatek Network Processing
134 Unit. Alleviate host CPU's loading by offloading IPSec ESP
135 encapulation and decapulation to NPU.
136
137config MTK_TOPS_IPSEC_AH
138 depends on MTK_TOPS_SUPPORT
139 select MTK_TOPS_IPSEC
140 bool "Mediatek TOPS IPSec AH Offload Support"
141 help
142 Support for IPSec AH offload to Mediatek Network Processing
143 Unit. Alleviate host CPU's loading by offloading IPSec AH
144 encapulation and decapulation to NPU.
145
146config TOPS_TNL_NUM
147 int "Mediatek TOPS Tunnel Count"
148 depends on MTK_TOPS_SUPPORT
149 help
150 Configuration for tunnel count for Tunnel Offload Processing
151 System. This value should be 2 ^ TOPS_TNL_MAP_BIT.
152
153config TOPS_TNL_MAP_BIT
154 int "Mediatek TOPS Tunnel Map Bit"
155 depends on MTK_TOPS_SUPPORT
156 help
157 Configuration for tunnel map bit for Tunnel Offload Processing
158 System. This value is log of TOPS_TNL_NUM.