summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/if_et.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix a use-after-free, from Maxime Villard w/ Brainy.mpi2015-07-081-2/+1
| | | | ok jsg@
* Increment if_ipackets in if_input().mpi2015-06-241-2/+1
| | | | | | | Note that pseudo-drivers not using if_input() are not affected by this conversion. ok mikeb@, kettenis@, claudio@, dlg@
* Convert moar drivers to if_input().mpi2015-04-301-10/+5
| | | | ok dlg@
* Remove some includes include-what-you-use claims don'tjsg2015-03-141-2/+1
| | | | | | | have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@
* unifdef INETtedu2014-12-221-5/+1
|
* Set the MRU to a full size frame instead of basing it on the MTU.brad2014-08-301-6/+5
| | | | ok dlg@
* Fewer <netinet/in_systm.h>mpi2014-07-221-3/+1
|
* Most network drivers include netinet/in_var.h, but apparently theybluhm2013-08-071-2/+1
| | | | | don't have to. Just remove these include lines. Compiled on amd64 i386 sparc64; OK henning@ mikeb@
* remove the unused if_init callback in struct ifnetjsg2010-08-271-2/+1
| | | | ok deraadt@ henning@ claudio@
* BUS_DMA_ZERO instead of alloc, map, bzero.oga2010-05-191-4/+2
| | | | ok krw@
* M_DUP_PKTHDR() define -> m_dup_pkthdr() function to properly dealkrw2009-09-131-29/+2
| | | | | | | | | | | | | with m_tag_copy_chain() failures. Use m_defrag() to eliminate hand rolled defragging of mbufs and some uses of M_DUP_PKTHDR(). Original diff from thib@, claudio@'s feedback integrated by me. Tests kevlo@ claudio@, "reads ok" blambert@ ok thib@ claudio@, "m_defrag() bits ok" kettenis@
* A few more simple cases of shutdown hooks which only call xxstop, whenderaadt2009-08-101-15/+1
| | | | we now know the interface has already been stopped
* make various strings ("can't map mem space" and similar) more consistentsthen2009-03-291-3/+3
| | | | | | | between instances, saving space in the kernel. feedback from many (some incorporated, some left for future work). ok deraadt, kettenis, "why not" miod.
* Eliminate the redundant bits of code for MTU and multicast handlingbrad2008-11-281-19/+10
| | | | | | | | | | | | | | 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@
* fix potential null dereference.chl2008-11-041-5/+3
| | | | | | | | Found by LLVM/Clang Static Analyzer. initial patch from me, rewritten by jsing@ ok jsg@
* First step towards cleaning up the Ethernet driver ioctl handling.brad2008-10-021-8/+2
| | | | | | | | | | | | | | | | | | | | 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@
* Convert timeout_add() calls using multiples of hz to timeout_add_sec()blambert2008-09-101-4/+4
| | | | | | | Really just the low-hanging fruit of (hopefully) forthcoming timeout conversions. ok art@, krw@
* remove an unused function. ok jsg@kevlo2008-07-111-11/+3
|
* Unmapping memory from pci_mapreg_map() on detach lets usjsg2008-06-081-4/+8
| | | | | do multiple inserts/detaches as well. ok jsing@
* Make et(4) detachable, help tracking down a problem thatjsg2008-06-081-4/+14
| | | | | turned out to be not calling pci_intr_disestablish() from jsing@ ok jsing@
* Count output packets.brad2008-05-261-1/+2
| | | | | | From DragonFly ok dlg@
* Simplify the combination use of pci_mapreg_type()/pci_mapreg_map() asbrad2008-05-231-9/+3
| | | | | | suggested by dlg@ awhile ago. ok dlg@
* ifp->if_start -> et_startbrad2008-02-081-2/+2
| | | | | | No functional change. ok dlg@
* - remove redundant setting of if_mtu as this is set by ether_ifattach().brad2008-02-031-2/+3
| | | | | | - set the IFCAP_VLAN_MTU capabilities flag. ok dlg@
* So instead of triggering a tx interrupt for each packet issue one forclaudio2007-11-261-4/+22
| | | | | each 128 packets or call et_txeof after 1 second whichever happens first. looks good jsg@
* Do a TX interrupt for each packet instead of every 126th one. This willclaudio2007-11-251-2/+2
| | | | | solve the watchdog timeouts seen when single packets are sent out. OK jsg@
* Strip the CRC in rxeof()jsg2007-11-251-7/+14
| | | | ok claudio@
* Correctly setup the tx descriptor by using the right mapping infos.claudio2007-11-251-5/+5
| | | | | This makes et(4) work and as ususal this is commited over et(4) to prove that it is usuable. with and ok jsg@
* Initial port of Sepherosa Ziehau's DragonFlyBSD driversjsg2007-10-301-0/+2113
for Agere/LSI ET1310 Ethernet devices and ET1011 'TruePHY'. All the gross register related bit macros are not yet removed. Currently only Tx seems to work. Putting this in the tree in case someone else wants to look at it while I deal with exams for the next few weeks.