Commit Graph

15 Commits

Author SHA1 Message Date
christos
2f36e318cc remove trailing whitespace 2013-03-30 03:21:02 +00:00
matt
0bc3200029 Fix mii_statchg to take a 'struct ifnet *' instead of device_t. This fixes
problem with a common MDIO bus used for multiple interfaces.
Some drivers converted to CFATTACL_DECL_NEW.
2012-07-22 14:32:49 +00:00
cegger
c970166801 Fixes from PR kern/44395 Masanori Kanaoka:
- Fix register address in ale_phy_reset(). from linux
- Fix mask value in ale_stop_mac().
- Fix multicast handling. from openbsd
- Fix phy reset handling.
2011-01-22 08:13:47 +00:00
cegger
e384b22568 PR kern/38871: Fix VLAN 2010-07-20 09:17:24 +00:00
joerg
58e867556f Push the bpf_ops usage back into bpf.h. Push the common ifp->if_bpf
check into the inline functions as well the fourth argument for
bpf_attach.
2010-04-05 07:19:28 +00:00
pooka
10fe49d72c Redefine bpf linkage through an always present op vector, i.e.
#if NBPFILTER is no longer required in the client.  This change
doesn't yet add support for loading bpf as a module, since drivers
can register before bpf is attached.  However, callers of bpf can
now be modularized.

Dynamically loadable bpf could probably be done fairly easily with
coordination from the stub driver and the real driver by registering
attachments in the stub before the real driver is loaded and doing
a handoff.  ... and I'm not going to ponder the depths of unload
here.

Tested with i386/MONOLITHIC, modified MONOLITHIC without bpf and rump.
2010-01-19 22:06:18 +00:00
cegger
446b6b0dd3 Use m_pullup to handle defragmentation.
Reinject mbuf into TX queue when it couldn't be loaded.

diff for age(4) reviewed/discussed with plunky@ several weeks ago.
2009-10-08 08:57:19 +00:00
tsutsui
64cbab9fdb Invert logic around nested pmf(9) registrations for readability. 2009-09-05 14:09:55 +00:00
cegger
d708daccf1 fix multicast. 2009-08-18 06:02:36 +00:00
cegger
f68c98340e don't read/write 1000baseT specific MII registers on 10/100M only device.
from OpenBSD.
2009-08-18 05:50:55 +00:00
cegger
b297f62c5a support flow control. from OpenBSD.
tested by Kevin Lahey
2009-08-05 07:03:04 +00:00
cegger
40e186cdb8 print chipset name. From OpenBSD. 2009-07-28 06:02:34 +00:00
cegger
a4aa7dace4 on detach, deregister from pmf 2009-04-28 11:49:15 +00:00
tsutsui
76e4602ef6 Add RCS Id. 2009-04-25 17:04:40 +00:00
cegger
85620a64b2 Add ale(4), a driver for Attansic/Atheros L1E gigabit ethernet device.
Ported by me from OpenBSD, improvements from Kevin Lahey,
successfully tested by Kevin Lahey and Stephen Borrill.
2009-04-20 20:10:23 +00:00