| #
89ed722c |
| 13-Mar-2022 |
mpi <mpi@openbsd.org> |
Constify struct cfattach.
ok miod@
|
| #
63bcfa73 |
| 10-Jul-2020 |
patrick <patrick@openbsd.org> |
Change users of IFQ_DEQUEUE(), IFQ_ENQUEUE() and IFQ_LEN() to use the "new" API.
ok dlg@ tobhe@
|
| #
47a8efaf |
| 08-Mar-2017 |
mpi <mpi@openbsd.org> |
Do not clear IFF_UP, even in the error path, clearing IFF_RUNNING is enough.
This flag should only be set by the stack, drivers shouldn't mess with it.
Discussed with dlg@ and mikeb@, ok mikeb@, st
Do not clear IFF_UP, even in the error path, clearing IFF_RUNNING is enough.
This flag should only be set by the stack, drivers shouldn't mess with it.
Discussed with dlg@ and mikeb@, ok mikeb@, stsp@
show more ...
|
| #
88a08f2a |
| 22-Jan-2017 |
dlg <dlg@openbsd.org> |
move counting if_opackets next to counting if_obytes in if_enqueue.
this means packets are consistently counted in one place, unlike the many and various ways that drivers thought they should do it.
move counting if_opackets next to counting if_obytes in if_enqueue.
this means packets are consistently counted in one place, unlike the many and various ways that drivers thought they should do it.
ok mpi@ deraadt@
show more ...
|
| #
621bd93d |
| 13-Apr-2016 |
mpi <mpi@openbsd.org> |
G/C IFQ_SET_READY().
|
| #
9d022f3e |
| 08-Dec-2015 |
tedu <tedu@openbsd.org> |
No trailers has been the default and only option for 20 years, yet some drivers still set IFF_NOTRAILERS while others do not. Remove all usage of the flag from the drivers which in ancient times used
No trailers has been the default and only option for 20 years, yet some drivers still set IFF_NOTRAILERS while others do not. Remove all usage of the flag from the drivers which in ancient times used it (and the modern drivers which blindly copied it from those drivers of yore). suggested by guenther. ok mpi
show more ...
|
| #
de6cd8fb |
| 25-Nov-2015 |
dlg <dlg@openbsd.org> |
replace IFF_OACTIVE manipulation with mpsafe operations.
there are two things shared between the network stack and drivers in the send path: the send queue and the IFF_OACTIVE flag. the send queue i
replace IFF_OACTIVE manipulation with mpsafe operations.
there are two things shared between the network stack and drivers in the send path: the send queue and the IFF_OACTIVE flag. the send queue is now protected by a mutex. this diff makes the oactive functionality mpsafe too.
IFF_OACTIVE is part of if_flags. there are two problems with that. firstly, if_flags is a short and we dont have any MI atomic operations to manipulate a short. secondly, while we could make the IFF_OACTIVE operates mpsafe, all changes to other flags would have to be made safe at the same time, otherwise a read-modify-write cycle on their updates could clobber the oactive change.
instead, this moves the oactive mark into struct ifqueue and provides an API for changing it. there's ifq_set_oactive, ifq_clr_oactive, and ifq_is_oactive. these are modelled on ifsq_set_oactive, ifsq_clr_oactive, and ifsq_is_oactive in dragonflybsd.
this diff includes changes to all the drivers manipulating IFF_OACTIVE to now use the ifsq_{set,clr_is}_oactive API too.
ok kettenis@ mpi@ jmatthew@ deraadt@
show more ...
|
| #
7402f5da |
| 14-Nov-2015 |
mpi <mpi@openbsd.org> |
No need to include <net/bpfdesc.h>
Now that "struct bpf_d" depends on <sys/srp.h> this is one of the offender for removing the header from <sys/param.h>
|
| #
82ab6bfd |
| 25-Oct-2015 |
mpi <mpi@openbsd.org> |
arp_ifinit() is no longer needed.
|
| #
806fe44f |
| 24-Aug-2015 |
mpi <mpi@openbsd.org> |
Workaround for slow bm(4) from NetBSD PR 33667 via Donovan Watteau on bugs@.
|
| #
822e8206 |
| 08-Jul-2015 |
mpi <mpi@openbsd.org> |
MFREE(9) is dead, long live m_freem(9)!
ok bluhm@, claudio@, dlg@
|
| #
db4dc9aa |
| 24-Jun-2015 |
mpi <mpi@openbsd.org> |
Increment if_ipackets in if_input().
Note that pseudo-drivers not using if_input() are not affected by this conversion.
ok mikeb@, kettenis@, claudio@, dlg@
|
| #
64a3f76c |
| 13-May-2015 |
jsg <jsg@openbsd.org> |
test mbuf pointers against NULL not 0 ok krw@ miod@
|
| #
86666264 |
| 09-Feb-2015 |
dlg <dlg@openbsd.org> |
tweak the new if_input function so it takes an mbuf_list instead of a single mbuf. this forces us to batch work between the hardware rx handlers and the stack.
this includes a converstion of bge fro
tweak the new if_input function so it takes an mbuf_list instead of a single mbuf. this forces us to batch work between the hardware rx handlers and the stack.
this includes a converstion of bge from ether_input to if_input.
ok claudio@ pelikan@ mpi@
show more ...
|
| #
5805e9a6 |
| 08-Feb-2015 |
mpi <mpi@openbsd.org> |
Convert to if_input().
|
| #
eed2c93a |
| 22-Dec-2014 |
tedu <tedu@openbsd.org> |
unifdef INET
|
| #
ef787866 |
| 23-Oct-2013 |
mpi <mpi@openbsd.org> |
Instead of comparing the lower and higher addresses of all the multicast entries to decide if the IFF_ALLMULTI flag should be set, check if there is at least one real range between them.
This should
Instead of comparing the lower and higher addresses of all the multicast entries to decide if the IFF_ALLMULTI flag should be set, check if there is at least one real range between them.
This should not introduce any behavior change but will help changing our representation of multicast enries.
show more ...
|
| #
6d31d0a2 |
| 25-Aug-2009 |
miod <miod@openbsd.org> |
In bmac_init(), invoke bmac_transmit_packet() with the correct packet size (sizeof(ptr) vs sizeof(*ptr) bug).
ok krw@
|
| #
45e96fbd |
| 11-Jan-2009 |
blambert <blambert@openbsd.org> |
Actual final round of timeout_add(to, n * hz) -> timeout_add_sec(to, n) conversions.
ok kettenis@ ok krw@ (possibly for the second time :)
|
| #
34f0f0fd |
| 28-Nov-2008 |
brad <brad@openbsd.org> |
Eliminate the redundant bits of code for MTU and multicast handling from the individual drivers now that ether_ioctl() handles this.
Shrinks the i386 kernels by.. RAMDISK - 2176 bytes RAMDISKB - 150
Eliminate the redundant bits of code for MTU and multicast handling from the individual drivers now that ether_ioctl() handles this.
Shrinks the i386 kernels by.. RAMDISK - 2176 bytes RAMDISKB - 1504 bytes RAMDISKC - 736 bytes
Tested by naddy@/okan@/sthen@/brad@/todd@/jmc@ and lots of users. Build tested on almost all archs by todd@/brad@
ok naddy@
show more ...
|
| #
29e86e5e |
| 15-Oct-2008 |
blambert <blambert@openbsd.org> |
Second pass of simple timeout_add -> timeout_add_sec conversions This should take care of the simpler ones (i.e., timeout values of integer multiples of hz).
ok krw@, art@
|
| #
775775fe |
| 02-Oct-2008 |
brad <brad@openbsd.org> |
First step towards cleaning up the Ethernet driver ioctl handling. Move calling ether_ioctl() from the top of the ioctl function, which at the moment does absolutely nothing, to the default switch ca
First step towards cleaning up the Ethernet driver ioctl handling. Move calling ether_ioctl() from the top of the ioctl function, which at the moment does absolutely nothing, to the default switch case. Thus allowing drivers to define their own ioctl handlers and then falling back on ether_ioctl(). The only functional change this results in at the moment is having all Ethernet drivers returning the proper errno of ENOTTY instead of EINVAL/ENXIO when encountering unknown ioctl's.
Shrinks the i386 kernels by.. RAMDISK - 1024 bytes RAMDISKB - 1120 bytes RAMDISKC - 832 bytes
Tested by martin@/jsing@/todd@/brad@ Build tested on almost all archs by todd@/brad@
ok jsing@
show more ...
|
| #
1ac74572 |
| 22-Apr-2007 |
deraadt <deraadt@openbsd.org> |
better interrupt names for vmstat -iz; ok miod gwk
|
| #
c4acdf64 |
| 25-Mar-2006 |
djm <djm@openbsd.org> |
allow bpf(4) to ignore packets based on their direction (inbound or outbound), using a new BIOCSDIRFILT ioctl; guidance, feedback and ok canacar@
|
| #
f4fa60d9 |
| 09-Oct-2005 |
brad <brad@openbsd.org> |
remove some NetBSD/OpenBSD portability cruft.
compiles ok kettenis@
|