summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_nfe.c
AgeCommit message (Collapse)Author
2007-03-02MCP65 has no hardware checksum support.Jonathan Gray
Diff from brad after he noticed recent changes in the Linux driver by an NVIDIA employee.
2007-01-08Add support for HW TCP/IP checksum offload for adapters that support it.Damien Bergamini
Tested by many (IP/UDP/TCP): Jason McIntyre <jmc@> Chris Kuethe <chris.kuethe AT gmail.com> Alf Schlichting <a.schlichting AT lemarit.com> Rodolfo Gouveia <rgouveia AT cosmico.net> Peter Stromberg <wilfried@> Has been in snaps for weeks too with noone complaining so far.
2006-11-15Correct the WOL magic value and rename NFE_WOL_MAGIC to NFE_WOL_ENABLE.Brad Smith
WOL magic value from Peer Chen@NVIDIA via FreeBSD. ok jsg@ damien@
2006-11-10Defer setting of the valid bit in the first TX descriptor afterDamien Bergamini
all descriptors have been setup. Otherwise, hardware may start processing descriptors faster than us and crap out. Fixes "watchdog timeout" errors. Original idea from Matthew Dillon @DragonFly. ok deraadt@ jsg@ wim@ tested by many
2006-11-05add the NVIDIA MCP67 LAN PCI ids.Brad Smith
2006-07-23add NVidia MCP61/65 ids.Brad Smith
2006-06-17add sys/timeout.hBrad Smith
2006-05-29garbage collect NFE_NO_JUMBO.Brad Smith
2006-05-28- remove ETHER_MAX_LEN_JUMBO and ETHERMTU_JUMBO.Brad Smith
- use if_hardmtu for MTU ioctl handlers. ok reyk@
2006-05-28unknown ioctl is ENOTTY not EINVALJason Wright
2006-05-27remove IFCAP_JUMBO_MTU interface capabilities flag and set if_hardmtu in a fewBrad Smith
more drivers. ok reyk@
2006-05-20set if_jumbo_mtu and the IFCAP_JUMBO_MTU capabilities flag whereBrad Smith
appropriate. ok reyk@
2006-04-26Use %b in error flag printfs to describe meaning of error bits.Jonathan Gray
requested by deraadt@
2006-04-26And commit the diff from the right system.Brad Smith
2006-04-26check for IFF_RUNNING being set before calling nfe_init().Brad Smith
ok damien@ jsg@
2006-04-07Add work around for mbuf leak in the tx path until weJonathan Gray
can come up with a better guess as to how the hardware works. From Chuck Silvers. ok damien@
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-02Put the PHY update/reset call in nfe_init back to the spot it was atJonathan Gray
before Rx/Tx/Interrupts are enabled. This makes <fredd at cse.sc.edu>'s nfe+icsphy setup work again. Tested on nfe+eephy by otto@ and myself, nfe+ciphy by otto@ and nfe+rlphy by wilfried@ ok deraadt@
2006-02-26use sc->sc_dev.dv_xname consistently.Damien Bergamini
2006-02-26Let if_nfe.c compile again by putting declaration of ifp inside #ifdefKenneth R Westerback
NFE_DEBUG. ok dlg@
2006-02-26Don't define NFE_DEBUG by default.Jonathan Gray
Set default debug level to 0. Make sure to include interface or function name in debug strings. Print Tx errors from the MAC when debug is not on.
2006-02-24check for M_PKTHDR.Brad Smith
2006-02-22fix nfe_txeof() to reset the wathdog timeout only when a full tx frameDamien Bergamini
has been sent.
2006-02-22re-enable interrupt mitigation and mask out NFE_IRQ_TIMER that was causingDamien Bergamini
interrupts flood.
2006-02-22update the media settings after MAC setup.Brad Smith
2006-02-21disable interrupt mitigation until i figure out why we're spending 10% ofDamien Bergamini
CPU time in interrupts with it.
2006-02-20- remove mbuf linearization code. it is broken in this context and it is veryDamien Bergamini
unlikely that we will see mbuf chains with 62 fragments anytime soon (anyway, it would not crash, it would just freeze TX). - fix max scatter value so we don't end up filling the ring with one mbuf chain.
2006-02-19- fix h/w VLAN tagging and enable it for adapters that support it (VLAN tagDamien Bergamini
stripping job is left to the network stack). - enable interrupt mitigation by default. - add some magic to the initialization sequence in the hope that it will fix TX issues seen on some adapters.
2006-02-16- stop enabling/disabling interrupts in nfe_intr().Damien Bergamini
- store RX/TX settings in nfe_softc so we don't recompute them all the time. - fix h/w VLAN tagging flags.
2006-02-15move setting IFCAP_VLAN_MTU back to where it is supposed to be.Brad Smith
2006-02-15add support for 64bit rings base addresses.Damien Bergamini
2006-02-15actually disable h/w VLAN tagging for now.Damien Bergamini
2006-02-15- enable jumbo frames for adapters that support it.Damien Bergamini
- extend TX DMA mappings size from MCLBYTES to NFE_JBYTES. - add initial (disabled) bits for interrupts mitigation. - add initial (disabled) bits for h/w VLAN tagging. - did some consistency tweaks while i'm here.
2006-02-13use pci_mapreg_type().Brad Smith
ok damien@
2006-02-13nVidia/nvidia -> NVIDIABrad Smith
2006-02-12fix a printfDamien Bergamini
2006-02-12don't print shared interrupts when debugging is on.Damien Bergamini
2006-02-12use BUS_DMA_READ flag when mapping RX buffers.Damien Bergamini
2006-02-12reduce the number of DMA sync operations by sincing multiple TX descriptorsDamien Bergamini
at once.
2006-02-12initial jumbo frames support (disabled for now).Damien Bergamini
#define'ing NFE_NO_JUMBO can save a few hundred KB of wired memory.
2006-02-11set IFCAP_VLAN_MTU in the capabilites field.Brad Smith
ok damien@
2006-02-11- call nfe_ifmedia_upd() early in nfe_init() to reset the PHY.Damien Bergamini
- set RX buffer size register properly
2006-02-11fix nfe_free_tx_ring() and nfe_reset_tx_ring() to unmap the good items.Damien Bergamini
2006-02-11don't free the mbuf in nfe_encap() if it can't be DMA'mapped since it isDamien Bergamini
left in if_snd. prettify nfe_start() a bit while i'm here.
2006-02-11MCP51 boards don't support jumbo frames..Damien Bergamini
2006-02-11force a wakeup of the MAC in nfe_init().Damien Bergamini
this makes my MCP51 board working. committed over a nfe.
2006-02-10Only kick the TX engine once in nfe_start() and only if there areBrad Smith
packets to be transmitted, after iterating through the queue and queuing up as many packets as possible as opposed to kicking it each time through nfe_encap(). ok damien@ jsg@
2006-02-08Add back minimal debugging to help track down tx errors some MACsJonathan Gray
seem to be reporting.
2006-02-08Use __LP64__ instead of __amd64__ for portability.Jonathan Gray
Pointed out by miod@.
2006-02-07Disable checksum offload for the moment as it appears to notJonathan Gray
work for some people.