kernel: kmod-geneve: kmod for Geneve tunneling
[openwrt/openwrt.git] / package / kernel / linux / modules / netsupport.mk
1 #
2 # Copyright (C) 2006-2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 NETWORK_SUPPORT_MENU:=Network Support
9
10 define KernelPackage/atm
11 SUBMENU:=$(NETWORK_SUPPORT_MENU)
12 TITLE:=ATM support
13 KCONFIG:= \
14 CONFIG_ATM \
15 CONFIG_ATM_BR2684
16 FILES:= \
17 $(LINUX_DIR)/net/atm/atm.ko \
18 $(LINUX_DIR)/net/atm/br2684.ko
19 AUTOLOAD:=$(call AutoLoad,30,atm br2684)
20 endef
21
22 define KernelPackage/atm/description
23 Kernel modules for ATM support
24 endef
25
26 $(eval $(call KernelPackage,atm))
27
28
29 define KernelPackage/atmtcp
30 SUBMENU:=$(NETWORK_SUPPORT_MENU)
31 TITLE:=ATM over TCP
32 DEPENDS:=kmod-atm
33 KCONFIG:=CONFIG_ATM_TCP CONFIG_ATM_DRIVERS=y
34 FILES:=$(LINUX_DIR)/drivers/atm/atmtcp.ko
35 AUTOLOAD:=$(call AutoLoad,40,atmtcp)
36 endef
37
38 define KernelPackage/atmtcp/description
39 Kernel module for ATM over TCP support
40 endef
41
42 $(eval $(call KernelPackage,atmtcp))
43
44
45 define KernelPackage/bonding
46 SUBMENU:=$(NETWORK_SUPPORT_MENU)
47 TITLE:=Ethernet bonding driver
48 KCONFIG:=CONFIG_BONDING
49 FILES:=$(LINUX_DIR)/drivers/net/bonding/bonding.ko
50 AUTOLOAD:=$(call AutoLoad,40,bonding)
51 endef
52
53 define KernelPackage/bonding/description
54 Kernel module for NIC bonding.
55 endef
56
57 $(eval $(call KernelPackage,bonding))
58
59
60 define KernelPackage/udptunnel4
61 SUBMENU:=$(NETWORK_SUPPORT_MENU)
62 TITLE:=IPv4 UDP tunneling support
63 KCONFIG:= \
64 CONFIG_NET_UDP_TUNNEL \
65 CONFIG_VXLAN=m
66 HIDDEN:=1
67 FILES:=$(LINUX_DIR)/net/ipv4/udp_tunnel.ko
68 AUTOLOAD:=$(call AutoLoad,32,udp_tunnel)
69 endef
70
71
72 $(eval $(call KernelPackage,udptunnel4))
73
74 define KernelPackage/udptunnel6
75 SUBMENU:=$(NETWORK_SUPPORT_MENU)
76 TITLE:=IPv6 UDP tunneling support
77 DEPENDS:=@IPV6
78 KCONFIG:= \
79 CONFIG_NET_UDP_TUNNEL \
80 CONFIG_VXLAN=m
81 HIDDEN:=1
82 FILES:=$(LINUX_DIR)/net/ipv6/ip6_udp_tunnel.ko
83 AUTOLOAD:=$(call AutoLoad,32,ip6_udp_tunnel)
84 endef
85
86 $(eval $(call KernelPackage,udptunnel6))
87
88
89 define KernelPackage/vxlan
90 SUBMENU:=$(NETWORK_SUPPORT_MENU)
91 TITLE:=Native VXLAN Kernel support
92 DEPENDS:= \
93 +kmod-iptunnel \
94 +kmod-udptunnel4 \
95 +IPV6:kmod-udptunnel6
96 KCONFIG:=CONFIG_VXLAN
97 FILES:=$(LINUX_DIR)/drivers/net/vxlan.ko
98 AUTOLOAD:=$(call AutoLoad,13,vxlan)
99 endef
100
101 define KernelPackage/vxlan/description
102 Kernel module for supporting VXLAN in the Kernel.
103 Requires Kernel 3.12 or newer.
104 endef
105
106 $(eval $(call KernelPackage,vxlan))
107
108
109 define KernelPackage/geneve
110 SUBMENU:=$(NETWORK_SUPPORT_MENU)
111 TITLE:=Generic Network Virtualization Encapsulation (Geneve) support
112 DEPENDS:= \
113 +kmod-iptunnel \
114 +kmod-udptunnel4 \
115 +IPV6:kmod-udptunnel6
116 KCONFIG:=CONFIG_GENEVE
117 FILES:= \
118 $(LINUX_DIR)/net/ipv4/geneve.ko@le4.1 \
119 $(LINUX_DIR)/drivers/net/geneve.ko@ge4.2
120 AUTOLOAD:=$(call AutoLoad,13,geneve)
121 endef
122
123 define KernelPackage/geneve/description
124 Kernel module for supporting Geneve in the Kernel.
125 Requires Kernel 3.18 or newer.
126 endef
127
128 $(eval $(call KernelPackage,geneve))
129
130
131 define KernelPackage/capi
132 SUBMENU:=$(NETWORK_SUPPORT_MENU)
133 TITLE:=CAPI (ISDN) Support
134 KCONFIG:= \
135 CONFIG_ISDN_CAPI \
136 CONFIG_ISDN_CAPI_CAPI20 \
137 CONFIG_ISDN_CAPIFS \
138 CONFIG_ISDN_CAPI_CAPIFS
139 FILES:= \
140 $(LINUX_DIR)/drivers/isdn/capi/kernelcapi.ko \
141 $(LINUX_DIR)/drivers/isdn/capi/capi.ko
142 AUTOLOAD:=$(call AutoLoad,30,kernelcapi capi)
143 endef
144
145 define KernelPackage/capi/description
146 Kernel module for basic CAPI (ISDN) support
147 endef
148
149 $(eval $(call KernelPackage,capi))
150
151 define KernelPackage/misdn
152 SUBMENU:=$(NETWORK_SUPPORT_MENU)
153 TITLE:=mISDN (ISDN) Support
154 KCONFIG:= \
155 CONFIG_ISDN=y \
156 CONFIG_MISDN \
157 CONFIG_MISDN_DSP \
158 CONFIG_MISDN_L1OIP
159 FILES:= \
160 $(LINUX_DIR)/drivers/isdn/mISDN/mISDN_core.ko \
161 $(LINUX_DIR)/drivers/isdn/mISDN/mISDN_dsp.ko \
162 $(LINUX_DIR)/drivers/isdn/mISDN/l1oip.ko
163 AUTOLOAD:=$(call AutoLoad,30,mISDN_core mISDN_dsp l1oip)
164 endef
165
166 define KernelPackage/misdn/description
167 Modular ISDN driver support
168 endef
169
170 $(eval $(call KernelPackage,misdn))
171
172
173 define KernelPackage/isdn4linux
174 SUBMENU:=$(NETWORK_SUPPORT_MENU)
175 TITLE:=Old ISDN4Linux (deprecated)
176 DEPENDS:=+kmod-ppp
177 KCONFIG:= \
178 CONFIG_ISDN=y \
179 CONFIG_ISDN_I4L \
180 CONFIG_ISDN_PPP=y \
181 CONFIG_ISDN_PPP_VJ=y \
182 CONFIG_ISDN_MPP=y \
183 CONFIG_IPPP_FILTER=y \
184 CONFIG_ISDN_PPP_BSDCOMP \
185 CONFIG_ISDN_CAPI_MIDDLEWARE=y \
186 CONFIG_ISDN_CAPI_CAPIFS_BOOL=y \
187 CONFIG_ISDN_AUDIO=y \
188 CONFIG_ISDN_TTY_FAX=y \
189 CONFIG_ISDN_X25=y \
190 CONFIG_ISDN_DIVERSION
191 FILES:= \
192 $(LINUX_DIR)/drivers/isdn/divert/dss1_divert.ko \
193 $(LINUX_DIR)/drivers/isdn/i4l/isdn.ko \
194 $(LINUX_DIR)/drivers/isdn/i4l/isdn_bsdcomp.ko
195 AUTOLOAD:=$(call AutoLoad,40,isdn isdn_bsdcomp dss1_divert)
196 endef
197
198 define KernelPackage/isdn4linux/description
199 This driver allows you to use an ISDN adapter for networking
200 endef
201
202 $(eval $(call KernelPackage,isdn4linux))
203
204
205 define KernelPackage/ipip
206 SUBMENU:=$(NETWORK_SUPPORT_MENU)
207 TITLE:=IP-in-IP encapsulation
208 DEPENDS:=+kmod-iptunnel +kmod-iptunnel4
209 KCONFIG:=CONFIG_NET_IPIP
210 FILES:=$(LINUX_DIR)/net/ipv4/ipip.ko
211 AUTOLOAD:=$(call AutoLoad,32,ipip)
212 endef
213
214 define KernelPackage/ipip/description
215 Kernel modules for IP-in-IP encapsulation
216 endef
217
218 $(eval $(call KernelPackage,ipip))
219
220
221 IPSEC-m:= \
222 xfrm/xfrm_algo \
223 xfrm/xfrm_ipcomp \
224 xfrm/xfrm_user \
225 key/af_key \
226
227 define KernelPackage/ipsec
228 SUBMENU:=$(NETWORK_SUPPORT_MENU)
229 TITLE:=IPsec related modules (IPv4 and IPv6)
230 DEPENDS:= \
231 +kmod-crypto-authenc +kmod-crypto-cbc +kmod-crypto-deflate \
232 +kmod-crypto-des +kmod-crypto-echainiv +kmod-crypto-hmac \
233 +kmod-crypto-iv +kmod-crypto-md5 +kmod-crypto-sha1
234 KCONFIG:= \
235 CONFIG_NET_KEY \
236 CONFIG_XFRM_USER \
237 CONFIG_INET_IPCOMP \
238 CONFIG_XFRM_IPCOMP
239 FILES:=$(foreach mod,$(IPSEC-m),$(LINUX_DIR)/net/$(mod).ko)
240 AUTOLOAD:=$(call AutoLoad,30,$(notdir $(IPSEC-m)))
241 endef
242
243 define KernelPackage/ipsec/description
244 Kernel modules for IPsec support in both IPv4 and IPv6.
245 Includes:
246 - af_key
247 - xfrm_algo
248 - xfrm_ipcomp
249 - xfrm_user
250 endef
251
252 $(eval $(call KernelPackage,ipsec))
253
254
255 IPSEC4-m:= \
256 ipv4/ah4 \
257 ipv4/esp4 \
258 ipv4/xfrm4_mode_beet \
259 ipv4/xfrm4_mode_transport \
260 ipv4/xfrm4_mode_tunnel \
261 ipv4/xfrm4_tunnel \
262 ipv4/ipcomp \
263
264 define KernelPackage/ipsec4
265 SUBMENU:=$(NETWORK_SUPPORT_MENU)
266 TITLE:=IPsec related modules (IPv4)
267 DEPENDS:=kmod-ipsec +kmod-iptunnel4
268 KCONFIG:= \
269 CONFIG_INET_AH \
270 CONFIG_INET_ESP \
271 CONFIG_INET_IPCOMP \
272 CONFIG_INET_XFRM_MODE_BEET \
273 CONFIG_INET_XFRM_MODE_TRANSPORT \
274 CONFIG_INET_XFRM_MODE_TUNNEL \
275 CONFIG_INET_XFRM_TUNNEL \
276 CONFIG_INET_ESP_OFFLOAD=n
277 FILES:=$(foreach mod,$(IPSEC4-m),$(LINUX_DIR)/net/$(mod).ko)
278 AUTOLOAD:=$(call AutoLoad,32,$(notdir $(IPSEC4-m)))
279 endef
280
281 define KernelPackage/ipsec4/description
282 Kernel modules for IPsec support in IPv4.
283 Includes:
284 - ah4
285 - esp4
286 - ipcomp4
287 - xfrm4_mode_beet
288 - xfrm4_mode_transport
289 - xfrm4_mode_tunnel
290 - xfrm4_tunnel
291 endef
292
293 $(eval $(call KernelPackage,ipsec4))
294
295
296 IPSEC6-m:= \
297 ipv6/ah6 \
298 ipv6/esp6 \
299 ipv6/xfrm6_mode_beet \
300 ipv6/xfrm6_mode_transport \
301 ipv6/xfrm6_mode_tunnel \
302 ipv6/xfrm6_tunnel \
303 ipv6/ipcomp6 \
304
305 define KernelPackage/ipsec6
306 SUBMENU:=$(NETWORK_SUPPORT_MENU)
307 TITLE:=IPsec related modules (IPv6)
308 DEPENDS:=kmod-ipsec +kmod-iptunnel6
309 KCONFIG:= \
310 CONFIG_INET6_AH \
311 CONFIG_INET6_ESP \
312 CONFIG_INET6_IPCOMP \
313 CONFIG_INET6_XFRM_MODE_BEET \
314 CONFIG_INET6_XFRM_MODE_TRANSPORT \
315 CONFIG_INET6_XFRM_MODE_TUNNEL \
316 CONFIG_INET6_XFRM_TUNNEL \
317 CONFIG_INET6_ESP_OFFLOAD=n
318 FILES:=$(foreach mod,$(IPSEC6-m),$(LINUX_DIR)/net/$(mod).ko)
319 AUTOLOAD:=$(call AutoLoad,32,$(notdir $(IPSEC6-m)))
320 endef
321
322 define KernelPackage/ipsec6/description
323 Kernel modules for IPsec support in IPv6.
324 Includes:
325 - ah6
326 - esp6
327 - ipcomp6
328 - xfrm6_mode_beet
329 - xfrm6_mode_transport
330 - xfrm6_mode_tunnel
331 - xfrm6_tunnel
332 endef
333
334 $(eval $(call KernelPackage,ipsec6))
335
336
337 define KernelPackage/iptunnel
338 SUBMENU:=$(NETWORK_SUPPORT_MENU)
339 TITLE:=IP tunnel support
340 HIDDEN:=1
341 KCONFIG:= \
342 CONFIG_NET_IP_TUNNEL
343 FILES:=$(LINUX_DIR)/net/ipv4/ip_tunnel.ko
344 AUTOLOAD:=$(call AutoLoad,31,ip_tunnel)
345 endef
346
347 define KernelPackage/iptunnel/description
348 Kernel module for generic IP tunnel support
349 endef
350
351 $(eval $(call KernelPackage,iptunnel))
352
353
354 define KernelPackage/ip-vti
355 SUBMENU:=$(NETWORK_SUPPORT_MENU)
356 TITLE:=IP VTI (Virtual Tunnel Interface)
357 DEPENDS:=+kmod-iptunnel +kmod-iptunnel4 +kmod-ipsec4
358 KCONFIG:=CONFIG_NET_IPVTI
359 FILES:=$(LINUX_DIR)/net/ipv4/ip_vti.ko
360 AUTOLOAD:=$(call AutoLoad,33,ip_vti)
361 endef
362
363 define KernelPackage/ip-vti/description
364 Kernel modules for IP VTI (Virtual Tunnel Interface)
365 endef
366
367 $(eval $(call KernelPackage,ip-vti))
368
369
370 define KernelPackage/ip6-vti
371 SUBMENU:=$(NETWORK_SUPPORT_MENU)
372 TITLE:=IPv6 VTI (Virtual Tunnel Interface)
373 DEPENDS:=+kmod-iptunnel +kmod-ip6-tunnel +kmod-ipsec6
374 KCONFIG:=CONFIG_IPV6_VTI
375 FILES:=$(LINUX_DIR)/net/ipv6/ip6_vti.ko
376 AUTOLOAD:=$(call AutoLoad,33,ip6_vti)
377 endef
378
379 define KernelPackage/ip6-vti/description
380 Kernel modules for IPv6 VTI (Virtual Tunnel Interface)
381 endef
382
383 $(eval $(call KernelPackage,ip6-vti))
384
385
386 define KernelPackage/iptunnel4
387 SUBMENU:=$(NETWORK_SUPPORT_MENU)
388 TITLE:=IPv4 tunneling
389 HIDDEN:=1
390 KCONFIG:= \
391 CONFIG_INET_TUNNEL \
392 CONFIG_NET_IPIP=m
393 FILES:=$(LINUX_DIR)/net/ipv4/tunnel4.ko
394 AUTOLOAD:=$(call AutoLoad,31,tunnel4)
395 endef
396
397 define KernelPackage/iptunnel4/description
398 Kernel modules for IPv4 tunneling
399 endef
400
401 $(eval $(call KernelPackage,iptunnel4))
402
403
404 define KernelPackage/iptunnel6
405 SUBMENU:=$(NETWORK_SUPPORT_MENU)
406 TITLE:=IPv6 tunneling
407 DEPENDS:=@IPV6
408 KCONFIG:= \
409 CONFIG_INET6_TUNNEL
410 FILES:=$(LINUX_DIR)/net/ipv6/tunnel6.ko
411 AUTOLOAD:=$(call AutoLoad,31,tunnel6)
412 endef
413
414 define KernelPackage/iptunnel6/description
415 Kernel modules for IPv6 tunneling
416 endef
417
418 $(eval $(call KernelPackage,iptunnel6))
419
420
421 define KernelPackage/sit
422 SUBMENU:=$(NETWORK_SUPPORT_MENU)
423 DEPENDS:=@IPV6 +kmod-iptunnel +kmod-iptunnel4
424 TITLE:=IPv6-in-IPv4 tunnel
425 KCONFIG:=CONFIG_IPV6_SIT \
426 CONFIG_IPV6_SIT_6RD=y
427 FILES:=$(LINUX_DIR)/net/ipv6/sit.ko
428 AUTOLOAD:=$(call AutoLoad,32,sit)
429 endef
430
431 define KernelPackage/sit/description
432 Kernel modules for IPv6-in-IPv4 tunnelling
433 endef
434
435 $(eval $(call KernelPackage,sit))
436
437
438 define KernelPackage/fou
439 SUBMENU:=$(NETWORK_SUPPORT_MENU)
440 TITLE:=FOU and GUE decapsulation
441 DEPENDS:= \
442 +kmod-iptunnel \
443 +kmod-udptunnel4 \
444 +IPV6:kmod-udptunnel6
445 KCONFIG:= \
446 CONFIG_NET_FOU \
447 CONFIG_NET_FOU_IP_TUNNELS=y
448 FILES:=$(LINUX_DIR)/net/ipv4/fou.ko
449 AUTOLOAD:=$(call AutoProbe,fou)
450 endef
451
452 define KernelPackage/fou/description
453 Kernel module for FOU (Foo over UDP) and GUE (Generic UDP Encapsulation) tunnelling.
454 Requires Kernel 3.18 or newer.
455 endef
456
457 $(eval $(call KernelPackage,fou))
458
459
460 define KernelPackage/ip6-tunnel
461 SUBMENU:=$(NETWORK_SUPPORT_MENU)
462 TITLE:=IP-in-IPv6 tunnelling
463 DEPENDS:=@IPV6 +kmod-iptunnel6
464 KCONFIG:= CONFIG_IPV6_TUNNEL
465 FILES:=$(LINUX_DIR)/net/ipv6/ip6_tunnel.ko
466 AUTOLOAD:=$(call AutoLoad,32,ip6_tunnel)
467 endef
468
469 define KernelPackage/ip6-tunnel/description
470 Kernel modules for IPv6-in-IPv6 and IPv4-in-IPv6 tunnelling
471 endef
472
473 $(eval $(call KernelPackage,ip6-tunnel))
474
475
476 define KernelPackage/gre
477 SUBMENU:=$(NETWORK_SUPPORT_MENU)
478 TITLE:=GRE support
479 DEPENDS:=+kmod-iptunnel
480 KCONFIG:=CONFIG_NET_IPGRE CONFIG_NET_IPGRE_DEMUX
481 FILES:=$(LINUX_DIR)/net/ipv4/ip_gre.ko $(LINUX_DIR)/net/ipv4/gre.ko
482 AUTOLOAD:=$(call AutoLoad,39,gre ip_gre)
483 endef
484
485 define KernelPackage/gre/description
486 Generic Routing Encapsulation support
487 endef
488
489 $(eval $(call KernelPackage,gre))
490
491
492 define KernelPackage/gre6
493 SUBMENU:=$(NETWORK_SUPPORT_MENU)
494 TITLE:=GRE support over IPV6
495 DEPENDS:=@IPV6 +kmod-iptunnel +kmod-ip6-tunnel +kmod-gre
496 KCONFIG:=CONFIG_IPV6_GRE
497 FILES:=$(LINUX_DIR)/net/ipv6/ip6_gre.ko
498 AUTOLOAD:=$(call AutoLoad,39,ip6_gre)
499 endef
500
501 define KernelPackage/gre6/description
502 Generic Routing Encapsulation support over IPv6
503 endef
504
505 $(eval $(call KernelPackage,gre6))
506
507
508 define KernelPackage/tun
509 SUBMENU:=$(NETWORK_SUPPORT_MENU)
510 TITLE:=Universal TUN/TAP driver
511 KCONFIG:=CONFIG_TUN
512 FILES:=$(LINUX_DIR)/drivers/net/tun.ko
513 AUTOLOAD:=$(call AutoLoad,30,tun)
514 endef
515
516 define KernelPackage/tun/description
517 Kernel support for the TUN/TAP tunneling device
518 endef
519
520 $(eval $(call KernelPackage,tun))
521
522
523 define KernelPackage/veth
524 SUBMENU:=$(NETWORK_SUPPORT_MENU)
525 TITLE:=Virtual ethernet pair device
526 KCONFIG:=CONFIG_VETH
527 FILES:=$(LINUX_DIR)/drivers/net/veth.ko
528 AUTOLOAD:=$(call AutoLoad,30,veth)
529 endef
530
531 define KernelPackage/veth/description
532 This device is a local ethernet tunnel. Devices are created in pairs.
533 When one end receives the packet it appears on its pair and vice
534 versa.
535 endef
536
537 $(eval $(call KernelPackage,veth))
538
539
540 define KernelPackage/slhc
541 SUBMENU:=$(NETWORK_SUPPORT_MENU)
542 HIDDEN:=1
543 TITLE:=Serial Line Header Compression
544 DEPENDS:=+kmod-lib-crc-ccitt
545 KCONFIG:=CONFIG_SLHC
546 FILES:=$(LINUX_DIR)/drivers/net/slip/slhc.ko
547 endef
548
549 $(eval $(call KernelPackage,slhc))
550
551
552 define KernelPackage/ppp
553 SUBMENU:=$(NETWORK_SUPPORT_MENU)
554 TITLE:=PPP modules
555 DEPENDS:=+kmod-lib-crc-ccitt +kmod-slhc
556 KCONFIG:= \
557 CONFIG_PPP \
558 CONFIG_PPP_ASYNC
559 FILES:= \
560 $(LINUX_DIR)/drivers/net/ppp/ppp_async.ko \
561 $(LINUX_DIR)/drivers/net/ppp/ppp_generic.ko
562 AUTOLOAD:=$(call AutoProbe,ppp_async)
563 endef
564
565 define KernelPackage/ppp/description
566 Kernel modules for PPP support
567 endef
568
569 $(eval $(call KernelPackage,ppp))
570
571
572 define KernelPackage/ppp-synctty
573 SUBMENU:=$(NETWORK_SUPPORT_MENU)
574 TITLE:=PPP sync tty support
575 DEPENDS:=kmod-ppp
576 KCONFIG:=CONFIG_PPP_SYNC_TTY
577 FILES:=$(LINUX_DIR)/drivers/net/ppp/ppp_synctty.ko
578 AUTOLOAD:=$(call AutoProbe,ppp_synctty)
579 endef
580
581 define KernelPackage/ppp-synctty/description
582 Kernel modules for PPP sync tty support
583 endef
584
585 $(eval $(call KernelPackage,ppp-synctty))
586
587
588 define KernelPackage/pppox
589 SUBMENU:=$(NETWORK_SUPPORT_MENU)
590 TITLE:=PPPoX helper
591 DEPENDS:=kmod-ppp
592 KCONFIG:=CONFIG_PPPOE
593 FILES:=$(LINUX_DIR)/drivers/net/ppp/pppox.ko
594 endef
595
596 define KernelPackage/pppox/description
597 Kernel helper module for PPPoE and PPTP support
598 endef
599
600 $(eval $(call KernelPackage,pppox))
601
602
603 define KernelPackage/pppoe
604 SUBMENU:=$(NETWORK_SUPPORT_MENU)
605 TITLE:=PPPoE support
606 DEPENDS:=kmod-ppp +kmod-pppox
607 KCONFIG:=CONFIG_PPPOE
608 FILES:=$(LINUX_DIR)/drivers/net/ppp/pppoe.ko
609 AUTOLOAD:=$(call AutoProbe,pppoe)
610 endef
611
612 define KernelPackage/pppoe/description
613 Kernel module for PPPoE (PPP over Ethernet) support
614 endef
615
616 $(eval $(call KernelPackage,pppoe))
617
618
619 define KernelPackage/pppoa
620 SUBMENU:=$(NETWORK_SUPPORT_MENU)
621 TITLE:=PPPoA support
622 DEPENDS:=kmod-ppp +kmod-atm
623 KCONFIG:=CONFIG_PPPOATM CONFIG_ATM_DRIVERS=y
624 FILES:=$(LINUX_DIR)/net/atm/pppoatm.ko
625 AUTOLOAD:=$(call AutoLoad,40,pppoatm)
626 endef
627
628 define KernelPackage/pppoa/description
629 Kernel modules for PPPoA (PPP over ATM) support
630 endef
631
632 $(eval $(call KernelPackage,pppoa))
633
634
635 define KernelPackage/pptp
636 SUBMENU:=$(NETWORK_SUPPORT_MENU)
637 TITLE:=PPtP support
638 DEPENDS:=kmod-ppp +kmod-gre +kmod-pppox
639 KCONFIG:=CONFIG_PPTP
640 FILES:=$(LINUX_DIR)/drivers/net/ppp/pptp.ko
641 AUTOLOAD:=$(call AutoProbe,pptp)
642 endef
643
644 $(eval $(call KernelPackage,pptp))
645
646
647 define KernelPackage/pppol2tp
648 SUBMENU:=$(NETWORK_SUPPORT_MENU)
649 TITLE:=PPPoL2TP support
650 DEPENDS:=kmod-ppp +kmod-pppox +kmod-l2tp
651 KCONFIG:=CONFIG_PPPOL2TP
652 FILES:=$(LINUX_DIR)/net/l2tp/l2tp_ppp.ko
653 AUTOLOAD:=$(call AutoProbe,l2tp_ppp)
654 endef
655
656 define KernelPackage/pppol2tp/description
657 Kernel modules for PPPoL2TP (PPP over L2TP) support
658 endef
659
660 $(eval $(call KernelPackage,pppol2tp))
661
662
663 define KernelPackage/ipoa
664 SUBMENU:=$(NETWORK_SUPPORT_MENU)
665 TITLE:=IPoA support
666 DEPENDS:=kmod-atm
667 KCONFIG:=CONFIG_ATM_CLIP
668 FILES:=$(LINUX_DIR)/net/atm/clip.ko
669 AUTOLOAD:=$(call AutoProbe,clip)
670 endef
671
672 define KernelPackage/ipoa/description
673 Kernel modules for IPoA (IP over ATM) support
674 endef
675
676 $(eval $(call KernelPackage,ipoa))
677
678
679 define KernelPackage/mppe
680 SUBMENU:=$(NETWORK_SUPPORT_MENU)
681 TITLE:=Microsoft PPP compression/encryption
682 DEPENDS:=kmod-ppp +kmod-crypto-sha1 +kmod-crypto-ecb
683 KCONFIG:= \
684 CONFIG_PPP_MPPE_MPPC \
685 CONFIG_PPP_MPPE
686 FILES:=$(LINUX_DIR)/drivers/net/ppp/ppp_mppe.ko
687 AUTOLOAD:=$(call AutoProbe,ppp_mppe)
688 endef
689
690 define KernelPackage/mppe/description
691 Kernel modules for Microsoft PPP compression/encryption
692 endef
693
694 $(eval $(call KernelPackage,mppe))
695
696
697 SCHED_MODULES = $(patsubst $(LINUX_DIR)/net/sched/%.ko,%,$(wildcard $(LINUX_DIR)/net/sched/*.ko))
698 SCHED_MODULES_CORE = sch_ingress sch_fq_codel sch_hfsc sch_htb sch_tbf cls_fw cls_route cls_flow cls_tcindex cls_u32 em_u32 act_mirred act_skbedit
699 SCHED_MODULES_FILTER = $(SCHED_MODULES_CORE) act_connmark sch_netem
700 SCHED_MODULES_EXTRA = $(filter-out $(SCHED_MODULES_FILTER),$(SCHED_MODULES))
701 SCHED_FILES = $(patsubst %,$(LINUX_DIR)/net/sched/%.ko,$(filter $(SCHED_MODULES_CORE),$(SCHED_MODULES)))
702 SCHED_FILES_EXTRA = $(patsubst %,$(LINUX_DIR)/net/sched/%.ko,$(SCHED_MODULES_EXTRA))
703
704 define KernelPackage/sched-core
705 SUBMENU:=$(NETWORK_SUPPORT_MENU)
706 TITLE:=Traffic schedulers
707 KCONFIG:= \
708 CONFIG_NET_SCHED=y \
709 CONFIG_NET_SCH_HFSC \
710 CONFIG_NET_SCH_HTB \
711 CONFIG_NET_SCH_TBF \
712 CONFIG_NET_SCH_INGRESS \
713 CONFIG_NET_SCH_FQ_CODEL \
714 CONFIG_NET_CLS=y \
715 CONFIG_NET_CLS_ACT=y \
716 CONFIG_NET_CLS_FLOW \
717 CONFIG_NET_CLS_FW \
718 CONFIG_NET_CLS_ROUTE4 \
719 CONFIG_NET_CLS_TCINDEX \
720 CONFIG_NET_CLS_U32 \
721 CONFIG_NET_ACT_MIRRED \
722 CONFIG_NET_ACT_SKBEDIT \
723 CONFIG_NET_EMATCH=y \
724 CONFIG_NET_EMATCH_U32
725 FILES:=$(SCHED_FILES)
726 AUTOLOAD:=$(call AutoLoad,70, $(SCHED_MODULES_CORE))
727 endef
728
729 define KernelPackage/sched-core/description
730 Core kernel scheduler support for IP traffic
731 endef
732
733 $(eval $(call KernelPackage,sched-core))
734
735
736 define KernelPackage/sched-connmark
737 SUBMENU:=$(NETWORK_SUPPORT_MENU)
738 TITLE:=Traffic shaper conntrack mark support
739 DEPENDS:=+kmod-sched-core +kmod-ipt-core +kmod-ipt-conntrack-extra
740 KCONFIG:=CONFIG_NET_ACT_CONNMARK
741 FILES:=$(LINUX_DIR)/net/sched/act_connmark.ko
742 AUTOLOAD:=$(call AutoLoad,71, act_connmark)
743 endef
744 $(eval $(call KernelPackage,sched-connmark))
745
746 define KernelPackage/sched
747 SUBMENU:=$(NETWORK_SUPPORT_MENU)
748 TITLE:=Extra traffic schedulers
749 DEPENDS:=+kmod-sched-core +kmod-ipt-core
750 KCONFIG:= \
751 CONFIG_NET_SCH_CODEL \
752 CONFIG_NET_SCH_DSMARK \
753 CONFIG_NET_SCH_FIFO \
754 CONFIG_NET_SCH_GRED \
755 CONFIG_NET_SCH_MULTIQ \
756 CONFIG_NET_SCH_PRIO \
757 CONFIG_NET_SCH_RED \
758 CONFIG_NET_SCH_SFQ \
759 CONFIG_NET_SCH_TEQL \
760 CONFIG_NET_SCH_FQ \
761 CONFIG_NET_SCH_PIE \
762 CONFIG_NET_CLS_BASIC \
763 CONFIG_NET_ACT_POLICE \
764 CONFIG_NET_ACT_IPT \
765 CONFIG_NET_EMATCH_CMP \
766 CONFIG_NET_EMATCH_NBYTE \
767 CONFIG_NET_EMATCH_META \
768 CONFIG_NET_EMATCH_TEXT
769 FILES:=$(SCHED_FILES_EXTRA)
770 AUTOLOAD:=$(call AutoLoad,73, $(SCHED_MODULES_EXTRA))
771 endef
772
773 define KernelPackage/sched/description
774 Extra kernel schedulers modules for IP traffic
775 endef
776
777 $(eval $(call KernelPackage,sched))
778
779
780 define KernelPackage/ax25
781 SUBMENU:=$(NETWORK_SUPPORT_MENU)
782 TITLE:=AX25 support
783 DEPENDS:=+kmod-lib-crc16
784 KCONFIG:= \
785 CONFIG_HAMRADIO=y \
786 CONFIG_AX25 \
787 CONFIG_MKISS
788 FILES:= \
789 $(LINUX_DIR)/net/ax25/ax25.ko \
790 $(LINUX_DIR)/drivers/net/hamradio/mkiss.ko
791 AUTOLOAD:=$(call AutoLoad,80,ax25 mkiss)
792 endef
793
794 define KernelPackage/ax25/description
795 Kernel modules for AX25 support
796 endef
797
798 $(eval $(call KernelPackage,ax25))
799
800
801 define KernelPackage/pktgen
802 SUBMENU:=$(NETWORK_SUPPORT_MENU)
803 DEPENDS:=@!TARGET_uml
804 TITLE:=Network packet generator
805 KCONFIG:=CONFIG_NET_PKTGEN
806 FILES:=$(LINUX_DIR)/net/core/pktgen.ko
807 AUTOLOAD:=$(call AutoLoad,99,pktgen)
808 endef
809
810 define KernelPackage/pktgen/description
811 Kernel modules for the Network Packet Generator
812 endef
813
814 $(eval $(call KernelPackage,pktgen))
815
816 define KernelPackage/l2tp
817 SUBMENU:=$(NETWORK_SUPPORT_MENU)
818 TITLE:=Layer Two Tunneling Protocol (L2TP)
819 DEPENDS:= \
820 +kmod-udptunnel4 \
821 +IPV6:kmod-udptunnel6
822 KCONFIG:=CONFIG_L2TP \
823 CONFIG_L2TP_V3=y \
824 CONFIG_L2TP_DEBUGFS=n
825 FILES:=$(LINUX_DIR)/net/l2tp/l2tp_core.ko \
826 $(LINUX_DIR)/net/l2tp/l2tp_netlink.ko
827 AUTOLOAD:=$(call AutoLoad,32,l2tp_core l2tp_netlink)
828 endef
829
830 define KernelPackage/l2tp/description
831 Kernel modules for L2TP V3 Support
832 endef
833
834 $(eval $(call KernelPackage,l2tp))
835
836
837 define KernelPackage/l2tp-eth
838 SUBMENU:=$(NETWORK_SUPPORT_MENU)
839 TITLE:=L2TP ethernet pseudowire support for L2TPv3
840 DEPENDS:=+kmod-l2tp
841 KCONFIG:=CONFIG_L2TP_ETH
842 FILES:=$(LINUX_DIR)/net/l2tp/l2tp_eth.ko
843 AUTOLOAD:=$(call AutoLoad,33,l2tp_eth)
844 endef
845
846 define KernelPackage/l2tp-eth/description
847 Kernel modules for L2TP ethernet pseudowire support for L2TPv3
848 endef
849
850 $(eval $(call KernelPackage,l2tp-eth))
851
852 define KernelPackage/l2tp-ip
853 SUBMENU:=$(NETWORK_SUPPORT_MENU)
854 TITLE:=L2TP IP encapsulation for L2TPv3
855 DEPENDS:=+kmod-l2tp
856 KCONFIG:=CONFIG_L2TP_IP
857 FILES:= \
858 $(LINUX_DIR)/net/l2tp/l2tp_ip.ko \
859 $(if $(CONFIG_IPV6),$(LINUX_DIR)/net/l2tp/l2tp_ip6.ko)
860 AUTOLOAD:=$(call AutoLoad,33,l2tp_ip $(if $(CONFIG_IPV6),l2tp_ip6))
861 endef
862
863 define KernelPackage/l2tp-ip/description
864 Kernel modules for L2TP IP encapsulation for L2TPv3
865 endef
866
867 $(eval $(call KernelPackage,l2tp-ip))
868
869
870 define KernelPackage/sctp
871 SUBMENU:=$(NETWORK_SUPPORT_MENU)
872 TITLE:=SCTP protocol kernel support
873 KCONFIG:=\
874 CONFIG_IP_SCTP \
875 CONFIG_SCTP_DBG_MSG=n \
876 CONFIG_SCTP_DBG_OBJCNT=n \
877 CONFIG_SCTP_HMAC_NONE=n \
878 CONFIG_SCTP_HMAC_SHA1=n \
879 CONFIG_SCTP_HMAC_MD5=y \
880 CONFIG_SCTP_COOKIE_HMAC_SHA1=n \
881 CONFIG_SCTP_COOKIE_HMAC_MD5=y \
882 CONFIG_SCTP_DEFAULT_COOKIE_HMAC_NONE=n \
883 CONFIG_SCTP_DEFAULT_COOKIE_HMAC_SHA1=n \
884 CONFIG_SCTP_DEFAULT_COOKIE_HMAC_MD5=y
885 FILES:= $(LINUX_DIR)/net/sctp/sctp.ko
886 AUTOLOAD:= $(call AutoLoad,32,sctp)
887 DEPENDS:=+kmod-lib-crc32c +kmod-crypto-md5 +kmod-crypto-hmac
888 endef
889
890 define KernelPackage/sctp/description
891 Kernel modules for SCTP protocol support
892 endef
893
894 $(eval $(call KernelPackage,sctp))
895
896
897 define KernelPackage/netem
898 SUBMENU:=$(NETWORK_SUPPORT_MENU)
899 TITLE:=Network emulation functionality
900 DEPENDS:=+kmod-sched
901 KCONFIG:=CONFIG_NET_SCH_NETEM
902 FILES:=$(LINUX_DIR)/net/sched/sch_netem.ko
903 AUTOLOAD:=$(call AutoLoad,99,netem)
904 endef
905
906 define KernelPackage/netem/description
907 Kernel modules for emulating the properties of wide area networks
908 endef
909
910 $(eval $(call KernelPackage,netem))
911
912 define KernelPackage/slip
913 SUBMENU:=$(NETWORK_SUPPORT_MENU)
914 DEPENDS:=+kmod-slhc
915 TITLE:=SLIP modules
916 KCONFIG:= \
917 CONFIG_SLIP \
918 CONFIG_SLIP_COMPRESSED=y \
919 CONFIG_SLIP_SMART=y \
920 CONFIG_SLIP_MODE_SLIP6=y
921
922 FILES:= \
923 $(LINUX_DIR)/drivers/net/slip/slip.ko
924 AUTOLOAD:=$(call AutoLoad,30,slip)
925 endef
926
927 define KernelPackage/slip/description
928 Kernel modules for SLIP support
929 endef
930
931 $(eval $(call KernelPackage,slip))
932
933 define KernelPackage/dnsresolver
934 SUBMENU:=$(NETWORK_SUPPORT_MENU)
935 TITLE:=In-kernel DNS Resolver
936 KCONFIG:= CONFIG_DNS_RESOLVER
937 FILES:=$(LINUX_DIR)/net/dns_resolver/dns_resolver.ko
938 AUTOLOAD:=$(call AutoLoad,30,dns_resolver)
939 endef
940
941 $(eval $(call KernelPackage,dnsresolver))
942
943 define KernelPackage/rxrpc
944 SUBMENU:=$(NETWORK_SUPPORT_MENU)
945 TITLE:=AF_RXRPC support
946 HIDDEN:=1
947 KCONFIG:= \
948 CONFIG_AF_RXRPC \
949 CONFIG_RXKAD=m \
950 CONFIG_AF_RXRPC_DEBUG=n
951 FILES:= \
952 $(LINUX_DIR)/net/rxrpc/af-rxrpc.ko@lt4.11 \
953 $(LINUX_DIR)/net/rxrpc/rxrpc.ko@ge4.11 \
954 $(LINUX_DIR)/net/rxrpc/rxkad.ko@lt4.7
955 AUTOLOAD:=$(call AutoLoad,30,rxkad@lt4.7 af-rxrpc.ko@lt4.11 rxrpc.ko@ge4.11)
956 DEPENDS:= +kmod-crypto-manager +kmod-crypto-pcbc +kmod-crypto-fcrypt
957 endef
958
959 define KernelPackage/rxrpc/description
960 Kernel support for AF_RXRPC; required for AFS client
961 endef
962
963 $(eval $(call KernelPackage,rxrpc))
964
965 define KernelPackage/mpls
966 SUBMENU:=$(NETWORK_SUPPORT_MENU)
967 TITLE:=MPLS support
968 DEPENDS:=@!(LINUX_3_18||LINUX_4_1)
969 KCONFIG:= \
970 CONFIG_MPLS=y \
971 CONFIG_LWTUNNEL=y \
972 CONFIG_LWTUNNEL_BPF=n \
973 CONFIG_NET_MPLS_GSO=m \
974 CONFIG_MPLS_ROUTING=m \
975 CONFIG_MPLS_IPTUNNEL=m
976 FILES:= \
977 $(LINUX_DIR)/net/mpls/mpls_gso.ko \
978 $(LINUX_DIR)/net/mpls/mpls_iptunnel.ko \
979 $(LINUX_DIR)/net/mpls/mpls_router.ko
980 AUTOLOAD:=$(call AutoLoad,30,mpls_router mpls_iptunnel mpls_gso)
981 endef
982
983 define KernelPackage/mpls/description
984 Kernel support for MPLS
985 endef
986
987 $(eval $(call KernelPackage,mpls))
988
989 define KernelPackage/9pnet
990 SUBMENU:=$(NETWORK_SUPPORT_MENU)
991 TITLE:=Plan 9 Resource Sharing Support (9P2000)
992 DEPENDS:=@VIRTIO_SUPPORT
993 KCONFIG:= \
994 CONFIG_NET_9P \
995 CONFIG_NET_9P_DEBUG=n \
996 CONFIG_NET_9P_XEN=n \
997 CONFIG_NET_9P_VIRTIO
998 FILES:= \
999 $(LINUX_DIR)/net/9p/9pnet.ko \
1000 $(LINUX_DIR)/net/9p/9pnet_virtio.ko
1001 AUTOLOAD:=$(call AutoLoad,29,9pnet 9pnet_virtio)
1002 endef
1003
1004 define KernelPackage/9pnet/description
1005 Kernel support support for
1006 Plan 9 resource sharing via the 9P2000 protocol.
1007 endef
1008
1009 $(eval $(call KernelPackage,9pnet))
1010
1011
1012 define KernelPackage/nlmon
1013 SUBMENU:=$(NETWORK_SUPPORT_MENU)
1014 TITLE:=Virtual netlink monitoring device
1015 KCONFIG:=CONFIG_NLMON
1016 FILES:=$(LINUX_DIR)/drivers/net/nlmon.ko
1017 AUTOLOAD:=$(call AutoProbe,nlmon)
1018 endef
1019
1020 define KernelPackage/nlmon/description
1021 Kernel module which adds a monitoring device for netlink.
1022 endef
1023
1024 $(eval $(call KernelPackage,nlmon))
1025
1026
1027 define KernelPackage/mdio
1028 SUBMENU:=$(NETWORK_SUPPORT_MENU)
1029 TITLE:=MDIO (clause 45) PHY support
1030 KCONFIG:=CONFIG_MDIO
1031 HIDDEN:=1
1032 FILES:=$(LINUX_DIR)/drivers/net/mdio.ko
1033 AUTOLOAD:=$(call AutoLoad,32,mdio)
1034 endef
1035
1036 define KernelPackage/mdio/description
1037 Kernel modules for MDIO (clause 45) PHY support
1038 endef
1039
1040 $(eval $(call KernelPackage,mdio))
1041
1042 define KernelPackage/macsec
1043 SUBMENU:=$(NETWORK_SUPPORT_MENU)
1044 TITLE:=IEEE 802.1AE MAC-level encryption (MAC)
1045 DEPENDS:=+kmod-crypto-gcm @!LINUX_3_18 @!LINUX_4_1 @!LINUX_4_4
1046 KCONFIG:=CONFIG_MACSEC
1047 FILES:=$(LINUX_DIR)/drivers/net/macsec.ko
1048 AUTOLOAD:=$(call AutoLoad,13,macsec)
1049 endef
1050
1051 define KernelPackage/macsec/description
1052 MACsec is an encryption standard for Ethernet.
1053 endef
1054
1055 $(eval $(call KernelPackage,macsec))