| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
ok dlg@ tobhe@
|
| |
|
|
|
|
| |
"new" API.
ok dlg@ tobhe@
|
| |
|
|
|
|
|
| |
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@
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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@
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
Note that pseudo-drivers not using if_input() are not affected by this
conversion.
ok mikeb@, kettenis@, claudio@, dlg@
|
| |
|
|
| |
ok dlg@
|
| | |
|
| |
|
|
|
|
|
|
| |
as is the case for a lot of the other drivers. Remove some redundant
calls to foo_stop() and foo_reset() before foo_init().
Tested with DP83815, 3c905C, 8139 and ST201.
Mostly from FreeBSD.
|
| | |
|
| |
|
|
|
| |
don't have to. Just remove these include lines.
Compiled on amd64 i386 sparc64; OK henning@ mikeb@
|
| |
|
|
| |
- Move the PCI devices table up to the top
|
| |
|
|
| |
ok sthen@
|
| |
|
|
| |
ok jsing@
|
| |
|
|
|
|
| |
necessarily correct, there might not even be a link when attaching.
ok mikeb@ reyk@
|
| |
|
|
| |
OK reyk@ sthen@
|
| |
|
|
|
|
|
|
| |
pci_set_powerstate() to using it instead. Many of these chunks of code had
bugs in them, especially missing delay() calls. Some of them were doing
things our PCI subsystem is now responsible for handling. If you have
any of the affected devices, please keep an eye out for regressions.
ok kettenis
|
| | |
|
| |
|
|
| |
ok claudio@
|
| |
|
|
| |
ok dlg@
|
| |
|
|
| |
we now know the interface has already been stopped
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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@
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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@
|
| |
|
|
|
|
|
| |
Really just the low-hanging fruit of (hopefully) forthcoming timeout
conversions.
ok art@, krw@
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
From the Sundance Linux driver.
|
| |
|
|
|
| |
outbound), using a new BIOCSDIRFILT ioctl;
guidance, feedback and ok canacar@
|
| |
|
|
|
|
|
|
| |
- remove spl's from attach
- removing redundant checks before pci_mapreg_map()
- fix dmesg printing
- de-allocate resources on failure to attach
- remove unused VLAN input code from vge(4)
|
| |
|
|
|
| |
- make use of pci_mapreg_map()
- ensure driver cleans after itself if ste_attach() fails
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
| |
irq (for shared irq's) on failure. (should other drivers do the same?)
o if it's a rev 0x12 card, only use the first phy as it reports a
non-existent one as well (From FreeBSD).
o remove splimp/splx from ste_attach().
o some cleanup.
thanks to matt at mattroberts dot org and paolo at actcom dot net dot il
for testing; commit deraadt@.
|
| | |
|
| |
|
|
|
|
|
|
| |
From NetBSD
NetBSD PR 27678 for details
ok mcbride@
|
| |
|
|
| |
- Accept VLAN sized frames. based on diff from canacar@
|
| |
|
|
|
| |
patch submitted and tested by Steffen Schütz, schuetz.steffen at melle de
ok tedu@
|
| |
|
|
|
|
| |
{ether,atm,fddi}_ifattach already does this.
ok mcbride@ markus@ henning@
|
| |
|
|
|
|
| |
already disabled and the status update function fails to clear the overflow,
causing high interrupt load. Reported and tested by Arvid Grøtting.
ok deraadt@
|
| |
|
|
|
| |
FreeBSD if_ste.c revisions 1.28, 1.29, 1.38, 1.43, 1.63, 1.68, 1.70
ok henning@
|
| |
|
|
|
|
|
|
| |
- make multicast ranges work
- replace handrolled crc code with ether_crc32_{be,le}()
- add missing calls to ether_{add,del}multi()
ok deraadt@
|
| |
|
|
|
|
| |
crawl under mbuf starvation, making the situationmuch worse, and don't make
sense in the first place.
ok tdeval@ millert@ beck@ deraadt@
|
| | |
|
| |
|
|
| |
ok tedu@
|
| | |
|