| #
b272101a |
| 30-Oct-2023 |
Aaron LI <aly@aaronly.me> |
Various minor whitespace cleanups
Accumulated along the way.
|
| #
3bd69058 |
| 15-Nov-2023 |
Aaron LI <aly@aaronly.me> |
Use sizeof(uint32_t) for bpfattach(DLT_NULL) for clarity
The DLT_NULL link-layer header is a 4-byte field in host byte order. So use 'sizeof(uint32_t)' instead of 'sizeof(u_int)' to make it clear.
|
|
Revision tags: v6.4.0, v6.4.0rc1, v6.5.0, v6.2.2, v6.2.1, v6.3.0, v6.0.1, v6.0.0, v6.0.0rc1, v6.1.0, v5.8.3, v5.8.2 |
|
| #
bb54c3a2 |
| 02-Jul-2020 |
Aaron LI <aly@aaronly.me> |
if_clone: Extend if_clone_create() by an extra parameter
Currently, if_clone_create() accepts one caddr_t parameter that is passed with the ifreq->ifr_data for the SIOCIFCREATE2 ioctl.
Extend this
if_clone: Extend if_clone_create() by an extra parameter
Currently, if_clone_create() accepts one caddr_t parameter that is passed with the ifreq->ifr_data for the SIOCIFCREATE2 ioctl.
Extend this function by another caddr_t parameter so that callers could pass extra data to the ifc->ifc_create() handler and won't conflict with the SIOCIFCREATE2 ioctl calls. This extension will be used by tun(4) and tap(4) in a following commit.
Suggested-by: dillon Reviewed-by: dillon
show more ...
|
|
Revision tags: v5.8.1 |
|
| #
eca1e48f |
| 28-Mar-2020 |
Sascha Wildner <saw@online.de> |
kernel: Remove <sys/mplock2.h> from all files that do not need it.
|
|
Revision tags: v5.8.0, v5.9.0, v5.8.0rc1, v5.6.3 |
|
| #
805c8e8e |
| 20-Oct-2019 |
zrj <rimvydas.jasinskas@gmail.com> |
kernel: Remove explicit dependencies on <sys/malloc.h> in headers.
All except <net/if_var.h> for now, it needs decoupling in drm first. * Include <sys/malloc.h> in foo.c if they have kmalloc()/kfr
kernel: Remove explicit dependencies on <sys/malloc.h> in headers.
All except <net/if_var.h> for now, it needs decoupling in drm first. * Include <sys/malloc.h> in foo.c if they have kmalloc()/kfree() calls. * Consistently check if MALLOC_DECLARE was declared before. * <sys/mountctl.h>: include <sys/thread.h> for _KERNEL_STRUCTURES too since the "struct journal" embeds "struct thread". * <sys/tty.h>: Only two kernel sources makes use of M_TTYS. * <sys/socketvar2.h>: Make it kernel only header.
show more ...
|
|
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 |
|
| #
426d6ad0 |
| 21-Jun-2018 |
Aaron LI <aly@aaronly.me> |
if_loop: Use ifc->ifc_name and minor cleanups
* Use "ifc->ifc_name" instead of explicit "lo".
* Minor style updates.
|
|
Revision tags: v5.2.2, v5.2.1, v5.2.0, v5.3.0, v5.2.0rc, v5.0.2, v5.0.1, v5.0.0, v5.0.0rc2, v5.1.0, v5.0.0rc1, v4.8.1 |
|
| #
7be2b76d |
| 20-Jun-2017 |
Sepherosa Ziehau <sephe@dragonflybsd.org> |
loopback: Free ifnet memory in clone_destroy method.
|
| #
00ee3f5e |
| 20-Jun-2017 |
Sepherosa Ziehau <sephe@dragonflybsd.org> |
loopback: Function renaming
|
| #
860b6b42 |
| 20-Jun-2017 |
Sepherosa Ziehau <sephe@dragonflybsd.org> |
loopback: Use ifclone APIs to create loopback interfaces.
This paves way for multiple FIB support.
|
|
Revision tags: v4.8.0, v4.6.2, v4.9.0, v4.8.0rc |
|
| #
8d4ec101 |
| 25-Dec-2016 |
Sepherosa Ziehau <sephe@dragonflybsd.org> |
loopback: Allow turning off RSS.
|
|
Revision tags: 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 |
|
| #
6ec8f7f2 |
| 08-Aug-2015 |
Sascha Wildner <saw@online.de> |
Remove remaining OSI protocol support.
These were just leftovers.
|
|
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 ...
|
|
Revision tags: v4.0.3, v4.0.2, v4.0.1, 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 |
|
| #
6f25d555 |
| 20-Apr-2014 |
Sascha Wildner <saw@online.de> |
Remove support for the IPX and NCP protocols, and for NWFS.
This was on the list for a longer time now. FreeBSD removed it recently, too. Their commit msg has some more info:
"IPX was a network tra
Remove support for the IPX and NCP protocols, and for NWFS.
This was on the list for a longer time now. FreeBSD removed it recently, too. Their commit msg has some more info:
"IPX was a network transport protocol in Novell's NetWare network operating system from late 80s and then 90s. The NetWare itself switched to TCP/IP as default transport in 1998. Later, in this century the Novell Open Enterprise Server became successor of Novell NetWare. The last release that claimed to still support IPX was OES 2 in 2007. Routing equipment vendors (e.g. Cisco) discontinued support for IPX in 2011."
The commit removes support for NCP (NetWare Core Protocol) and NWFS (NetWare File System) along with it (both gone from FreeBSD too since a while).
show more ...
|
| #
811e811b |
| 20-Apr-2014 |
Sascha Wildner <saw@online.de> |
Remove some XEROX Network Systems (NS) protocol remains.
We removed most of it in 2011 (62b5ec1d702a90f4c4f06347b3ad258a29ff8929).
|
|
Revision tags: v3.6.2, v3.6.1, v3.6.0, v3.7.1, v3.6.0rc, v3.4.3 |
|
| #
ac9843a1 |
| 04-Jun-2013 |
Sepherosa Ziehau <sephe@dragonflybsd.org> |
ifq: Remove the unused parameter 'mpolled' from ifq dequeue interface
The ifq_poll() -> ifq_dequeue() model is not MPSAFE, and mpolled has not been used, i.e. set to NULL, for years; time to let it
ifq: Remove the unused parameter 'mpolled' from ifq dequeue interface
The ifq_poll() -> ifq_dequeue() model is not MPSAFE, and mpolled has not been used, i.e. set to NULL, for years; time to let it go.
show more ...
|
| #
3ffea39d |
| 31-May-2013 |
Sepherosa Ziehau <sephe@dragonflybsd.org> |
route: Remove the unused rt_addrinfo parameter from ifa_rtrequest
|
| #
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.1, v3.4.0, v3.4.0rc, v3.5.0 |
|
| #
88cb1315 |
| 16-Feb-2013 |
Johannes Hofmann <johannes.hofmann@gmx.de> |
Merge branch 'master' of git://git.dragonflybsd.org/dragonfly into wlan_serialize
|
| #
d40991ef |
| 13-Feb-2013 |
Sepherosa Ziehau <sephe@dragonflybsd.org> |
if: Per-cpu ifnet/ifaddr statistics, step 1/3
Wrap ifnet/ifaddr stats updating, setting and extraction into macros; ease upcoming changes.
|
| #
4da66bbf |
| 24-Jan-2013 |
Johannes Hofmann <johannes.hofmann@gmx.de> |
merge
|
| #
3c4cd924 |
| 13-Jan-2013 |
Sepherosa Ziehau <sephe@dragonflybsd.org> |
if: Multiple TX queue support step 2 of many
ifnet_{serialize,deserialize,tryserialize}_tx and hardware TX serializer asserion macros now require subqueue, so the proper hardware TX queue's serializ
if: Multiple TX queue support step 2 of many
ifnet_{serialize,deserialize,tryserialize}_tx and hardware TX serializer asserion macros now require subqueue, so the proper hardware TX queue's serializer could be held, released and asserted.
show more ...
|
| #
f0a26983 |
| 11-Jan-2013 |
Sepherosa Ziehau <sephe@dragonflybsd.org> |
if: Multiple TX queue support step 1 of many; introduce ifaltq subqueue
Put the plain queue information, e.g. queue header and tail, serializer, packet staging scoreboard and ifnet.if_start schedule
if: Multiple TX queue support step 1 of many; introduce ifaltq subqueue
Put the plain queue information, e.g. queue header and tail, serializer, packet staging scoreboard and ifnet.if_start schedule netmsg etc. into its own structure (subqueue). ifaltq structure could have multiple of subqueues based on the count that drivers can specify.
Subqueue's enqueue, dequeue, purging and states updating are protected by the subqueue's serializer, so for hardwares supporting multiple TX queues, contention on queuing operation could be greatly reduced.
The subqueue is passed to if_start to let the driver know which hardware TX queue to work on. Only the related driver's TX queue serializer will be held, so for hardwares supporting multiple TX queues, contention on driver's TX queue serializer could be greatly reduced.
Bunch of ifsq_ prefixed functions are added, which is used to perform various operations on subqueues. Commonly used ifq_ prefixed functions are still kept mainly for the drivers which do not support multiple TX queues (well, these functions also ease the netif/ convertion in this step :).
All of the pseudo network devices under sys/net are converted to use the new subqueue operation. netproto/802_11 is converted too. igb(4) is converted to use the new subqueue operation, the rest of the network drivers are only changed for the if_start interface modification.
For ALTQs which have packet scheduler enabled, only the first subqueue is used (*).
(*) Whether we should utilize multiple TX queues if ALTQ's packet scheduler is enabled is quite questionable. Mainly because hardware's multiple TX queue packet dequeue mechanism could have negative impact on ALTQ's packet scheduler's decision.
show more ...
|
|
Revision tags: v3.2.2 |
|
| #
fda7d388 |
| 29-Nov-2012 |
Sepherosa Ziehau <sephe@dragonflybsd.org> |
bpf: Use bpf global token instead mplock to protect bpf stuffs
Submitted-by: tuxillo@ w/ modification
|
|
Revision tags: v3.2.1, v3.2.0, v3.3.0, v3.0.3, v3.0.2, v3.0.1, v3.1.0, v3.0.0 |
|
| #
4090d6ff |
| 03-Jan-2012 |
Sascha Wildner <saw@online.de> |
kernel: Use NULL for pointers.
|