| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Note that pseudo-drivers not using if_input() are not affected by this
conversion.
ok mikeb@, kettenis@, claudio@, dlg@
|
|
|
|
|
|
|
|
|
|
|
|
| |
there's no need to do it in m_devget(9).
Stop passing an ``ifp'' will help for upcoming interface pointer -> index
conversion.
While here remove unused ``ifp'' argument from m_clget(9) and kill two
birds^W layer violations in one commit.
ok henning@
|
|
|
|
| |
Tested by sebastia@
|
|
|
|
|
|
|
| |
have any direct symbols used. Tested for indirect use by compiling
amd64/i386/sparc64 kernels.
ok tedu@ deraadt@
|
|
|
|
|
|
|
|
|
|
| |
- Lower the max # of TX DMA segments from close to the whole ring down
to a more sensible value. From FreeBSD
- Move the TX ring full check out of and above the for loop.
- Use dm_nsegs to provide the total # of DMA segments instead of the
value from the for loop.
ok mikeb@
|
|
|
|
| |
but not if calling sis_iff() via sis_ioctl().
|
| |
|
|
|
|
|
|
| |
the RX filter.
From FreeBSD
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
to using if_rxr.
cut the reporting systat did over to the rxr ioctl.
tested as much as i can on alpha, amd64, and sparc64.
mpi@ has run it on macppc.
ok mpi@
|
|
|
|
|
| |
drivers) activate functions at DVACT_RESUME time do not need to do
so, since their PHYs are repaired by IFF_UP.
|
|
|
|
|
|
|
|
| |
kernel resumes normal (non-cold, able to run processes, etc) operation.
Previously we were relying on specific DVACT_RESUME op's in drivers
creating callback/threads themselves, but that has become too common,
indicating the need for a built-in mechanism.
ok dlg kettenis, tested by a sufficient amount of people
|
|
|
|
|
|
|
|
|
| |
alternative to bcopy since noone uses it.
while there use memcpy instead of bcopy because we know the memory cannot
overlap.
ok henning@ matthew@ mikeb@ deraadt@
|
|
|
|
|
| |
don't have to. Just remove these include lines.
Compiled on amd64 i386 sparc64; OK henning@ mikeb@
|
|
|
|
|
|
|
|
|
| |
handled within sis_miibus_statchg() instead of calling
sis_init().
Based on the FreeBSD sis(4) driver.
ok mikeb@ sthen@
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
revision as well.
- Sync the short cable workaround a bit closer to FreeBSD. No functional change.
From FreeBSD
- Add some comments.
From NetBSD
ok sthen@
|
|
|
|
|
|
|
|
| |
100us, not 100ms.
From FreeBSD
ok chris@
|
|
|
|
|
| |
any additional chip reprogramming, and is tested to work fine on DP83815.
ok mikeb@
|
|
|
|
|
|
| |
necessarily correct, there might not even be a link when attaching.
ok mikeb@ reyk@
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
when leaving. when you're handling an interrupt it is masked.
whacking the chip is work for no gain.
modify the interrupt handler so it only processes the rings once,
rather than looping over them until it runs out of work to do.
looping in the isr is bad for several reasons:
firstly, the chip does interrupt mitigation so you have a
decent/predictable amount of work to do in the isr. your first loop
will do that chunk of work (ie, it pulls off 50ish packets), and
then the successive looping aggressively pull one or two packets
off the rx ring. these extra loops work against the benefit that
interrupt mitigation provides.
bus space reads are slow. we should avoid doing them where possible
(but we should always do them when necessary).
doing the loop 5 times per isr works against the mclgeti semantics.
it knows a nic is busy and therefore needs more rx descriptors by
watching to see when the nic uses all of its descriptors between
interrupts. if we're aggressively pulling packets off by looping
in the isr then we're skewing this check.
ok henning@ krw@
testing by sthen@
|
|
|
|
| |
ok claudio@
|
|
|
|
|
|
| |
that hands them over to the hardware. This prevents the hardware from seeing
stale contents if the compiler decides to re-order stores or if the hardware
does store-reordering.
|
|
|
|
|
|
|
|
| |
DVACT_SUSPEND, therefore DVACT_QUIECE can do standard sleeping operations
to get ready.
Discussed quite a while back with kettenis and jakemsr, oga suddenly needed
it as well and wrote half of it, so it was time to finish it.
proofread by miod.
|
| |
|
| |
|
|
|
|
| |
ok krw@
|
|
|
|
| |
ok dlg@
|
|
|
|
| |
we now know the interface has already been stopped
|
|
|
|
|
|
| |
reducing the amount of splnet/splx dancing required.. especially in the
worst case (of m_cldrop)
ok dlg kettenis damien
|
|
|
|
| |
sokeris by mk@, and to work on sparc64 by brad@ and on sgi by yours truly.
|
|
|
|
| |
an #ifdef #else #endif dance. Reminded by Brad.
|
|
|
|
|
| |
While there switch some m_freem() to m_free() where only a single mbuf is
involved.
|
|
|
|
| |
happen with MCLGETI and nothing serious at all.
|
|
|
|
| |
into sis_iff_ns() (called only for natsemi). from Brad.
|
|
|
|
|
|
|
| |
up the code a bit.
- Remove unused sc_if_flags field.
from Brad.
|
|
|
|
|
|
|
| |
little green slug does not block userland even when hammered with twice as
much traffic it can handle. Almost the same code I came up during h2k8 but
now with two other bugs fixed that where exposed by MCLGETI().
Tested and OK dlg@ sthen@ and a lot of pushing by Theo.
|
|
|
|
|
|
|
|
| |
with an rx error (SIS_RXSTAT_GIANT) eventhough everything is fine.
Change code to clear this error on RX if the size of the packet is smaller
then 1532 bytes.
From FreeBSD via Brad. Tested on the more common National chips by me.
Ok deraadt@
|
|
|
|
|
|
| |
like you're supposed to. Makes this file slightly less horrible.
ok kettenis@, "yes" deraadt@.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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@
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
now the offset into the first mbuf of the target chain before copying
the source data over. From FreeBSD.
Convert drivers' use of m_devget(). Mostly from thib@.
Update mbuf(9) man page.
ok claudio@, thib@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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@
|
|
|
|
|
|
| |
sis_newbuf(), so remove the call.
ok and lots of prodding dlg@, brad@
|
|
|
|
|
|
|
| |
adjust the mbuf before loading it, with bus_dmamap_load_mbuf(),
that way we dont have to fiddle with ds_addr;
ok dlg@
|
|
|
|
|
|
|
| |
we want too load an mbuf; remove a printf that fires in case
we can't load the mbuf (We do error handling and recovery).
ok brad@, dlg@
|