summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_vr.c
AgeCommit message (Collapse)Author
2006-04-28check for IFF_RUNNING being set before calling vr_init().Brad Smith
2006-03-25allow bpf(4) to ignore packets based on their direction (inbound orDamien Miller
outbound), using a new BIOCSDIRFILT ioctl; guidance, feedback and ok canacar@
2006-03-20de-register.Brad Smith
2006-02-07move the devices list up a bit.Brad Smith
2006-02-06vr_start(): return if IFF_OACTIVE is set.Brad Smith
From FreeBSD via Andrey Matveev
2006-02-05make sure to set or clear the RX mode promiscuous bit.Brad Smith
tested by Andrey Matveev
2006-02-05call vr_setmulti() if adjusting PROMISC or ALLMULTI and do not do a fullBrad Smith
re-init if configuring the IP address. tested by Andrey Matveev
2006-01-14- the allmulti target initially enables all multicast mode so don't botherBrad Smith
checking the IFF_ALLMULTI flag. - clean up vr_encap() a bit. From: Andrey Matveev <evol at online dot ptt dot ru>
2005-12-10Check dm_nsegs > 0 rather than dm_segs > 0 when deciding if there areKenneth R Westerback
valid segments to unload. Spotted by lint. ok miod@
2005-12-10remove an unused mbuf struct from vr_encap(), leftover from Jason's bus_dma ↵Brad Smith
conversion. From Andrey Matveev <evol at online dot ptt dot ru>
2005-12-10ANSI functions.Brad Smith
From Andrey Matveev <evol at online dot ptt dot ru>
2005-12-08- remove unnecessary return at end of void functionBrad Smith
- remove unnecessary cast to void for splx From Andrey Matveev <evol at online dot ptt dot ru>
2005-12-07this should fix the VT6103.Brad Smith
2005-11-07- splimp -> splnetBrad Smith
- 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)
2005-11-04- splimp -> splnetBrad Smith
- remove spl's from attach - fix dmesg printing - de-allocate resources on failure to attach
2005-09-11do not inline pci_mapreg_map() anymore as it is olrite now; brad@ okMichael Shalayeff
2005-07-06- Rewritten TX to use only two pointers to track producer/consumer.Brad Smith
- Bugfix: don't forget to set IFF_OACTIVE when TX list is full. From FreeBSD - clear IFF_RUNNING & IFF_OACTIVE in vr_stop() before de-allocating resources. Thanks to cloder@, millert@ and pedro@ for testing.
2005-01-15make sure interface is in RUNNING state before touching the multicast filtersBrad Smith
From NetBSD NetBSD PR 27678 for details ok mcbride@
2004-09-23don't need to set ifp->if_mtu or ifp->if_output in each driver,Brad Smith
{ether,atm,fddi}_ifattach already does this. ok mcbride@ markus@ henning@
2004-06-06Multicast cleanupsRyan Thomas McBride
- make multicast ranges work - replace handrolled crc code with ether_crc32_{be,le}() - add missing calls to ether_{add,del}multi() ok deraadt@
2004-04-14new vr; loki@animata.netTheo de Raadt
2003-12-29no vtophys(), don't need uvm_extern.h anymore.Brad Smith
tested on alpha, i386, macppc and sparc64. ok millert@ mickey@
2003-10-14Add htole and bus_dmamap_sync code. These allow if_vr to work on powerpc.Dale Rahn
Code is a collaboration of jason@ and myself. Ok jason@
2003-10-13last vtophys (tx data) is now dead. Needs dma sync's and probably moreJason Wright
htole32 now.
2003-10-12only one vtophys left (tx data)... both the rx and tx descriptors areJason Wright
fully handled by bus_dma now.
2003-10-12rework rx to use bus_dma and sprinkle with a small amount of htole32.Jason Wright
2003-10-10unsmoke drugs in vr_encap() (simplify it quite alot)Jason Wright
prepare for bus_dma of tx data
2003-10-10lightly season with a touch of htole32()... a pinch will do.Jason Wright
2003-10-10another easy vtophys removal (tx descriptor setup)... 6 to go.Jason Wright
2003-10-10don't use vtophys on rx lists any moreJason Wright
2003-10-07Do not forget to initialise the version member of the softc, and bringMiod Vallat
yet another set of reliability fixes from FreeBSD; PR #3461
2003-02-19Sync if_vr code with FreeBSD. This makes the driver much better when it comesMiod Vallat
to trying to recover the hardware going nuts under the load. Reported to work by various people including krw@and I.
2003-02-09Must set BCR0/BCR1 since they can override the RXCFG/TXCFG registers; from ↵Jason Wright
freebsd via openbsd pr 3086 (thom at press dot alt-f4 dot org)
2003-01-12add support for via rhine III; Jonathon Fletcher, jonathon.fletcher at pobox ↵Jason Wright
dot com
2003-01-12pad tx buffer with zero's; John L. Scarfone, j0 at cox.netJason Wright
2002-11-19Add a simplistic table driven lookup routine and use it where appropriate.Jason Wright
2002-05-14Fixed ALTQ support.Todd C. Miller
Patch from ftp://ftp.csl.sony.co.jp/pub/kjc/altq-3.1.errata.txt (kjc)
2002-04-03back out ALTQ diff which breaks it; see PR 2517Theo de Raadt
2002-03-14First round of __P removal in sysTodd C. Miller
2002-03-12sync with KAMEKenjiro Cho
ALTQify more drivers. ok millert@
2002-02-15Don't cast nonexistent return value from splx to (void). ok art@Thomas Nordin
2001-11-06Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary.Miod Vallat
(Look ma, I might have broken the tree)
2001-08-25Change pci_intr_map to take pci_attach_args as an argument.Artur Grabowski
All callers actually took all arguments to pci_intr_map from pci_attach_args structs, so this simplifies code. This also allows more complicated interrupt assignment schemes like the one on sparc64. This makes sparc64 pci interrupts work. Inspired by the same change in NetBSD.
2001-08-12remove redundant vm includesMichael Shalayeff
2001-06-27ALTQ'ify network drivers.Kenjiro Cho
- use the new queue macros. - use IFQ_POLL() to peek at the next packet. - use IFQ_IS_EMPTY() for empty check. - drivers should always check if (m == NULL) after IFQ_DEQUEUE(), since it could return NULL even when IFQ_IS_EMPTY() is FALSE under rate-limiting. - drivers are supposed to call if_start from tx complete interrupts (in order to trigger the next dequeue under rate-limiting).
2001-06-24Program the address filter in vr_init(). Apparently the rhine cards are smartAaron Campbell
enough to read their own Ethernet address from the EEPROM and program their unicast filters automatically, but to support setting the Ethernet address with ifconfig on vr(4) cards we need to do this. From FreeBSD.
2001-06-24more ether_input_mbuf() conversion.Federico G. Schwindt
2001-05-16Bring chip out of suspend mode in case we're booting after a shutdown fromAaron Campbell
Windows. Needed for the VT6102, but doesn't hurt older chips; from FreeBSD.
2001-03-25Missing splx(s). Thanks to dawson and team for finding this oneConstantine Sapuntzakis
2001-02-20for ethernet ifaces attach bpf from ether_ifattach; jason@, aaron@, itojun@ okMichael Shalayeff