summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_nge.c
AgeCommit message (Collapse)Author
2011-06-22kill a few more casts that aren't helpful. ok krw miodTed Unangst
2010-09-20Stop doing shutdown hooks in network drivers where possible. We alreadyTheo de Raadt
take all interfaces down, via their xxstop routines. Claudio and I have verified that none of the shutdown hooks do much extra beyond what xxstop was already doing; it is largely a pile of junk. ok claudio, some early comments by sthen; also read by matthew, jsg
2010-05-19BUS_DMA_ZERO instead of alloc, map, bzero.Owain Ainsworth
ok krw@
2009-08-13- consistify cfdriver for the ethernet drivers (0 -> NULL)Jasper Lievisse Adriaanse
ok dlg@
2008-11-28Eliminate the redundant bits of code for MTU and multicast handlingBrad Smith
from the individual drivers now that ether_ioctl() handles this. Shrinks the i386 kernels by.. RAMDISK - 2176 bytes RAMDISKB - 1504 bytes RAMDISKC - 736 bytes Tested by naddy@/okan@/sthen@/brad@/todd@/jmc@ and lots of users. Build tested on almost all archs by todd@/brad@ ok naddy@
2008-11-09Introduce bpf_mtap_ether(), which for the benefit of bpf listenersChristian Weisgerber
creates the VLAN encapsulation from the tag stored in the mbuf header. Idea from FreeBSD, input from claudio@ and canacar@. Switch all hardware VLAN enabled drivers to the new function. ok claudio@
2008-10-28#if NVLAN > 0 in one more spot.Brad Smith
2008-10-28Implement a workaround for stupid hw when using VLAN stripping. FramesBrad Smith
that are 64 bytes with a VLAN header appended like ARP frames or ICMP echos are flagged as runts when the tag is stripped. Issue mentioned by yongari@FreeBSD, info gleaned from the Linux driver.
2008-10-28Don't need NVLAN > 0 checks around this code.Brad Smith
2008-10-28Re-add support TX VLAN tag insertion and RX VLAN tag stripping.Brad Smith
2008-10-16Switch the existing TX VLAN hardware support over to having theChristian Weisgerber
tag in the header. Convert TX tagging in the drivers. Help and ok brad@
2008-10-15Second pass of simple timeout_add -> timeout_add_sec conversionsBret Lambert
This should take care of the simpler ones (i.e., timeout values of integer multiples of hz). ok krw@, art@
2008-10-02First step towards cleaning up the Ethernet driver ioctl handling.Brad Smith
Move calling ether_ioctl() from the top of the ioctl function, which at the moment does absolutely nothing, to the default switch case. Thus allowing drivers to define their own ioctl handlers and then falling back on ether_ioctl(). The only functional change this results in at the moment is having all Ethernet drivers returning the proper errno of ENOTTY instead of EINVAL/ENXIO when encountering unknown ioctl's. Shrinks the i386 kernels by.. RAMDISK - 1024 bytes RAMDISKB - 1120 bytes RAMDISKC - 832 bytes Tested by martin@/jsing@/todd@/brad@ Build tested on almost all archs by todd@/brad@ ok jsing@
2008-05-23Simplify the combination use of pci_mapreg_type()/pci_mapreg_map() asBrad Smith
suggested by dlg@ awhile ago. ok dlg@
2007-11-26typos; ok jmc@Martynas Venckus
sys/netinet/in_pcb.c and sys/net/bridgestp.c ok henning@ sys/dev/pci/bktr/* ok jakemsr@
2006-10-25replace a few more instances of hand rolled code with theBrad Smith
LIST_FOREACH macro.
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-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-04remove the colon between "address" and the MAC address.Brad Smith
2006-02-16Do not bother enabling HW TX checksum offload since the code toBrad Smith
support this feature was removed awhile ago.
2005-11-23assume vtophys(vaddr_t) just what all the other archs expect; no functional ↵Michael Shalayeff
change
2005-11-04- splimp -> splnetBrad Smith
- remove spl from attach - fix dmesg printing - de-allocate resources on failure to attach - remove redundant checks just before pci_mapreg_map() - use pci_mapreg_type()
2005-10-09fix bus_dmamem_alloc() failure case.Brad Smith
2005-09-11do not inline pci_mapreg_map() anymore as it is olrite now; brad@ okMichael Shalayeff
2005-08-09do not set PCI_COMMAND_MASTER_ENABLE explicitly as it's already set in ↵Michael Shalayeff
pcisubmatch(); kettenis@ testing; brad@ ok
2005-07-30sync nge/ti_alloc_jumbo_mem() to look like bge's bge_alloc_jumbo_mem()Brad Smith
2005-07-25don't bother with printf in *_jalloc()Brad Smith
2005-07-09remove code for TX checksumBrad Smith
2005-07-09don't clear RUNNING here.Brad Smith
2005-07-09betterBrad Smith
2005-07-09- mbuf external storage is of (caddr_t), not (caddr_t *).Brad Smith
- simplify code a bit and use MEXTADD macro.
2005-07-09fix SIOCSIFMTUBrad Smith
2005-07-09- disable TX checksum offload since this chip has a bug whereBrad Smith
it'll wedge if you try to transmit a Jumbo frame larger than 8152 bytes. - Rip out VLAN stripping support. From camiel@ - Only set Ok flags for receive checksum offload otherwise fallback on software.
2005-07-02clear IFF_RUNNING & IFF_OACTIVE in foo_stop() before de-allocating resources.Brad Smith
2005-05-25Fix instances of macros with improperly parenthasized arguments.Brad Smith
2005-05-25- Fixed resetting of the watchdog timer and queue full flag.Brad Smith
- When reading PHY regs over the i2c bus, the turnaround ACK bit is read one clock edge too late. This bit is driven low by slave (as any other input data bits from slave) when the clock is LOW. The current code did read the bit after the clock was driven high again. - Do not call mii_pollstat() from within device tick routines; the status information is updated by mii_tick(). From FreeBSD
2005-04-25csum -> csum_flagsBrad Smith
ok krw@ canacar@
2005-02-17miscellaneous typo fixes:Jean-Francois Brousseau
- sturct -> struct (spotted by pedro) - elimination of consecutive 'the' words ok jmc@, henning@, krw@, robert@, some whining by jolan@
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-05remove some separate per driver constants and useBrad Smith
ETHER_MAX_LEN_JUMBO/ETHERMTU_JUMBO where appropriate. ok mcbride@ henning@ mickey@
2004-05-30Multicast fixups:Ryan Thomas McBride
- remove bogus use of LLADDR - scrap nge_crc in favour of ether_crc32_be - accept all multicast when we encounter a multicast range ok deraadt@
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@
2003-08-06Remove some double semicolons (hmm, do two semis equal a maxi?).Todd C. Miller
I've skipped the GNU stuff for now. From Patrick Latifi.
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-09-22use #ifndef __STRICT_ALIGNMENT instead of #ifdef __i386.Nathan Binkert
recommended by jason
2002-09-21Add support for TBI mode in fiber based cards (heavily inspired by FreeBSD)Nathan Binkert
Clean up debugging printfs Remove some old debugging code that shouldn't be there. More changes from FreeBSD: - ignore alignment problem on x86 platforms and don't copy. - increase receive list to 128 to match transmit - change a bit in the interrupt handling