| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
|
|
| |
NICs out there that have an utterly bogus revision ID.
Reported by: Denis Shaposhnikov <dsh@vlink.ru>
|
|
|
|
|
|
|
| |
a revision ID of 0x0f (D102 E-step).
MFC after: 2 weeks
Tested by: pav
|
|
|
|
|
|
|
|
|
|
|
| |
latest 82550 and 82551 chipsets (revision IDs 0x0e, 0x0f and 0x10).
We were only enabling it for revisions 0x0c and 0x0d, now it's
enabled for any 8255x NIC with a revision ID bigger than 0x0c. It
should be safe, and this is what Intel does in their open source
driver.
MFC after: 2 weeks
Tested by: Pavel Lobach lobach_pavel at mail dot ru
|
|
|
|
|
|
| |
they're attached to, not after.
Spotted by: Coverity via sam
|
|
|
|
|
|
|
| |
from an mbuf into the fxp_encap() function, as done in other drivers.
- Don't waste time calling bus_dmamap_load_mbuf() if we know the mbuf
chain is too long to fit in a TX descriptor, call m_defrag() first.
- Convert fxp(4) to use bus_dmamap_load_mbuf_sg().
|
| |
|
| |
|
|
|
|
| |
Submitted by: Gavin Atkinson <gavin.atkinson@ury.york.ac.uk>
|
|
|
|
|
|
|
|
|
|
|
|
| |
a vlan interface attached to a fxp(4) card when it has not been
initialized yet. We now set the links from our internel TX descriptor
structure to the TX command blocks at attach time rather than at init
time. While I'm here, slightly improve the style in fxp_attach().
PR: kern/78112
Reported by: Gavin Atkinson <gavin.atkinson@ury.york.ac.uk> and others
Tested by: flz, Gavin Atkinson <gavin.atkinson@ury.york.ac.uk>
MFC after: 1 week
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
testing it to know whether we should enable the 82503 serial mode...
Move code to the right location and disallow the use of the 82503
serial mode if the sc->revision field is 0 again. This makes fxp(4)
work correctly with ATMEL 350 93C46 cards (3 port 82559 based with a
82555 PHY), as well as with the older ATMEL 220 93C46 (same flavour)
and with the even older 10Mbps-only 82557 cards with the 82503 serial
interface.
Tested by: Andre Albsmeier <andrer@albsmeier.net>, krion
MFC after: 2 weeks
|
|
|
|
| |
OK'ed by: njl, rwatson, sam
|
|
|
|
|
|
|
| |
unexpected surprises when a system panics or is left in the debugger.
Requested by: kris
MFC after: 3 days
|
| |
|
|
|
|
|
|
|
|
|
| |
interface as well. This is not an expected revision id per the
datasheet, but unfortunately there are such cards out there with
a 82557 chipset, and they want to use the 82503.
PR: kern/75739
Reported by: Andre Albsmeier <andre.albsmeier@siemens.com>
|
|
|
|
|
|
|
|
|
| |
datasheet says it is only valid for such chipsets and shouldn't be used
with others. This fixes some 82559 based cards which otherwise only
work at 10Mbit.
MFC after: 5 days
Tested by: krion
|
|
|
|
|
|
|
| |
Also change struct ucode.length to be in number of elements (u_int32_t)
to help endian handling.
MFC after: 2 weeks
|
|
|
|
|
|
| |
This is a RELENG_5 candidate.
Submitted by: Mike Tancsa <mike@sentex.net>
|
|
|
|
|
| |
introduced in if_fxp.c revision 1.180. The bug fix committed in
revision 1.180 fixed the packet truncation problem.
|
|
|
|
|
|
|
|
|
|
|
| |
following drivers: bfe(4), em(4), fxp(4), lnc(4), tun(4), de(4) rl(4),
sis(4) and xl(4)
More patches are pending on: http://peoples.freebsd.org/~mlaier/ Please take
a look and tell me if "your" driver is missing, so I can fix this.
Tested-by: many
No-objection: -current, -net
|
|
|
|
| |
The bus does this now.
|
|
|
|
|
| |
mtx_assert() and mtx_owned(), as it is done in other places,
for instance proc locking.
|
|
|
|
|
|
|
|
|
|
|
| |
sysctls were global (hw.fxp_rnr and hw.fxp_noflow), all of them are
now per-device. Sample output of "sysctl dev.fxp0" with this patch,
with the standard %foo nodes removed :
dev.fxp0.int_delay: 1000
dev.fxp0.bundle_max: 6
dev.fxp0.rnr: 0
dev.fxp0.noflow: 0
|
| |
|
|
|
|
|
|
|
|
| |
In particular, disabling it was likely to break configurations
involving ng_vlan(4) since the latter couldn't control
the parent's VLAN_MTU in the way vlan(4) did.
Pointed out by: ru
|
| |
|
|
|
|
|
|
|
|
| |
Now reception of extended frames can be toggled
through ioctl(SIOCSIFCAP).
The card will also receive extended frames when
in promiscuous mode.
|
| |
|
|
|
|
|
|
|
| |
if_capenable unless the interface driver is actually able
to toggle the respective capability on and off.
Reviewed by: ru
|
|
|
|
| |
for us.
|
|
|
|
|
| |
Set capability bits in a consistent way.
Add a comment on why the VLAN_MTU stuff comes after ether_ifattach().
|
|
|
|
| |
so let VLAN_MTU be marked in if_capenable from the beginning.
|
| |
|
|
|
|
|
| |
Submitted by: Stefan Bethke
PR: 61320
|
|
|
|
|
| |
Submitted by: Mark Santcroos <marks@ripe.net>
Reviewed by: imp, dfr, bde
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
this problem put these lines back in. While they should be
unnecessary, they appear to be sometimes necessary.
Reviewed in concept: dfr
Approved by: re (scottl@)
|
|
|
|
|
|
|
| |
to the pci attachment. Cardbus is a derived class of pci so all pci
drivers are automatically available for matching against cardbus devices.
Reviewed by: imp
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
if_xname, if_dname, and if_dunit. if_xname is the name of the interface
and if_dname/unit are the driver name and instance.
This change paves the way for interface renaming and enhanced pseudo
device creation and configuration symantics.
Approved By: re (in principle)
Reviewed By: njl, imp
Tested On: i386, amd64, sparc64
Obtained From: NetBSD (if_xname)
|
| |
|
| |
|
|
|
|
| |
Sponsored by: FreeBSD Foundation
|
|
|
|
|
| |
Glanced over by: imp, gibbs
Tested by: i386 LINT
|
|
|
|
| |
Also some minor style cleanups.
|
|
|
|
|
| |
tree for two or more years now), except in a few places where there's
code to be compatible with older versions of FreeBSD.
|
|
|
|
|
|
|
| |
8255x chips more precisely. The information was obtained from Intel's
Open Source Software Developer Manual for the 8255x.
MFC after: 1 day
|
| |
|