summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_sk.c
AgeCommit message (Collapse)Author
2005-01-15make sure interface is in RUNNING state before touching the multicast filtersBrad Smith
From NetBSD NetBSD PR 27678 for details ok mcbride@
2005-01-02cleanup and better ram sizing.Brad Smith
2005-01-01better chip/card identification.Brad Smith
From NetBSD ok krw@
2005-01-01rev 1.92Brad Smith
only clear the IFF_OACTIVE flag when we have a chance of being able to queue a packet to the hardware... instead of when the hardware queue is empty.. don't initalize cur_tx now that it doesn't need to be... rev 1.90 _OACTIVE is now handled better... From FreeBSD ok krw@
2005-01-01Don't initialize the card (and start an autonegotiation!) every timeKenneth R Westerback
the IP address changes. Makes 'dhclient sk0' invocations way faster and more consistant. i.e. one DHCPREQUEST elicts the DHCPACK. ok brad@ 'Wow. Great Idea.' deraadt@.
2004-12-22- add missing braces for SIOCSIFMTU switch case.Brad Smith
- allow reception of Jumbo frames all the time on GEnesis based cards, same as Yukon based cards. ok krw@ mcbride@
2004-12-14Fix off-by-one. From FreeBSD r1.87. Also in NetBSD. Field being filledKenneth R Westerback
(sk_vpd_readonly) is not currently used, but the memory being tromped on might be. ok millert@.
2004-12-08use ETHER_MAX_LENBrad Smith
2004-12-08Enable jumbo frames on Yukon varients of sk(4).Kenneth R Westerback
ok mcbride@.
2004-11-16Lower interrupt moderation timer to decrease service latency.Brad Smith
From NetBSD ok deraadt@
2004-11-16back out previous commit and put the right change in which correspondsBrad Smith
to what the previous commit message said... Fix tx queue (slist can be corrupted when tx interrupts hit within tx_encap).
2004-11-16Fix tx queue (slist can be corrupted when tx interrupts hit within tx_encap).Brad Smith
From NetBSD ok henning@ mcbride@
2004-11-11- Fix Yukon ram sizing.Brad Smith
- Keep tx queue running by kicking the tx bmu repeatedly. - Handle if_timer a bit better. From NetBSD ok deraadt@
2004-10-14Bail out quietly if the eeprom appears to be missing or empty. FixesBrad Smith
support for D-Link DGE-530T adapters. From: FreeBSD via Blake Willis <blake at 2112 dot net> 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-08-20a belkin ID on a sk cardTheo de Raadt
2004-08-19Don't complain about lack of jumbo storage when processing incoming packetsRyan Thomas McBride
unless we're debugging.
2004-08-05remove some separate per driver constants and useBrad Smith
ETHER_MAX_LEN_JUMBO/ETHERMTU_JUMBO where appropriate. ok mcbride@ henning@ mickey@
2004-08-04Make jumbo frames work.Ryan Thomas McBride
- allocate and manage our own memory for rx packets rather than using mbuf clusters; code for this lifted from if_bge.c - pass the correct size to bus_dmamap_create() ok deraadt@
2004-05-29replace hand-rolled CRC calculation in multicast hash setup with calls toChristian Weisgerber
ether_crc32_*(); ok mcbride@
2004-05-24Make Yukon-style adapters also set up the multicast filter in sk_init().Christian Weisgerber
This fixes various multicast-related problems. ok henning@
2004-04-09do not whine if we cannot get mbufs. the countless printfd makes the machineHenning Brauer
crawl under mbuf starvation, making the situationmuch worse, and don't make sense in the first place. ok tdeval@ millert@ beck@ deraadt@
2004-03-09Fix multicast on recent sk chipsets. Adapted from a patch by Keith MitchellMatthieu Herrb
in <http://lists.freebsd.org/pipermail/freebsd-hardware/2003-December/000851.html> Ok deraadt@.
2003-12-17not qualifying a product based on vendor AND product ID just bugs meJason Wright
2003-12-17marvell skv2 (smc9452TX); from freebsdJason Wright
2003-12-17add support for linksys (eg1032v2, eg1064v2) and dlink (dge530t); from NetBSDJason Wright
2003-10-13rx checksum offload support (based on earlier code from aaron@, but withJason Wright
fixes by me). Note: sk v1 chips can sometimes compute an incorrect cksum. To deal with that, we never set the "bad" flags. Ie. if the card says it's good, we assume it's good. If the card says it's bad, we fall back to software. Ugly? You betcha.
2003-08-12add/update my copyrightNathan Binkert
2003-08-01Support for new Marvell based Gigabit Ethernet adaptersNathan Binkert
ok deraadt@
2003-05-14Makefile sk(4) use bus_dmaNathan Binkert
ok jason
2003-05-08a bit more cleanupNathan Binkert
2003-05-08ansify, clean up formatting, remove useless return statements.Nathan Binkert
ok jason
2003-03-12sk is capable of transmitting and receiving longer packets for 802.1q vlansNathan Binkert
thanks to David Gwynne <loki@niteshade.net>. ok jason@ deraadt@
2003-01-15Get rid of the remaining vm_offset_t in pci drivers.Artur Grabowski
2002-11-261000baseTX -> 1000baseTNathan Binkert
- More technically correct - Matches FreeBSD and NetBSD - Preserved #define for 1000baseTX for backwards compatibility ok jason@
2002-06-08add missing ioctl support for SIOCSIFMTUJason Wright
2002-06-04spelling; raj@cerias.purdue.eduTheo 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
2002-01-11Check result from malloc(9) when using M_NOWAIT. fgsch@ okThomas 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-10-05use positive logic for matchNathan Binkert
2001-09-11Don't include <vm/vm_kern.h> if you don't need foo_map.Miod Vallat
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-15Add some stuff missed in a previous FreeBSD merge... Fixes the problem whereJason Wright
sk busy loops when carrier is lost until it returns; based on patch from david langhorst <dirt@monkey.org> and tested by John Ladwig <jladwig@mango.lioness.net>
2001-08-12remove redundant vm includesMichael Shalayeff
2001-06-25trivial ether_input_mbuf() conversion.Federico G. Schwindt
2001-03-29From FreeBSD:Jason Wright
- Call mii_pollstat() after we bring up the link on a 1000baseTX card after autoneg so we make sure to set the link state and duplex mode correctly. - Make sure to set the 'ignore pause frames' bit on the XMAC. - Small linewrap fix. - Add actual URL for XMAC II datasheet in comments.
2001-03-25Missing splx(s). Thanks to Dawson and team for finding this oneConstantine Sapuntzakis