summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/if_oce.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Unlock interrupt handler rx path with intr_barrierchris2015-09-291-3/+15
| | | | ok mikeb@
* Make room for media types of the future. Extend the ifmedia word to 64 bits.stsp2015-09-111-4/+4
| | | | | | | | | | | | | | | | This changes numbers of the SIOCSIFMEDIA and SIOCGIFMEDIA ioctls and grows struct ifmediareq. Old ifconfig and dhclient binaries can still assign addresses, however the 'media' subcommand stops working. Recompiling ifconfig and dhclient with new headers before a reboot should not be necessary unless in very special circumstances where non-default media settings must be used to get link and console access is not available. There may be some MD fallout but that will be cleared up later. ok deraadt miod with help and suggestions from several sharks attending l2k15
* Hide ETHER_ALIGN mbuf adjustment under "#ifdef __STRICT_ALIGNMENT"mikeb2015-06-291-1/+3
| | | | | | | for now to get jumbo frames working. oce(4) will need the same treatment as ix(4) when sparc64 support will be implemented. Tested by Pedro Caetano <pedrocaetano at binaryflows ! com>, thanks!
* Increment if_ipackets in if_input().mpi2015-06-241-3/+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/+4
| | | | 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-9/+1
|
* yet more mallocarray() changes.doug2014-12-131-2/+2
| | | | ok tedu@ deraadt@
* let the mru always be what the chip can do, not what the mtu implies.dlg2014-08-301-10/+2
| | | | tested by and ok mikeb@
* Implement rxrinfo ioctl for cluster usage statisticsmikeb2014-08-141-1/+35
|
* Fewer <netinet/in_systm.h>mpi2014-07-221-3/+1
|
* add a size argument to free. will be used soon, but for now default to 0.tedu2014-07-121-19/+19
| | | | after discussions with beck deraadt kettenis.
* cut things that relied on mclgeti for rx ring accounting/restriction overdlg2014-07-081-18/+18
| | | | | | | | | | to using if_rxr. cut the reporting systat did over to the rxr ioctl. tested as much as i can on alpha, amd64, and sparc64. mpi@ has run it on macppc. ok mpi@
* bcopy to memcpychris2014-01-201-12/+12
| | | | ok mikeb@
* bcmp to memcmpchris2014-01-201-2/+2
| | | | ok mikeb@
* bzero to memsetchris2014-01-201-35/+35
| | | | ok mikeb@
* don't call if_link_state_change if link state is not changedmikeb2013-08-231-8/+8
|
* 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@
* first or second coming, commie or not commie, one m in coming is sufficienthenning2013-01-171-3/+3
| | | | ok claudio
* adjust mbuf chain data pointer so that ip header would appearmikeb2012-12-101-14/+6
| | | | word aligned; remove pool constraints insanity while here
* fix format string; OK mikeb@gsoares2012-11-271-2/+3
|
* shorten MBX_RX_IFACE_* definesmikeb2012-11-261-10/+9
|
* get rid of some useless bitfields in oce_mbx and mbx_hdrmikeb2012-11-261-29/+26
|
* better way to set baudrate to 0; pointed out by gsoares@mikeb2012-11-231-3/+3
|
* Don't forget to delete an rx refill timeout when bringingmikeb2012-11-211-16/+11
| | | | | an interface down (noticed by dlg@ in the other diff). While here, do some minor cleanup in the interrupt handler.
* fix typomikeb2012-11-201-5/+4
|
* allocate a mailbox payload dma memory upfront instead of per requestmikeb2012-11-141-27/+36
|
* do an OACTIVE/if_start dance only once per tx interruptmikeb2012-11-131-11/+13
|
* enable hardware tx checksum offloading as oce doesn'tmikeb2012-11-131-2/+3
| | | | seem to require an initialized pseudo-header checksum
* more cleanup missed in the previous commitmikeb2012-11-131-52/+54
|
* major cleanup; get rid of the oce_destroy_queuemikeb2012-11-131-586/+563
|
* move some stuff around, do minor cleanupmikeb2012-11-121-170/+152
|
* don't sync dma memory for the whole ring when updating a singlemikeb2012-11-091-15/+13
| | | | | entry but rather sync the whole ring once done with individual entries; use proper dma sync flags as well
* merge if_ocevar.h and if_oce.c; do some minor cleanup while heremikeb2012-11-091-309/+574
|
* cleanup oce_encapmikeb2012-11-091-12/+8
|
* stop passing if_id aroundmikeb2012-11-091-26/+18
|
* improve flow control codemikeb2012-11-091-15/+27
|
* To be able to receive ethernet packets with VLAN tags oce_set_promiscmikeb2012-11-091-42/+33
| | | | | | should not disable VLAN promiscuous mode set up by oce_config_vlan. Move VLAN and Flow Control configuration to oce_init so that it would be rerun every time we plumb the interface.
* make link state update code more comprehensible by using some ideas from myx(4)mikeb2012-11-081-64/+37
|
* hardware supports mtu values from 256 up to 9000;mikeb2012-11-081-2/+2
| | | | figured out the hard way, linux driver agrees
* When halting the rx engine wait 1ms after destroying the queue inmikeb2012-11-081-2/+3
| | | | | | firmware then drain the completion queue and only afterwards deal with posted buffers so that the firmware wouldn't decide to DMA something into the freed cluster. Logic from the Linux driver.
* minor style cleanup, improve the mailbox timeout printfmikeb2012-11-081-11/+11
|
* Hide stats calculation ugliness inside oce_update_stats andmikeb2012-11-081-27/+33
| | | | | don't schedule another update if the one at hand fails. s/oce_local_timer/oce_tick/ while here (:
* minor tweaks to the ioctl codemikeb2012-11-071-12/+13
|
* do not depend on IFCAP_CSUM flags set when reading rx checksummingmikeb2012-11-071-11/+9
| | | | results from the hardware
* we still need to query the firmware for a couple of values after allmikeb2012-11-071-24/+49
|
* Steal SIMPLEQ-based packet descriptor managing code from myx(4)mikeb2012-11-051-243/+278
| | | | | | | to simplify a whole bunch of things. And despite this being the main purpose of the commit I'm also sneaking in loads of minor and unrelated cleanup since separating it out would be just too much work. Enjoy!
* s/OCE_DMAPTR/OCE_MEM_KVA/ and don't require a typemikeb2012-11-031-9/+9
|
* Obligatory second oce commit for tonight. No binary change.brynet2012-11-031-2/+2
| | | | ok mikeb@
* Introduce better and simpler producer/consumer queue iteratormikeb2012-11-021-103/+91
| | | | | implementation that is usable for both producer (rq, wq, mq) and consumer (eq, cq) rings.