summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_de.c
AgeCommit message (Collapse)Author
2014-09-08remove uneeded route.h includesJonathan Gray
ok miod@ mpi@
2014-07-22Fewer <netinet/in_systm.h>Martin Pieuchot
2014-04-22Remove some altq tentacles.Martin Pieuchot
ok pelikan@, henning@
2014-04-19another questionable "optimization": de used tulip_ifstart_one insteadHenning Brauer
of tulip_ifstart if the sendqueue was empty, but only if altq wasn't compiled in (i. e., that's a _compile time_ decision and not based on wether altq was actually used). just use tulip_ifstart all the time, as before in our regular kernels. kill tulip_ifstart_one completely. makes sense to sthen
2013-11-26Instead of comparing the lower and higher addresses of all the multicastMartin Pieuchot
entries to decide if the IFF_ALLMULTI flag should be set, check if there is at least one real range between them. This should not change the behavior of any driver but if you encounter any problem, feel free to revert the offending chunk and ping me about it. ok naddy@, dlg@
2013-08-07Most network drivers include netinet/in_var.h, but apparently theyAlexander Bluhm
don't have to. Just remove these include lines. Compiled on amd64 i386 sparc64; OK henning@ mikeb@
2013-06-04Prevent panic'ing on alpha after ifconfig'ing up an unplugged de interface,Miod Vallat
by making tulip_txput() aware of whether or not the mbuf it is processing is in if_snq or not, rather than abusing the TULIP_TXPROBE_ACTIVE flag. Found the hard way by kurt@, tested on AlphaServer 1000A, I've been sleeping on this diff for about 3 years.
2011-07-07use IF_LEN/IFQ_LEN to access and ifqueue's length field. ryan okHenning Brauer
with this nothing in the tree fiddles if ifqueue internals any more, of course except if.c and if.h (and some altq)
2011-07-06cosnistently use IFQ_SET_MAXLEN, surfaced in a discussion with + ok bluhmHenning Brauer
2011-04-03use nitems(); no binary change for drivers that are compiled on amd64.Jasper Lievisse Adriaanse
ok claudio@
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-04-08these files don't need to include proc.h anymore. ok oga for agpTed Unangst
2009-10-02remove trash left in debug changes; lindroos@nls.fiTheo de Raadt
2009-08-13- consistify cfdriver for the ethernet drivers (0 -> NULL)Jasper Lievisse Adriaanse
ok dlg@
2009-06-19Tidy up allocation of transmit DMA maps and generalize it to alsoChristian Weisgerber
tidy up allocation of receive DMA maps. Previously the driver was using DMA maps off the free list without fully allocating them, in order to save two or three lines releasing them on error paths. This was causing it to reuse a map already in use when under load. From NetBSD. Revert a workaround against a NULL pointer dereference on alpha when invoking bus_dmaamp_sync. All submitted by Brad.
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-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-03-04Add a workaround against a NULL pointer dereference on alpha whenMiod Vallat
invoking bus_dmaamp_sync, until the cause of the problem is found. ok deraadt@
2007-09-19Remove unused tulip_21041_media_noprobe() function and tulip_21041np_boardswBrad Smith
struct. ok dlg@
2007-02-14Consistently spell FALLTHROUGH to appease lint.Jonathan Gray
ok kettenis@ cloder@ tom@ henning@
2006-07-08print the chipset revision too.Brad Smith
2006-07-08shorten dmesg entry from two lines to one.Brad Smith
2006-07-08tulip_pci_(probe/attach) -> tulip_(probe/attach)Brad Smith
2006-07-08remove splnet from attach routine.Brad Smith
2006-06-01de-static and formatting.Brad Smith
2006-05-28unknown ioctl is ENOTTY not EINVALJason Wright
2006-05-09fix non-ALTQ case.Brad Smith
2006-05-06restore ALTQ support which was lost with rev 1.87Brad 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@
2005-11-07add bus_dma support.Brad Smith
From NetBSD tested on i386/alpha. ok martin@ krw@
2005-10-01oops, the include was just doing fine thereMartin Reindl
2005-10-01fix some comments and put if_devar.h include where it belongsMartin Reindl
2005-09-25shuffle some stuff aroundBrad Smith
2005-09-25remove TULIP_PCI_ATTACH_ARGS and TULIP_SHUTDOWN_ARGSBrad Smith
2005-09-25remove more indirection through typedef's and macrosBrad Smith
2005-09-25- delint: zero sized array initalisation is a gccismBrad Smith
- move timeout_set() from tulip_attach() to tulip_pci_attach() - free -> freedescs in tulip_txput() - remove duplicate flag setting in tulip_2114x_media_preset() TULIP_MEDIA_10BASET_FD switch case - some cleaning reduces the delta from the NetBSD driver
2005-09-08add missing TULIP_STS_LINKFAIL flag in tulip_21041_media_probe().Brad Smith
From NetBSD rev 1.67 and verified to still be there in -current.
2005-09-08make de(4) use ether_input_mbuf()Brad Smith
From thorpej NetBSD ok krw@ martin@
2005-09-07do not try to restore the spl level two times in a row.Brad Smith
ok martin@
2005-09-06- fix up the ioctl handler and make it use ether_ioctl() tooBrad Smith
- remove more unused code - remove some of the macros to make this more readable ok krw@
2005-09-06another round of removing ifdef crud from this driver.Brad Smith
ok krw@ martin@
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-16remove __BROKEN_INDIRECT_CONFIG cruftBrad Smith
2005-06-26remove one more piece of the media detection from SRM code.Brad Smith
2005-06-20Remove media detection from the SRM on alpha. Initially a good idea, itMartin Reindl
breaks some onboard de(4)'s. The conventional way of getting media settings is just fine on alpha, so let's just use this. Shrinks de(4) a bit on alpha. While there de-inline tulip_21140_mediainit(). ok brad@
2005-06-08remove netns crud.Henning Brauer
some drivers actually had hooks for SIOCSIFADDR, most just useless includes "looks good" deraadt miod brad
2005-05-25- identify Compex NICs (untested)Martin Reindl
- wrap more functions in TULIP_PERF* macros ok brad@ from NetBSD
2005-05-25in tulip_reset() remove a useless printf and check flags before resettingMartin Reindl
2005-05-23- remomve unneeded tulip_reset() and always include intr.hMartin Reindl
- make it possible to get media information from the SRM on alpha ok brad@
2005-05-22ALTQ cleanoutMartin Reindl
ok brad@