Age | Commit message (Collapse) | Author |
|
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@
|
|
from oga@bitrig, ok dtucker
|
|
1758 bytes (MTU 1740) and raise hardmtu to allow the user to set them.
Tests by Mark Patruck, Michal Markowski, mikeb, beck, dtucker. ok mikeb@
|
|
but with tweaks so it works on 6105Ms like those found in pcengines alix
and soekris 5501s. ok sthen@, help brad chris mikeb dlg jsing
There may be other 610x chips that would benefit from the VR_Q_INTDISABLE
quirk, please send me a dmesg if you can confirm it works.
|
|
but possible). Also don't re-calculate vlan tag repeatedly through the
descriptor loop.
ok dtucker@
|
|
|
|
brad@ chris@ jsing@ kettenis@ mikeb@ sthen@
|
|
if we've added a packet. Reduces CPU util a tiny bit. ok brad@ jsing@
|
|
then set the flags. Just set the flags as is done everywhere else.
ok sthen@
|
|
necessarily correct, there might not even be a link when attaching.
ok mikeb@ reyk@
|
|
OK reyk@ sthen@
|
|
ok chris@ deraadt@ dtucker@ mikeb@
|
|
which contradicts the datasheet (but actually works).
Also, use a segment (instead of a new mbuf and data copy) to zero-pad
small packets, modeled after if_myx.
ok sthen@, gerhard@, henning@
|
|
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 deraadt@, mikeb@
|
|
|
|
|
|
fixes hanging interfaces similar to in myx(4); ok dlg@, claudio@, henning@
|
|
|
|
when leaving. when you're handling an interrupt it is masked.
whacking the chip is work for no gain.
diff from chris@
tested by marco@
ok by me :)
|
|
ok claudio krw
|
|
ok deraadt
|
|
interrupt handler if the "no rx buffer available" bit is set and no new mbufs
are available to populate descriptors. While it doesn't make livelock
mitigation work for everybody, it does resolve some lockup issues.
ok sthen@
|
|
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.
There are sme doubts whether the i386/amd64 bus_dmamap_sync() implementation
will be able to convince future compilers that do even more insanely stupid
optimizations from re-ordering stores. That will be addressed in a seperate
patch.
ok matthew@, sthen@, oga@
|
|
ok krw@
|
|
|
|
packet, ie. an output error. This way, we'll be able to see if the
seized interfaces had tx packets queued.
ok claudio
|
|
we can dianose if those ever happen.
ok claudio
|
|
the latter does that itself.
ok claudio
|
|
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
|
|
|
|
Alix boards suck a little bit less because it will be harder to live lock them
with traffic. Diff mostly adapted from sis(4).
OK kettenis@, dlg@, sthen@
|
|
from Brad; ok chris@
|
|
Otherwise the card can mess with mbufs that have been given to the
stack already. Fixes panics seen with a high rate of of small
packets and POOL_DEBUG enabled.
OK sthen@, chris@
|
|
mode; VR_RXCFG_RX_PROMISC isn't enough to allow reception of multicast
frames.
Discussed with Brad, ok dlg@.
|
|
from Brad; ok dlg.
|
|
|
|
m_head could be accessed after it had been freed, so do the access earlier.
from chris@.
|
|
via rhinefet. not yet used, but committing now so it isn't lost.
from chris@, ok dlg.
|
|
alix/net5501 with and without software vlan tagging, also with NFS (v2, v3,
UDP, TCP). Not used on earlier chips and does not introduce problems on
original EPIA board.
From chris@, based on enhancements in the FreeBSD driver.
"put it in then" dlg@, looks good to claudio@.
|
|
from the oldest vt86c100a datasheet to the newest vt6105m. FreeBSD
indicates that it is more reliable than VR_RXSTAT_ERR for detecting
error conditions, that its use results in less incorrectly dropped
packets). From chris@.
|
|
- s/FreeBSD/OpenBSD/ in comment, suggested by mpf
no binary change.
|
|
- add HWTAG capability to the quirks table. not yet used.
from chris@. no functional change.
|
|
- avoid the need for unnecessary mbuf copies on modern vr(4) devices
(ancient ones required longword-alignment, but this has not been the case
for several generations now). reduces cpu time, particularly for forwarded
traffic.
from chris@. tested by chris@, myself, Emilio Perea on various devices
including original VIA EPIA, Soekris net5501, pcengines.ch ALIX.
ok mpf. deraadt and dlg agree with committing at this stage.
|
|
interfaces. Therefore we now always start off with vr_link = 1.
Bug found and feedback by Emilio Perea.
OK sthen@
|