#
7af15f03 |
| 14-Aug-2024 |
mvs <mvs@openbsd.org> |
Push kernel lock down to net_sysctl().
All except PF_MPLS paths are mp-safe: - net_link_sysctl() and following net_ifiq_sysctl() only return EOPNOTSUPP; - uipc_sysctl() - mp-safe atomic access to
Push kernel lock down to net_sysctl().
All except PF_MPLS paths are mp-safe: - net_link_sysctl() and following net_ifiq_sysctl() only return EOPNOTSUPP; - uipc_sysctl() - mp-safe atomic access to integers; - bpf_sysctl() - mp-safe atomic access to integers; - pflow_sysctl() - returns statistics from per-CPU counters; - pipex_sysctl() - mp-safe atomic access to integer;
Push kernel lock down to mpls_sysctl(). sysctl_int_bounded() do copying with local variable, so context switch is safe. No need to wire memory or take `sysctl_lock' rwlock(9).
Keep protocols locked as they was include pages wiring. Copying will not sleep - no network slowdown while doing it with net lock held.
ok bluhm
show more ...
|
#
fdc132c9 |
| 29-Apr-2024 |
jsg <jsg@openbsd.org> |
remove unused global vars ok deraadt@ miod@
|
#
7eb8d89d |
| 22-Feb-2022 |
guenther <guenther@openbsd.org> |
Delete unnecessary #includes of <sys/domain.h> and/or <sys/protosw.h>
net/if_pppx.c pointed out by jsg@ ok gnezdo@ deraadt@ jsg@ mpi@ millert@
|
#
d662a1c7 |
| 19-Aug-2020 |
gnezdo <gnezdo@openbsd.org> |
Convert mpls_sysctl to sysctl_bounded_args
OK claudio@
|
#
41d03808 |
| 01-Aug-2020 |
gnezdo <gnezdo@openbsd.org> |
Move range check inside sysctl_int_arr
Range violations are now consistently reported as EOPNOTSUPP. Previously they were mixed with ENOPROTOOPT.
OK kn@
|
#
e9c99edc |
| 05-Nov-2019 |
claudio <claudio@openbsd.org> |
Remove mpls_inkloop and the corresponding sysctl net.mpls.maxloop_inkernel. The value is no longer needed since the MPLS code got refactored some time ago. Found by Thomas Habets (thomas (at) habets
Remove mpls_inkloop and the corresponding sysctl net.mpls.maxloop_inkernel. The value is no longer needed since the MPLS code got refactored some time ago. Found by Thomas Habets (thomas (at) habets se)
show more ...
|
#
2b751374 |
| 27-Feb-2017 |
claudio <claudio@openbsd.org> |
Retire the AF_MPLS protosw struct. Nothing is using it and the code was super basic anyway. Simplifies the code a lot also by calling the mpls sysctl no longer via the protosw but instead directly. O
Retire the AF_MPLS protosw struct. Nothing is using it and the code was super basic anyway. Simplifies the code a lot also by calling the mpls sysctl no longer via the protosw but instead directly. OK mpi@ on a previous diff. Also tested by renato@ who actually found a bug which is now fixed.
show more ...
|
#
0fc8cdfc |
| 15-Nov-2016 |
mpi <mpi@openbsd.org> |
Return EOPNOTSUPP instead of calling a function to do only that.
ok phessler@
|
#
c8d41900 |
| 24-Nov-2015 |
mpi <mpi@openbsd.org> |
No need for <net/if_types.h>
As a bonus this removes a "#if NCARP > 0", say yeah!
|
#
59c24256 |
| 20-Jul-2015 |
rzalamena <rzalamena@openbsd.org> |
Kill NETISR_MPLS, from now on we will use interface input handlers to deal with MPLS packets.
ok mpi@, claudio@
|
#
98a920fd |
| 10-Apr-2015 |
dlg <dlg@openbsd.org> |
replace the use of ifqueues for most input queues serviced by netisr with niqueues.
this change is so big because there's a lot of code that takes pointers to different input queues (eg, ether_input
replace the use of ifqueues for most input queues serviced by netisr with niqueues.
this change is so big because there's a lot of code that takes pointers to different input queues (eg, ether_input picks between ipv4, ipv6, pppoe, arp, and mpls input queues) and falls through to code to enqueue packets against the pointer. if i changed only one of the input queues id have to add sepearate code paths, one for ifqueues and one for niqueues in each of these places
by flipping all these input queues at once i can keep the currently common code common.
testing by mpi@ sthen@ and rafael zalamena ok mpi@ sthen@ claudio@ henning@
show more ...
|
#
0deb6685 |
| 05-Dec-2014 |
mpi <mpi@openbsd.org> |
Explicitly include <net/if_var.h> instead of pulling it in <net/if.h>.
ok mikeb@, krw@, bluhm@, tedu@
|
#
17706250 |
| 27-Mar-2013 |
tedu <tedu@openbsd.org> |
a little header cleanup. ok deraadt
|
#
aa4fe1dc |
| 03-Sep-2010 |
claudio <claudio@openbsd.org> |
Use MPLS_INKERNEL_LOOP_MAX instead of 16 when initializing mpls_inkloop.
|
#
ca91ca40 |
| 15-Jul-2010 |
claudio <claudio@openbsd.org> |
Correct function in panic string. From Christophe Fillot
|
#
9af8ccbc |
| 02-Jun-2010 |
claudio <claudio@openbsd.org> |
Kill the mpls enable sysctl knob. Since MPLS needs to be enabled explicitly on each interface there is no need for yet another knob. OK michele@
|
#
da62bf16 |
| 22-Apr-2010 |
michele <michele@openbsd.org> |
Unbreak build of MPLS enabled kernel. proc.h is needed.
ok claudio@
|
#
8b3356d2 |
| 01-Nov-2008 |
michele <michele@openbsd.org> |
Introduced Uniform Model for TTL handling. MPLS TTL is mapped into network layer one as the packet exits the LSP. Just IPv4 support for now. Added the relevant sysctls to enable this behaviour.
Inpu
Introduced Uniform Model for TTL handling. MPLS TTL is mapped into network layer one as the packet exits the LSP. Just IPv4 support for now. Added the relevant sysctls to enable this behaviour.
Input and OK claudio@
show more ...
|
#
d83efb60 |
| 23-May-2008 |
thib <thib@openbsd.org> |
Make this compile again, by adding a struct proc * argument to the usrreq's.
(Both MPLS and NETATALK are disabled in GENERIC).
|
#
5e171871 |
| 23-Apr-2008 |
norby <norby@openbsd.org> |
I hate working outside the tree.
Fix my faulty import....
|
#
d90b9793 |
| 23-Apr-2008 |
norby <norby@openbsd.org> |
Import MPLS (Multi Protocol Label Switching)
MPLS support partly based on the (abandoned?) AYAME project. Basic LSR (Label Switch Router) functionality is present, but not fully functional yet.
It
Import MPLS (Multi Protocol Label Switching)
MPLS support partly based on the (abandoned?) AYAME project. Basic LSR (Label Switch Router) functionality is present, but not fully functional yet.
It is currently possible to insert entries in the LIB (Label Information Base) with route(8), but setting the operation type is not supported yet.
Imported to allow more people to work on this in the coming weeks.
ok claudio@ laurent@ dlg@
show more ...
|