#
05d02a38 |
| 28-Dec-2023 |
Aaron LI <aly@aaronly.me> |
kernel: Remove unnecessary casts for updated mbuf(9) functions
|
#
2ba12c9c |
| 09-Jul-2023 |
Matthew Dillon <dillon@apollo.backplane.com> |
network - Remove ip_len header-length adjustment
* This should remove the last main code path modifications to packet mbuf contents. The IP header in the mbuf is now basically left alone whenev
network - Remove ip_len header-length adjustment
* This should remove the last main code path modifications to packet mbuf contents. The IP header in the mbuf is now basically left alone whenever possible, bringing us in-line with FreeBSD and Linux and removing cache-line bounces between cpus and between a cpu and the related PCIe DMA.
* Do not adjust ip_len to remove the IP header length.
* Various protocol stacks do the subtraction themselves, when needed.
* Various bits of code that added the length back in to execute a function then removed it again cleaned up.
* IP reassembly (in ip_input.c and pf_norm.c) cleaned up.
show more ...
|
#
8a93af2a |
| 08-Jul-2023 |
Matthew Dillon <dillon@apollo.backplane.com> |
network - Remove host-order translations of ipv4 ip_off and ip_len
* Do not translate ip_off and ip_len to host order and then back again in the network stack. The fields are now left in network
network - Remove host-order translations of ipv4 ip_off and ip_len
* Do not translate ip_off and ip_len to host order and then back again in the network stack. The fields are now left in network order.
show more ...
|
#
d315d81c |
| 04-Apr-2023 |
Sascha Wildner <saw@online.de> |
kernel/icmp: Add missing opt_icmpprintfs.h include to get at ICMPPRINTFS.
|
Revision tags: v6.4.0, v6.4.0rc1, v6.5.0, v6.2.2, v6.2.1, v6.2.0, v6.3.0, v6.0.1, v6.0.0, v6.0.0rc1, v6.1.0, v5.8.3, v5.8.2, v5.8.1, v5.8.0, v5.9.0, v5.8.0rc1, v5.6.3 |
|
#
c443c74f |
| 22-Oct-2019 |
zrj <rimvydas.jasinskas@gmail.com> |
<net/if_var.h>: Remove last explicit dependency on <sys/malloc.h>.
These kernel sources pass M_NOWAIT flag to m_copym() and friends. Mark that it was for M_NOWAIT visibility.
|
#
febebf83 |
| 20-Oct-2019 |
zrj <rimvydas.jasinskas@gmail.com> |
kernel: Minor whitespace cleanup in few sources (part 2).
Separated from next.
|
Revision tags: v5.6.2, v5.6.1, v5.6.0, v5.6.0rc1, v5.7.0, v5.4.3, v5.4.2, v5.4.1, v5.4.0, v5.5.0, v5.4.0rc1, v5.2.2, v5.2.1 |
|
#
755d70b8 |
| 21-Apr-2018 |
Sascha Wildner <saw@online.de> |
Remove IPsec and related code from the system.
It was unmaintained ever since we inherited it from FreeBSD 4.8.
In fact, we had two implementations from that time: IPSEC and FAST_IPSEC. FAST_IPSEC
Remove IPsec and related code from the system.
It was unmaintained ever since we inherited it from FreeBSD 4.8.
In fact, we had two implementations from that time: IPSEC and FAST_IPSEC. FAST_IPSEC is the implementation to which FreeBSD has moved since, but it didn't even build in DragonFly.
Fixes for dports have been committed to DeltaPorts.
Requested-by: dillon Dports-testing-and-fixing: zrj
show more ...
|
Revision tags: v5.2.0, v5.3.0, v5.2.0rc, v5.0.2 |
|
#
06937ef9 |
| 25-Nov-2017 |
Sascha Wildner <saw@online.de> |
Remove faith(4) and faithd(8) from the tree.
FreeBSD did that 3 years ago (r274331). Quoting from their commit msg:
-----8<----- It looks like industry have chosen different (and more traditional)
Remove faith(4) and faithd(8) from the tree.
FreeBSD did that 3 years ago (r274331). Quoting from their commit msg:
-----8<----- It looks like industry have chosen different (and more traditional) stateless/stateful NAT64 as translation mechanism. Last non-trivial commits to both faith(4) and faithd(8) happened more than 12 years ago, so I assume it is time to drop RFC3142 in FreeBSD. ----->8-----
Some more info here:
https://lists.freebsd.org/pipermail/freebsd-net/2014-October/040224.html
Discussed-with: sephe
show more ...
|
Revision tags: v5.0.1, v5.0.0, v5.0.0rc2, v5.1.0, v5.0.0rc1 |
|
#
43dbcc2a |
| 08-Aug-2017 |
Sepherosa Ziehau <sephe@dragonflybsd.org> |
route: Routes should only be accessed from the first netisr_ncpus netisrs.
Replicate routes to the first netisr_ncpus CPUs, instead of all CPUs.
|
#
5204e13c |
| 07-Aug-2017 |
Sepherosa Ziehau <sephe@dragonflybsd.org> |
netisr: Simplify assertion related bits
|
Revision tags: v4.8.1, v4.8.0, v4.6.2, v4.9.0, v4.8.0rc, v4.6.1, v4.6.0, v4.6.0rc2, v4.6.0rc, v4.7.0, v4.4.3, v4.4.2, v4.4.1, v4.4.0, v4.5.0, v4.4.0rc, v4.2.4 |
|
#
471bee20 |
| 31-Jul-2015 |
Sepherosa Ziehau <sephe@dragonflybsd.org> |
net: Factor out ASSERT_IN_NETISR and ASSERT_IS_NETISR
|
Revision tags: v4.3.1, v4.2.3, v4.2.1, v4.2.0, v4.0.6, v4.3.0, v4.2.0rc, v4.0.5, v4.0.4 |
|
#
b5523eac |
| 19-Feb-2015 |
Sascha Wildner <saw@online.de> |
kernel: Move us to using M_NOWAIT and M_WAITOK for mbuf functions.
The main reason is that our having to use the MB_WAIT and MB_DONTWAIT flags was a recurring issue when porting drivers from FreeBSD
kernel: Move us to using M_NOWAIT and M_WAITOK for mbuf functions.
The main reason is that our having to use the MB_WAIT and MB_DONTWAIT flags was a recurring issue when porting drivers from FreeBSD because it tended to get forgotten and the code would compile anyway with the wrong constants. And since MB_WAIT and MB_DONTWAIT ended up as ocflags for an objcache_get() or objcache_reclaimlist call (which use M_WAITOK and M_NOWAIT), it was just one big converting back and forth with some sanitization in between.
This commit allows M_* again for the mbuf functions and keeps the sanitizing as it was before: when M_WAITOK is among the passed flags, objcache functions will be called with M_WAITOK and when it is absent, they will be called with M_NOWAIT. All other flags are scrubbed by the MB_OCFLAG() macro which does the same as the former MBTOM().
Approved-by: dillon
show more ...
|
#
b4051e25 |
| 22-Jan-2015 |
Sepherosa Ziehau <sephe@dragonflybsd.org> |
ifnet: Make ifnet and ifindex2ifnet MPSAFE
- Accessing to these two global variables from non-netisr threads uses ifnet lock. This kind of accessing is from - Accessing to ifindex2ifnet from neti
ifnet: Make ifnet and ifindex2ifnet MPSAFE
- Accessing to these two global variables from non-netisr threads uses ifnet lock. This kind of accessing is from - Accessing to ifindex2ifnet from netisrs are lockless MPSAFE. - Netisrs no longer access ifnet, instead they access ifnet array as of this commit, which is lockless MPSAFE.
Rules for accessing ifnet and ifindex2ifnet is commented near the declaration of the related global variables/functions in net/if_var.h.
show more ...
|
Revision tags: v4.0.3, v4.0.2, v4.0.1 |
|
#
130b7902 |
| 24-Nov-2014 |
Sepherosa Ziehau <sephe@dragonflybsd.org> |
icmp: Asynchonize ctlinput/mtudisc/redirect processing
Supportive facilities added: - Embed netmsg_ctlinput into mbuf (used by input ICMP datagram) so that we don't need to do additional memory al
icmp: Asynchonize ctlinput/mtudisc/redirect processing
Supportive facilities added: - Embed netmsg_ctlinput into mbuf (used by input ICMP datagram) so that we don't need to do additional memory allocation to forward the pr_ctlinput to all netisrs for certain types of ICMP datagrams. - Add/Expose so_pr_ctlport(). - Return target netisr's cpuid from pr_ctlport. If the returned cpuid equals to ncpus, it means that pr_ctlinput needs to be run in all netisrs. - Support 'direct' mode for TCP/UDP's pr_ctlinput. The caller of the 'direct' mode pr_ctlinput will do the message forwarding.
ICMP pr_ctlinput/mtudisc/redirect processing changes: - For mtudisc and redirect we unconditionally forward the message embedded in input ICMP datagram to all netisrs, and call pr_ctlinput in 'direct' mode. - For pr_ctlinput, we first call so_pr_ctlport() to see whether we need to forward the message embedded in input ICMP datagram to all netisrs, and act accordingly. - Once pr_ctlinput/mtudisc/redirect processing is done, the message embedded in the input ICMP datagram is forwarded back to the netisr0 to run rip_input().
After this commit, netisr0 will not be blocked for ICMP pr_ctlinput/ mtudisc/redirect processing. This also fixes the mtudisc (originally only cpu0's routes get mtu updates).
show more ...
|
#
485b59d5 |
| 17-Nov-2014 |
Sepherosa Ziehau <sephe@dragonflybsd.org> |
icmp: Don't convert saved ip header's length into host byte order
No kernel code depends on this and it actually whacks the icmp header passed to userland through SOCK_RAW socket. ICMP redirect pro
icmp: Don't convert saved ip header's length into host byte order
No kernel code depends on this and it actually whacks the icmp header passed to userland through SOCK_RAW socket. ICMP redirect processing does not need fix (it does not do the convertion).
show more ...
|
#
a3f5db13 |
| 17-Nov-2014 |
Sepherosa Ziehau <sephe@dragonflybsd.org> |
icmp: Fix wrong icmp header cast
This was introduced by efa391c40c414e7071b2041f1888180deb1806b9
|
#
443d8956 |
| 17-Nov-2014 |
Sepherosa Ziehau <sephe@dragonflybsd.org> |
icmp: Use inet_ntop() to log ip addresses
|
#
4255649e |
| 17-Nov-2014 |
Sepherosa Ziehau <sephe@dragonflybsd.org> |
proto: ctlinput is a pr method; not a pru method
|
#
7c75b6e2 |
| 16-Nov-2014 |
Sepherosa Ziehau <sephe@dragonflybsd.org> |
icmp: Use inet_ntop() instead of inet_ntoa()
|
#
6bedbebc |
| 16-Nov-2014 |
Sepherosa Ziehau <sephe@dragonflybsd.org> |
build: Add ICMPPRINTFS as global option
|
#
efa391c4 |
| 16-Nov-2014 |
Sepherosa Ziehau <sephe@dragonflybsd.org> |
icmp: Utilize in_cksum_skip()
This avoids unnecessary m_data and m_len adjustment before and after in_cksum().
|
Revision tags: v4.0.0, v4.0.0rc3, v4.0.0rc2, v4.0.0rc, v4.1.0, v3.8.2, v3.8.1, v3.6.3, v3.8.0, v3.8.0rc2, v3.9.0, v3.8.0rc, v3.6.2, v3.6.1, v3.6.0, v3.7.1, v3.6.0rc, v3.7.0, v3.4.3 |
|
#
dc71b7ab |
| 31-May-2013 |
Justin C. Sherrill <justin@shiningsilence.com> |
Correct BSD License clause numbering from 1-2-4 to 1-2-3.
Apparently everyone's doing it: http://svnweb.freebsd.org/base?view=revision&revision=251069
Submitted-by: "Eitan Adler" <lists at eitanadl
Correct BSD License clause numbering from 1-2-4 to 1-2-3.
Apparently everyone's doing it: http://svnweb.freebsd.org/base?view=revision&revision=251069
Submitted-by: "Eitan Adler" <lists at eitanadler.com>
show more ...
|
Revision tags: v3.4.2 |
|
#
2702099d |
| 06-May-2013 |
Justin C. Sherrill <justin@shiningsilence.com> |
Remove advertising clause from all that isn't contrib or userland bin.
By: Eitan Adler <lists@eitanadler.com>
|
Revision tags: v3.4.0, v3.4.1, v3.4.0rc, v3.5.0 |
|
#
668c3d22 |
| 17-Feb-2013 |
Sepherosa Ziehau <sephe@dragonflybsd.org> |
icmp: Disable icmplim_output by default
It spams the console a pretty lot.
|
Revision tags: v3.2.2, v3.2.1, v3.2.0, v3.3.0, v3.0.3 |
|
#
c9155fff |
| 30-May-2012 |
Sepherosa Ziehau <sephe@dragonflybsd.org> |
icmp: Discard ICMP Source Quench per RFC6633
|