kernel/modules: add kmod-sched-bpf package
[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/fou6
461 SUBMENU:=$(NETWORK_SUPPORT_MENU)
462 TITLE:=FOU and GUE decapsulation over IPv6
463 DEPENDS:= @IPV6 \
464 +kmod-fou \
465 +kmod-ip6-tunnel
466 KCONFIG:= \
467 CONFIG_IPV6_FOU \
468 CONFIG_IPV6_FOU_TUNNEL
469 FILES:=$(LINUX_DIR)/net/ipv6/fou6.ko
470 AUTOLOAD:=$(call AutoProbe,fou6)
471 endef
472
473 define KernelPackage/fou6/description
474 Kernel module for FOU (Foo over UDP) and GUE (Generic UDP Encapsulation) tunnelling over IPv6.
475 Requires Kernel 3.18 or newer.
476 endef
477
478 $(eval $(call KernelPackage,fou6))
479
480
481 define KernelPackage/ip6-tunnel
482 SUBMENU:=$(NETWORK_SUPPORT_MENU)
483 TITLE:=IP-in-IPv6 tunnelling
484 DEPENDS:=@IPV6 +kmod-iptunnel6
485 KCONFIG:= CONFIG_IPV6_TUNNEL
486 FILES:=$(LINUX_DIR)/net/ipv6/ip6_tunnel.ko
487 AUTOLOAD:=$(call AutoLoad,32,ip6_tunnel)
488 endef
489
490 define KernelPackage/ip6-tunnel/description
491 Kernel modules for IPv6-in-IPv6 and IPv4-in-IPv6 tunnelling
492 endef
493
494 $(eval $(call KernelPackage,ip6-tunnel))
495
496
497 define KernelPackage/gre
498 SUBMENU:=$(NETWORK_SUPPORT_MENU)
499 TITLE:=GRE support
500 DEPENDS:=+kmod-iptunnel
501 KCONFIG:=CONFIG_NET_IPGRE CONFIG_NET_IPGRE_DEMUX
502 FILES:=$(LINUX_DIR)/net/ipv4/ip_gre.ko $(LINUX_DIR)/net/ipv4/gre.ko
503 AUTOLOAD:=$(call AutoLoad,39,gre ip_gre)
504 endef
505
506 define KernelPackage/gre/description
507 Generic Routing Encapsulation support
508 endef
509
510 $(eval $(call KernelPackage,gre))
511
512
513 define KernelPackage/gre6
514 SUBMENU:=$(NETWORK_SUPPORT_MENU)
515 TITLE:=GRE support over IPV6
516 DEPENDS:=@IPV6 +kmod-iptunnel +kmod-ip6-tunnel +kmod-gre
517 KCONFIG:=CONFIG_IPV6_GRE
518 FILES:=$(LINUX_DIR)/net/ipv6/ip6_gre.ko
519 AUTOLOAD:=$(call AutoLoad,39,ip6_gre)
520 endef
521
522 define KernelPackage/gre6/description
523 Generic Routing Encapsulation support over IPv6
524 endef
525
526 $(eval $(call KernelPackage,gre6))
527
528
529 define KernelPackage/tun
530 SUBMENU:=$(NETWORK_SUPPORT_MENU)
531 TITLE:=Universal TUN/TAP driver
532 KCONFIG:=CONFIG_TUN
533 FILES:=$(LINUX_DIR)/drivers/net/tun.ko
534 AUTOLOAD:=$(call AutoLoad,30,tun)
535 endef
536
537 define KernelPackage/tun/description
538 Kernel support for the TUN/TAP tunneling device
539 endef
540
541 $(eval $(call KernelPackage,tun))
542
543
544 define KernelPackage/veth
545 SUBMENU:=$(NETWORK_SUPPORT_MENU)
546 TITLE:=Virtual ethernet pair device
547 KCONFIG:=CONFIG_VETH
548 FILES:=$(LINUX_DIR)/drivers/net/veth.ko
549 AUTOLOAD:=$(call AutoLoad,30,veth)
550 endef
551
552 define KernelPackage/veth/description
553 This device is a local ethernet tunnel. Devices are created in pairs.
554 When one end receives the packet it appears on its pair and vice
555 versa.
556 endef
557
558 $(eval $(call KernelPackage,veth))
559
560
561 define KernelPackage/slhc
562 SUBMENU:=$(NETWORK_SUPPORT_MENU)
563 HIDDEN:=1
564 TITLE:=Serial Line Header Compression
565 DEPENDS:=+kmod-lib-crc-ccitt
566 KCONFIG:=CONFIG_SLHC
567 FILES:=$(LINUX_DIR)/drivers/net/slip/slhc.ko
568 endef
569
570 $(eval $(call KernelPackage,slhc))
571
572
573 define KernelPackage/ppp
574 SUBMENU:=$(NETWORK_SUPPORT_MENU)
575 TITLE:=PPP modules
576 DEPENDS:=+kmod-lib-crc-ccitt +kmod-slhc
577 KCONFIG:= \
578 CONFIG_PPP \
579 CONFIG_PPP_ASYNC
580 FILES:= \
581 $(LINUX_DIR)/drivers/net/ppp/ppp_async.ko \
582 $(LINUX_DIR)/drivers/net/ppp/ppp_generic.ko
583 AUTOLOAD:=$(call AutoProbe,ppp_async)
584 endef
585
586 define KernelPackage/ppp/description
587 Kernel modules for PPP support
588 endef
589
590 $(eval $(call KernelPackage,ppp))
591
592
593 define KernelPackage/ppp-synctty
594 SUBMENU:=$(NETWORK_SUPPORT_MENU)
595 TITLE:=PPP sync tty support
596 DEPENDS:=kmod-ppp
597 KCONFIG:=CONFIG_PPP_SYNC_TTY
598 FILES:=$(LINUX_DIR)/drivers/net/ppp/ppp_synctty.ko
599 AUTOLOAD:=$(call AutoProbe,ppp_synctty)
600 endef
601
602 define KernelPackage/ppp-synctty/description
603 Kernel modules for PPP sync tty support
604 endef
605
606 $(eval $(call KernelPackage,ppp-synctty))
607
608
609 define KernelPackage/pppox
610 SUBMENU:=$(NETWORK_SUPPORT_MENU)
611 TITLE:=PPPoX helper
612 DEPENDS:=kmod-ppp
613 KCONFIG:=CONFIG_PPPOE
614 FILES:=$(LINUX_DIR)/drivers/net/ppp/pppox.ko
615 endef
616
617 define KernelPackage/pppox/description
618 Kernel helper module for PPPoE and PPTP support
619 endef
620
621 $(eval $(call KernelPackage,pppox))
622
623
624 define KernelPackage/pppoe
625 SUBMENU:=$(NETWORK_SUPPORT_MENU)
626 TITLE:=PPPoE support
627 DEPENDS:=kmod-ppp +kmod-pppox
628 KCONFIG:=CONFIG_PPPOE
629 FILES:=$(LINUX_DIR)/drivers/net/ppp/pppoe.ko
630 AUTOLOAD:=$(call AutoProbe,pppoe)
631 endef
632
633 define KernelPackage/pppoe/description
634 Kernel module for PPPoE (PPP over Ethernet) support
635 endef
636
637 $(eval $(call KernelPackage,pppoe))
638
639
640 define KernelPackage/pppoa
641 SUBMENU:=$(NETWORK_SUPPORT_MENU)
642 TITLE:=PPPoA support
643 DEPENDS:=kmod-ppp +kmod-atm
644 KCONFIG:=CONFIG_PPPOATM CONFIG_ATM_DRIVERS=y
645 FILES:=$(LINUX_DIR)/net/atm/pppoatm.ko
646 AUTOLOAD:=$(call AutoLoad,40,pppoatm)
647 endef
648
649 define KernelPackage/pppoa/description
650 Kernel modules for PPPoA (PPP over ATM) support
651 endef
652
653 $(eval $(call KernelPackage,pppoa))
654
655
656 define KernelPackage/pptp
657 SUBMENU:=$(NETWORK_SUPPORT_MENU)
658 TITLE:=PPtP support
659 DEPENDS:=kmod-ppp +kmod-gre +kmod-pppox
660 KCONFIG:=CONFIG_PPTP
661 FILES:=$(LINUX_DIR)/drivers/net/ppp/pptp.ko
662 AUTOLOAD:=$(call AutoProbe,pptp)
663 endef
664
665 $(eval $(call KernelPackage,pptp))
666
667
668 define KernelPackage/pppol2tp
669 SUBMENU:=$(NETWORK_SUPPORT_MENU)
670 TITLE:=PPPoL2TP support
671 DEPENDS:=kmod-ppp +kmod-pppox +kmod-l2tp
672 KCONFIG:=CONFIG_PPPOL2TP
673 FILES:=$(LINUX_DIR)/net/l2tp/l2tp_ppp.ko
674 AUTOLOAD:=$(call AutoProbe,l2tp_ppp)
675 endef
676
677 define KernelPackage/pppol2tp/description
678 Kernel modules for PPPoL2TP (PPP over L2TP) support
679 endef
680
681 $(eval $(call KernelPackage,pppol2tp))
682
683
684 define KernelPackage/ipoa
685 SUBMENU:=$(NETWORK_SUPPORT_MENU)
686 TITLE:=IPoA support
687 DEPENDS:=kmod-atm
688 KCONFIG:=CONFIG_ATM_CLIP
689 FILES:=$(LINUX_DIR)/net/atm/clip.ko
690 AUTOLOAD:=$(call AutoProbe,clip)
691 endef
692
693 define KernelPackage/ipoa/description
694 Kernel modules for IPoA (IP over ATM) support
695 endef
696
697 $(eval $(call KernelPackage,ipoa))
698
699
700 define KernelPackage/mppe
701 SUBMENU:=$(NETWORK_SUPPORT_MENU)
702 TITLE:=Microsoft PPP compression/encryption
703 DEPENDS:=kmod-ppp +kmod-crypto-sha1 +kmod-crypto-ecb
704 KCONFIG:= \
705 CONFIG_PPP_MPPE_MPPC \
706 CONFIG_PPP_MPPE
707 FILES:=$(LINUX_DIR)/drivers/net/ppp/ppp_mppe.ko
708 AUTOLOAD:=$(call AutoProbe,ppp_mppe)
709 endef
710
711 define KernelPackage/mppe/description
712 Kernel modules for Microsoft PPP compression/encryption
713 endef
714
715 $(eval $(call KernelPackage,mppe))
716
717
718 SCHED_MODULES = $(patsubst $(LINUX_DIR)/net/sched/%.ko,%,$(wildcard $(LINUX_DIR)/net/sched/*.ko))
719 SCHED_MODULES_CORE = sch_ingress sch_fq_codel sch_hfsc sch_htb sch_tbf cls_basic cls_fw cls_route cls_flow cls_tcindex cls_u32 em_u32 act_mirred act_skbedit cls_matchall
720 SCHED_MODULES_FILTER = $(SCHED_MODULES_CORE) act_connmark sch_netem em_ipset cls_bpf act_bpf
721 SCHED_MODULES_EXTRA = $(filter-out $(SCHED_MODULES_FILTER),$(SCHED_MODULES))
722 SCHED_FILES = $(patsubst %,$(LINUX_DIR)/net/sched/%.ko,$(filter $(SCHED_MODULES_CORE),$(SCHED_MODULES)))
723 SCHED_FILES_EXTRA = $(patsubst %,$(LINUX_DIR)/net/sched/%.ko,$(SCHED_MODULES_EXTRA))
724
725 define KernelPackage/sched-core
726 SUBMENU:=$(NETWORK_SUPPORT_MENU)
727 TITLE:=Traffic schedulers
728 DEPENDS:=@!LINUX_3_18
729 KCONFIG:= \
730 CONFIG_NET_SCHED=y \
731 CONFIG_NET_SCH_HFSC \
732 CONFIG_NET_SCH_HTB \
733 CONFIG_NET_SCH_TBF \
734 CONFIG_NET_SCH_INGRESS \
735 CONFIG_NET_SCH_FQ_CODEL \
736 CONFIG_NET_CLS=y \
737 CONFIG_NET_CLS_ACT=y \
738 CONFIG_NET_CLS_BASIC \
739 CONFIG_NET_CLS_FLOW \
740 CONFIG_NET_CLS_FW \
741 CONFIG_NET_CLS_ROUTE4 \
742 CONFIG_NET_CLS_TCINDEX \
743 CONFIG_NET_CLS_U32 \
744 CONFIG_NET_ACT_MIRRED \
745 CONFIG_NET_ACT_SKBEDIT \
746 CONFIG_NET_CLS_MATCHALL \
747 CONFIG_NET_EMATCH=y \
748 CONFIG_NET_EMATCH_U32
749 FILES:=$(SCHED_FILES)
750 AUTOLOAD:=$(call AutoLoad,70, $(SCHED_MODULES_CORE))
751 endef
752
753 define KernelPackage/sched-core/description
754 Core kernel scheduler support for IP traffic
755 endef
756
757 $(eval $(call KernelPackage,sched-core))
758
759
760 define KernelPackage/sched-connmark
761 SUBMENU:=$(NETWORK_SUPPORT_MENU)
762 TITLE:=Traffic shaper conntrack mark support
763 DEPENDS:=+kmod-sched-core +kmod-ipt-core +kmod-ipt-conntrack-extra
764 KCONFIG:=CONFIG_NET_ACT_CONNMARK
765 FILES:=$(LINUX_DIR)/net/sched/act_connmark.ko
766 AUTOLOAD:=$(call AutoLoad,71, act_connmark)
767 endef
768 $(eval $(call KernelPackage,sched-connmark))
769
770
771 define KernelPackage/sched-ipset
772 SUBMENU:=$(NETWORK_SUPPORT_MENU)
773 TITLE:=Traffic shaper ipset support
774 DEPENDS:=+kmod-sched-core +kmod-ipt-ipset
775 KCONFIG:= \
776 CONFIG_NET_EMATCH_IPSET
777 FILES:= \
778 $(LINUX_DIR)/net/sched/em_ipset.ko
779 AUTOLOAD:=$(call AutoLoad,72,em_ipset)
780 endef
781
782 $(eval $(call KernelPackage,sched-ipset))
783
784
785 define KernelPackage/sched-bpf
786 SUBMENU:=$(NETWORK_SUPPORT_MENU)
787 TITLE:=Traffic shaper support for Berkeley Packet Filter
788 DEPENDS:=@!LINUX_3_18
789 KCONFIG:= \
790 CONFIG_NET_CLS_BPF \
791 CONFIG_NET_ACT_BPF
792 FILES:= \
793 $(LINUX_DIR)/net/sched/cls_bpf.ko \
794 $(LINUX_DIR)/net/sched/act_bpf.ko
795 AUTOLOAD:=$(call AutoLoad,72,cls_bpf act_bpf)
796 endef
797
798 $(eval $(call KernelPackage,sched-bpf))
799
800
801 define KernelPackage/sched
802 SUBMENU:=$(NETWORK_SUPPORT_MENU)
803 TITLE:=Extra traffic schedulers
804 DEPENDS:=+kmod-sched-core +kmod-ipt-core +kmod-lib-crc32c
805 KCONFIG:= \
806 CONFIG_NET_SCH_CODEL \
807 CONFIG_NET_SCH_DSMARK \
808 CONFIG_NET_SCH_FIFO \
809 CONFIG_NET_SCH_GRED \
810 CONFIG_NET_SCH_MULTIQ \
811 CONFIG_NET_SCH_PRIO \
812 CONFIG_NET_SCH_RED \
813 CONFIG_NET_SCH_SFQ \
814 CONFIG_NET_SCH_TEQL \
815 CONFIG_NET_SCH_FQ \
816 CONFIG_NET_SCH_PIE \
817 CONFIG_NET_ACT_POLICE \
818 CONFIG_NET_ACT_GACT \
819 CONFIG_NET_ACT_IPT \
820 CONFIG_NET_ACT_PEDIT \
821 CONFIG_NET_ACT_SIMP \
822 CONFIG_NET_ACT_CSUM \
823 CONFIG_NET_EMATCH_CMP \
824 CONFIG_NET_EMATCH_NBYTE \
825 CONFIG_NET_EMATCH_META \
826 CONFIG_NET_EMATCH_TEXT
827 FILES:=$(SCHED_FILES_EXTRA)
828 AUTOLOAD:=$(call AutoLoad,73, $(SCHED_MODULES_EXTRA))
829 endef
830
831 define KernelPackage/sched/description
832 Extra kernel schedulers modules for IP traffic
833 endef
834
835 $(eval $(call KernelPackage,sched))
836
837
838 define KernelPackage/tcp-bbr
839 SUBMENU:=$(NETWORK_SUPPORT_MENU)
840 TITLE:=BBR TCP congestion control
841 DEPENDS:=@!LINUX_3_18 +LINUX_4_9:kmod-sched
842 KCONFIG:= \
843 CONFIG_TCP_CONG_ADVANCED=y \
844 CONFIG_TCP_CONG_BBR
845 FILES:=$(LINUX_DIR)/net/ipv4/tcp_bbr.ko
846 AUTOLOAD:=$(call AutoLoad,74,tcp_bbr)
847 endef
848
849 define KernelPackage/tcp-bbr/description
850 Kernel module for BBR (Bottleneck Bandwidth and RTT) TCP congestion
851 control. It requires the fq ("Fair Queue") pacing packet scheduler.
852 For kernel 4.13+, TCP internal pacing is implemented as fallback.
853 endef
854
855 ifdef CONFIG_LINUX_4_9
856 TCP_BBR_SYSCTL_CONF:=sysctl-tcp-bbr-k4_9.conf
857 else
858 TCP_BBR_SYSCTL_CONF:=sysctl-tcp-bbr.conf
859 endif
860
861 define KernelPackage/tcp-bbr/install
862 $(INSTALL_DIR) $(1)/etc/sysctl.d
863 $(INSTALL_DATA) ./files/$(TCP_BBR_SYSCTL_CONF) $(1)/etc/sysctl.d/12-tcp-bbr.conf
864 endef
865
866 $(eval $(call KernelPackage,tcp-bbr))
867
868
869 define KernelPackage/ax25
870 SUBMENU:=$(NETWORK_SUPPORT_MENU)
871 TITLE:=AX25 support
872 DEPENDS:=+kmod-lib-crc16
873 KCONFIG:= \
874 CONFIG_HAMRADIO=y \
875 CONFIG_AX25 \
876 CONFIG_MKISS
877 FILES:= \
878 $(LINUX_DIR)/net/ax25/ax25.ko \
879 $(LINUX_DIR)/drivers/net/hamradio/mkiss.ko
880 AUTOLOAD:=$(call AutoLoad,80,ax25 mkiss)
881 endef
882
883 define KernelPackage/ax25/description
884 Kernel modules for AX25 support
885 endef
886
887 $(eval $(call KernelPackage,ax25))
888
889
890 define KernelPackage/pktgen
891 SUBMENU:=$(NETWORK_SUPPORT_MENU)
892 DEPENDS:=@!TARGET_uml
893 TITLE:=Network packet generator
894 KCONFIG:=CONFIG_NET_PKTGEN
895 FILES:=$(LINUX_DIR)/net/core/pktgen.ko
896 AUTOLOAD:=$(call AutoLoad,99,pktgen)
897 endef
898
899 define KernelPackage/pktgen/description
900 Kernel modules for the Network Packet Generator
901 endef
902
903 $(eval $(call KernelPackage,pktgen))
904
905 define KernelPackage/l2tp
906 SUBMENU:=$(NETWORK_SUPPORT_MENU)
907 TITLE:=Layer Two Tunneling Protocol (L2TP)
908 DEPENDS:= \
909 +kmod-udptunnel4 \
910 +IPV6:kmod-udptunnel6
911 KCONFIG:=CONFIG_L2TP \
912 CONFIG_L2TP_V3=y \
913 CONFIG_L2TP_DEBUGFS=n
914 FILES:=$(LINUX_DIR)/net/l2tp/l2tp_core.ko \
915 $(LINUX_DIR)/net/l2tp/l2tp_netlink.ko
916 AUTOLOAD:=$(call AutoLoad,32,l2tp_core l2tp_netlink)
917 endef
918
919 define KernelPackage/l2tp/description
920 Kernel modules for L2TP V3 Support
921 endef
922
923 $(eval $(call KernelPackage,l2tp))
924
925
926 define KernelPackage/l2tp-eth
927 SUBMENU:=$(NETWORK_SUPPORT_MENU)
928 TITLE:=L2TP ethernet pseudowire support for L2TPv3
929 DEPENDS:=+kmod-l2tp
930 KCONFIG:=CONFIG_L2TP_ETH
931 FILES:=$(LINUX_DIR)/net/l2tp/l2tp_eth.ko
932 AUTOLOAD:=$(call AutoLoad,33,l2tp_eth)
933 endef
934
935 define KernelPackage/l2tp-eth/description
936 Kernel modules for L2TP ethernet pseudowire support for L2TPv3
937 endef
938
939 $(eval $(call KernelPackage,l2tp-eth))
940
941 define KernelPackage/l2tp-ip
942 SUBMENU:=$(NETWORK_SUPPORT_MENU)
943 TITLE:=L2TP IP encapsulation for L2TPv3
944 DEPENDS:=+kmod-l2tp
945 KCONFIG:=CONFIG_L2TP_IP
946 FILES:= \
947 $(LINUX_DIR)/net/l2tp/l2tp_ip.ko \
948 $(if $(CONFIG_IPV6),$(LINUX_DIR)/net/l2tp/l2tp_ip6.ko)
949 AUTOLOAD:=$(call AutoLoad,33,l2tp_ip $(if $(CONFIG_IPV6),l2tp_ip6))
950 endef
951
952 define KernelPackage/l2tp-ip/description
953 Kernel modules for L2TP IP encapsulation for L2TPv3
954 endef
955
956 $(eval $(call KernelPackage,l2tp-ip))
957
958
959 define KernelPackage/sctp
960 SUBMENU:=$(NETWORK_SUPPORT_MENU)
961 TITLE:=SCTP protocol kernel support
962 KCONFIG:=\
963 CONFIG_IP_SCTP \
964 CONFIG_SCTP_DBG_MSG=n \
965 CONFIG_SCTP_DBG_OBJCNT=n \
966 CONFIG_SCTP_HMAC_NONE=n \
967 CONFIG_SCTP_HMAC_SHA1=n \
968 CONFIG_SCTP_HMAC_MD5=y \
969 CONFIG_SCTP_COOKIE_HMAC_SHA1=n \
970 CONFIG_SCTP_COOKIE_HMAC_MD5=y \
971 CONFIG_SCTP_DEFAULT_COOKIE_HMAC_NONE=n \
972 CONFIG_SCTP_DEFAULT_COOKIE_HMAC_SHA1=n \
973 CONFIG_SCTP_DEFAULT_COOKIE_HMAC_MD5=y
974 FILES:= $(LINUX_DIR)/net/sctp/sctp.ko
975 AUTOLOAD:= $(call AutoLoad,32,sctp)
976 DEPENDS:=+kmod-lib-crc32c +kmod-crypto-md5 +kmod-crypto-hmac
977 endef
978
979 define KernelPackage/sctp/description
980 Kernel modules for SCTP protocol support
981 endef
982
983 $(eval $(call KernelPackage,sctp))
984
985
986 define KernelPackage/netem
987 SUBMENU:=$(NETWORK_SUPPORT_MENU)
988 TITLE:=Network emulation functionality
989 DEPENDS:=+kmod-sched
990 KCONFIG:=CONFIG_NET_SCH_NETEM
991 FILES:=$(LINUX_DIR)/net/sched/sch_netem.ko
992 AUTOLOAD:=$(call AutoLoad,99,netem)
993 endef
994
995 define KernelPackage/netem/description
996 Kernel modules for emulating the properties of wide area networks
997 endef
998
999 $(eval $(call KernelPackage,netem))
1000
1001 define KernelPackage/slip
1002 SUBMENU:=$(NETWORK_SUPPORT_MENU)
1003 DEPENDS:=+kmod-slhc
1004 TITLE:=SLIP modules
1005 KCONFIG:= \
1006 CONFIG_SLIP \
1007 CONFIG_SLIP_COMPRESSED=y \
1008 CONFIG_SLIP_SMART=y \
1009 CONFIG_SLIP_MODE_SLIP6=y
1010
1011 FILES:= \
1012 $(LINUX_DIR)/drivers/net/slip/slip.ko
1013 AUTOLOAD:=$(call AutoLoad,30,slip)
1014 endef
1015
1016 define KernelPackage/slip/description
1017 Kernel modules for SLIP support
1018 endef
1019
1020 $(eval $(call KernelPackage,slip))
1021
1022 define KernelPackage/dnsresolver
1023 SUBMENU:=$(NETWORK_SUPPORT_MENU)
1024 TITLE:=In-kernel DNS Resolver
1025 KCONFIG:= CONFIG_DNS_RESOLVER
1026 FILES:=$(LINUX_DIR)/net/dns_resolver/dns_resolver.ko
1027 AUTOLOAD:=$(call AutoLoad,30,dns_resolver)
1028 endef
1029
1030 $(eval $(call KernelPackage,dnsresolver))
1031
1032 define KernelPackage/rxrpc
1033 SUBMENU:=$(NETWORK_SUPPORT_MENU)
1034 TITLE:=AF_RXRPC support
1035 HIDDEN:=1
1036 KCONFIG:= \
1037 CONFIG_AF_RXRPC \
1038 CONFIG_RXKAD=m \
1039 CONFIG_AF_RXRPC_DEBUG=n
1040 FILES:= \
1041 $(LINUX_DIR)/net/rxrpc/af-rxrpc.ko@lt4.11 \
1042 $(LINUX_DIR)/net/rxrpc/rxrpc.ko@ge4.11 \
1043 $(LINUX_DIR)/net/rxrpc/rxkad.ko@lt4.7
1044 AUTOLOAD:=$(call AutoLoad,30,rxkad@lt4.7 af-rxrpc.ko@lt4.11 rxrpc.ko@ge4.11)
1045 DEPENDS:= +kmod-crypto-manager +kmod-crypto-pcbc +kmod-crypto-fcrypt
1046 endef
1047
1048 define KernelPackage/rxrpc/description
1049 Kernel support for AF_RXRPC; required for AFS client
1050 endef
1051
1052 $(eval $(call KernelPackage,rxrpc))
1053
1054 define KernelPackage/mpls
1055 SUBMENU:=$(NETWORK_SUPPORT_MENU)
1056 TITLE:=MPLS support
1057 DEPENDS:=@!LINUX_3_18 +LINUX_4_19:kmod-iptunnel
1058 KCONFIG:= \
1059 CONFIG_MPLS=y \
1060 CONFIG_LWTUNNEL=y \
1061 CONFIG_LWTUNNEL_BPF=n \
1062 CONFIG_NET_MPLS_GSO=m \
1063 CONFIG_MPLS_ROUTING=m \
1064 CONFIG_MPLS_IPTUNNEL=m
1065 FILES:= \
1066 $(LINUX_DIR)/net/mpls/mpls_gso.ko \
1067 $(LINUX_DIR)/net/mpls/mpls_iptunnel.ko \
1068 $(LINUX_DIR)/net/mpls/mpls_router.ko
1069 AUTOLOAD:=$(call AutoLoad,30,mpls_router mpls_iptunnel mpls_gso)
1070 endef
1071
1072 define KernelPackage/mpls/description
1073 Kernel support for MPLS
1074 endef
1075
1076 $(eval $(call KernelPackage,mpls))
1077
1078 define KernelPackage/9pnet
1079 SUBMENU:=$(NETWORK_SUPPORT_MENU)
1080 TITLE:=Plan 9 Resource Sharing Support (9P2000)
1081 DEPENDS:=@VIRTIO_SUPPORT
1082 KCONFIG:= \
1083 CONFIG_NET_9P \
1084 CONFIG_NET_9P_DEBUG=n \
1085 CONFIG_NET_9P_XEN=n \
1086 CONFIG_NET_9P_VIRTIO
1087 FILES:= \
1088 $(LINUX_DIR)/net/9p/9pnet.ko \
1089 $(LINUX_DIR)/net/9p/9pnet_virtio.ko
1090 AUTOLOAD:=$(call AutoLoad,29,9pnet 9pnet_virtio)
1091 endef
1092
1093 define KernelPackage/9pnet/description
1094 Kernel support support for
1095 Plan 9 resource sharing via the 9P2000 protocol.
1096 endef
1097
1098 $(eval $(call KernelPackage,9pnet))
1099
1100
1101 define KernelPackage/nlmon
1102 SUBMENU:=$(NETWORK_SUPPORT_MENU)
1103 TITLE:=Virtual netlink monitoring device
1104 KCONFIG:=CONFIG_NLMON
1105 FILES:=$(LINUX_DIR)/drivers/net/nlmon.ko
1106 AUTOLOAD:=$(call AutoProbe,nlmon)
1107 endef
1108
1109 define KernelPackage/nlmon/description
1110 Kernel module which adds a monitoring device for netlink.
1111 endef
1112
1113 $(eval $(call KernelPackage,nlmon))
1114
1115
1116 define KernelPackage/mdio
1117 SUBMENU:=$(NETWORK_SUPPORT_MENU)
1118 TITLE:=MDIO (clause 45) PHY support
1119 KCONFIG:=CONFIG_MDIO
1120 HIDDEN:=1
1121 FILES:=$(LINUX_DIR)/drivers/net/mdio.ko
1122 AUTOLOAD:=$(call AutoLoad,32,mdio)
1123 endef
1124
1125 define KernelPackage/mdio/description
1126 Kernel modules for MDIO (clause 45) PHY support
1127 endef
1128
1129 $(eval $(call KernelPackage,mdio))
1130
1131 define KernelPackage/macsec
1132 SUBMENU:=$(NETWORK_SUPPORT_MENU)
1133 TITLE:=IEEE 802.1AE MAC-level encryption (MAC)
1134 DEPENDS:=+kmod-crypto-gcm @!LINUX_3_18
1135 KCONFIG:=CONFIG_MACSEC
1136 FILES:=$(LINUX_DIR)/drivers/net/macsec.ko
1137 AUTOLOAD:=$(call AutoLoad,13,macsec)
1138 endef
1139
1140 define KernelPackage/macsec/description
1141 MACsec is an encryption standard for Ethernet.
1142 endef
1143
1144 $(eval $(call KernelPackage,macsec))