summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_em.c
AgeCommit message (Collapse)Author
2006-09-29move the checksum stuff under EM_CSUM_OFFLOAD.Brad Smith
2006-09-17Try to reclaim the TX descriptors in the watchdog handler before actuallyBrad Smith
issuing a watchdog reset of the interface. From yongari@FreeBSD
2006-09-17Overhaul RX path to recover from mbuf cluster allocation failure.Brad Smith
- Create a spare DMA map for RX handler to recover from bus_dmamap_load() failure. - Make sure to update status bit in RX descriptors even if we failed to allocate a new buffer. - Don't blindly unload DMA map. Reuse loaded DMA map if received packet has errors. From yongari@FreeBSD Tested by myself and a number of end-users on i386/amd64/sparc64
2006-09-17revert revision 1.131, the code in question was later found to not ensureBrad Smith
the proper alignment requirement for the VLAN layer on strict alignment architectures. This would result in Jumbo's working fine as long as VLANs were not in use. If VLANs were in use and a packet comes in with a size of 2046 bytes or larger, it would be corrupted as it came up through the VLAN layer. Also check the hw max frame size, instead of the MTU, so the alignment fixup is done as appropriate. Fixes PR 5185. Tested by Rui DeSousa with macppc and myself with alpha/sparc64.
2006-08-22- Re-add the m_adj() back into em_get_buf(), but this time checkBrad Smith
the HW max frame size and only call m_adj() if the size is less than or equal to MCLBYTES - ETHER_ALIGN (2046). - Set the HW long packet enable bit on all adapters, even 82573 based adapters which are capable of Jumbo's. - Only do RX alignment fixup on adapters capable of Jumbo frames. ok jason@
2006-08-14replace a incorrect number with a proper define. this is a no-op changeBrad Smith
since E1000_FDX_COLLISION_DISTANCE and E1000_HDX_COLLISION_DISTANCE use the same values. From glebius@FreeBSD
2006-08-09cosmetic tweaks.Brad Smith
2006-08-09Sync up to Intel's latest FreeBSD em driver (6.1.4). Adds PCI id for the PCIeBrad Smith
quad port copper adapter, improvements for media support with fiber adapters, and some fixes for the ICH8 support.
2006-08-09Use the DMA map size from the DMA map instead of the dma_size field withBrad Smith
bus_dma sync's. ok dlg@ marco@
2006-08-04- merge em/ixgb_disable_promisc() into em/ixgb_set_promisc().Brad Smith
- rearrange interface flags ioctl handler.
2006-08-04fix up error messages in em/ixgb_allocate_pci_resources().Brad Smith
2006-08-01(em/ixgb)_(clean_transmit_interrupts/process_receive_interrupts) ->Brad Smith
(em/ixgb)_(txeof/rxeof)
2006-07-10Fully initialize the softc structure before enabling interrupt. ok brad@Dale Rahn
2006-07-08don't add 1000Mbps media types for a 10/100 only PHY.Brad Smith
2006-07-07Sync up to Intel's latest FreeBSD em driver (6.0.5). Adds supportBrad Smith
for new chipset revisions embedded in the ESB2 and ICH8 core logic chipsets. The previous attempt at commiting this included an unrelated change to how the I/O base address was being set and this was the cause of the breakage. From: Intel's web-site
2006-07-05revert back to the older driver as this causes some breakage.Brad Smith
2006-07-03Sync up to Intel's latest FreeBSD em driver (6.0.5). Adds supportBrad Smith
for new chipset revisions embedded in the ESB2 and ICH8 core logic chipsets. From: Intel's web-site
2006-06-28remove some whitespace.Brad Smith
2006-06-24make em_fixup_rx() a void function.Brad Smith
2006-05-31fix Jumbo frames on strict alignment architectures by allocating a new mbuf andBrad Smith
copying the Ethernet header to the new mbuf. The new mbuf is then prepended into the existing mbuf chain. From FreeBSD ok reyk@ pascoe@ jason@
2006-05-28- force the maximum receivable frame size down to 1518 bytes forBrad Smith
strict alignment architectures for the time being. - remove the m_adj() on non-strict alignment architectures as this seems to resolve the Jumbo crashing issue. tested by a few developers. ok reyk@
2006-05-28always set if_hardmtu.Brad Smith
2006-05-28use if_hardmtu for MTU ioctl handler.Brad Smith
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-26rename jumbo mtu to if_hardmtu; ok brad reykTheo de Raadt
2006-05-25formattingBrad Smith
2006-05-25formatting; ok bradJason Wright
2006-05-20fix pci resource allocation in em, don't crash!Reyk Floeter
fix by brad@
2006-05-20set if_jumbo_mtu and the IFCAP_JUMBO_MTU capabilities flag whereBrad Smith
appropriate. ok reyk@
2006-05-20simplify MTU ioctl switch case.Brad Smith
2006-05-07fix a typo and some KNF.Brad Smith
2006-05-07- Remove unreachable bus_dmamap_unload() in em_dma_malloc().Brad Smith
- Set the dma_tag to NULL upon failure in em_dma_malloc(). - In em_dma_free(), return if dma_tag is NULL.
2006-05-01replace magic value of 32 with EM_MAX_SCATTER.Brad Smith
2006-04-28when setting the interface address, only call em_init() if the interfaceBrad Smith
is not already running.
2006-04-18add a few more Intel Gig PCI ids.Brad Smith
Some of these are from jason@ and the rest are from the Linux PCI ids page.
2006-04-16remove splnet usage from em_intr().Brad Smith
2006-04-12when the interrupt handler has run out of work to do it shouldnt return 0David Gwynne
from the work loop. instead it should break from it so the spl can be lowered and any work that has been done can be counted. this fixes interrupt counting at least, and possibly issues related to leaving splnet raised.. ok deraadt@
2006-03-28Sync up to Intel's latest FreeBSD em driver (5.1.5). Adds supportBrad Smith
for the 82563 PCI Express chipset and a few fixes. From: Intel's web-site
2006-03-27sync in some of the new PCI ids.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-02-24update link status here.Brad Smith
2006-02-22For 82544 and newer chips increase the number of TX descriptors to 512.Brad Smith
2006-02-17If there is no link then set IFM_NONE so ifconfig will show a mediaBrad Smith
status of (none) whether in auto or forced speed/duplex mode.
2006-02-17- simplify link state handling code.Brad Smith
- update interface baud rate properly so userland programs such as a SNMP daemon or bgpctl/ospfctl for example will display the correct interface speed instead of always saying 1 Gbps. From FreeBSD
2006-02-15be gone whitespace.Brad Smith
2006-02-10fix a typo in em_clean_transmit_interrupts() that will cause theBrad Smith
watchdog timer to fire if the TX descriptor ring is emptied for EM_TX_TIMEOUT seconds. The same bug exists in ixgb(4) too. From FreeSBD
2006-02-10remove unnecessary link state check in the watchdog handler.Brad Smith
2006-01-28a little cleaning.Brad Smith
2006-01-14Only update the RX ring consumer pointer after running through the RX loop,Brad Smith
not with each iteration through the loop. From FreeBSD