summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/if_oce.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rename the macro MCLGETI to MCLGETL and removes the dead parameter ifp.jan2020-12-121-2/+2
| | | | | | OK dlg@, bluhm@ No Opinion mpi@ Not against it claudio@
* Change users of IFQ_SET_MAXLEN() and IFQ_IS_EMPTY() to use the "new" API.patrick2020-07-101-2/+2
| | | | ok dlg@ tobhe@
* Change users of IFQ_DEQUEUE(), IFQ_ENQUEUE() and IFQ_LEN() to use thepatrick2020-07-101-2/+2
| | | | | | "new" API. ok dlg@ tobhe@
* use ifiq_input and use it's return value to apply backpressure to rxrs.dlg2020-06-221-2/+3
| | | | this is a step toward deprecating softclock based livelock detection.
* lenght->length, mostly in commentssthen2017-11-271-2/+2
|
* move counting if_opackets next to counting if_obytes in if_enqueue.dlg2017-01-221-4/+1
| | | | | | | this means packets are consistently counted in one place, unlike the many and various ways that drivers thought they should do it. ok mpi@ deraadt@
* all pools have their ipl set via pool_setipl, so fold it into pool_init.dlg2016-09-151-4/+3
| | | | | | | | | | | | | | | | | | | | | | the ioff argument to pool_init() is unused and has been for many years, so this replaces it with an ipl argument. because the ipl will be set on init we no longer need pool_setipl. most of these changes have been done with coccinelle using the spatch below. cocci sucks at formatting code though, so i fixed that by hand. the manpage and subr_pool.c bits i did myself. ok tedu@ jmatthew@ @ipl@ expression pp; expression ipl; expression s, a, o, f, m, p; @@ -pool_init(pp, s, a, o, f, m, p); -pool_setipl(pp, ipl); +pool_init(pp, s, a, ipl, f, m, p);
* Declare the type instead of a on-stack variable for sizeof purposesmikeb2016-09-141-4/+4
| | | | | (Un?)surprisingly the compiler is smart enough to produce the same code in both cases, but this conveys the intention better.
* pool_setipl for oce(4)dlg2016-08-241-1/+2
| | | | ok mikeb@
* G/C IFQ_SET_READY().mpi2016-04-131-2/+1
|
* Allocate statistics command from the heap, pointed out by deraadt@mikeb2016-03-141-20/+43
|
* extra ) not needed, spotted by tiago silvaderaadt2016-03-041-2/+2
|
* revert 1.87, more work is needed heremikeb2016-01-061-15/+3
|
* Replace mountroothook_establish(9) by config_mountroot(9) a narrower APImpi2015-12-111-5/+5
| | | | | | similar to config_defer(9). ok mikeb@, deraadt@
* replace IFF_OACTIVE manipulation with mpsafe operations.dlg2015-11-251-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | there are two things shared between the network stack and drivers in the send path: the send queue and the IFF_OACTIVE flag. the send queue is now protected by a mutex. this diff makes the oactive functionality mpsafe too. IFF_OACTIVE is part of if_flags. there are two problems with that. firstly, if_flags is a short and we dont have any MI atomic operations to manipulate a short. secondly, while we could make the IFF_OACTIVE operates mpsafe, all changes to other flags would have to be made safe at the same time, otherwise a read-modify-write cycle on their updates could clobber the oactive change. instead, this moves the oactive mark into struct ifqueue and provides an API for changing it. there's ifq_set_oactive, ifq_clr_oactive, and ifq_is_oactive. these are modelled on ifsq_set_oactive, ifsq_clr_oactive, and ifsq_is_oactive in dragonflybsd. this diff includes changes to all the drivers manipulating IFF_OACTIVE to now use the ifsq_{set,clr_is}_oactive API too. ok kettenis@ mpi@ jmatthew@ deraadt@
* Do not include <net/if_vlan_var.h> when it's not necessary.mpi2015-11-141-6/+1
| | | | | | Because of the VLAN hacks in mpw(4) this file still contains the definition of "struct ifvlan" which depends on <sys/refcnt.h> which in turns pull <sys/atomic.h>...
* arp_ifinit() is no longer needed.mpi2015-10-251-4/+1
|
* 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