Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Unlock interrupt handler rx path with intr_barrier | 2015-09-29 | 1 | -3/+15 | |
| | | | | ok mikeb@ | ||||
* | Make room for media types of the future. Extend the ifmedia word to 64 bits. | 2015-09-11 | 1 | -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" | 2015-06-29 | 1 | -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(). | 2015-06-24 | 1 | -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(). | 2015-04-30 | 1 | -10/+4 | |
| | | | | ok dlg@ | ||||
* | Remove some includes include-what-you-use claims don't | 2015-03-14 | 1 | -2/+1 | |
| | | | | | | | have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@ | ||||
* | unifdef INET | 2014-12-22 | 1 | -9/+1 | |
| | |||||
* | yet more mallocarray() changes. | 2014-12-13 | 1 | -2/+2 | |
| | | | | ok tedu@ deraadt@ | ||||
* | let the mru always be what the chip can do, not what the mtu implies. | 2014-08-30 | 1 | -10/+2 | |
| | | | | tested by and ok mikeb@ | ||||
* | Implement rxrinfo ioctl for cluster usage statistics | 2014-08-14 | 1 | -1/+35 | |
| | |||||
* | Fewer <netinet/in_systm.h> | 2014-07-22 | 1 | -3/+1 | |
| | |||||
* | add a size argument to free. will be used soon, but for now default to 0. | 2014-07-12 | 1 | -19/+19 | |
| | | | | after discussions with beck deraadt kettenis. | ||||
* | cut things that relied on mclgeti for rx ring accounting/restriction over | 2014-07-08 | 1 | -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 memcpy | 2014-01-20 | 1 | -12/+12 | |
| | | | | ok mikeb@ | ||||
* | bcmp to memcmp | 2014-01-20 | 1 | -2/+2 | |
| | | | | ok mikeb@ | ||||
* | bzero to memset | 2014-01-20 | 1 | -35/+35 | |
| | | | | ok mikeb@ | ||||
* | don't call if_link_state_change if link state is not changed | 2013-08-23 | 1 | -8/+8 | |
| | |||||
* | Most network drivers include netinet/in_var.h, but apparently they | 2013-08-07 | 1 | -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 sufficient | 2013-01-17 | 1 | -3/+3 | |
| | | | | ok claudio | ||||
* | adjust mbuf chain data pointer so that ip header would appear | 2012-12-10 | 1 | -14/+6 | |
| | | | | word aligned; remove pool constraints insanity while here | ||||
* | fix format string; OK mikeb@ | 2012-11-27 | 1 | -2/+3 | |
| | |||||
* | shorten MBX_RX_IFACE_* defines | 2012-11-26 | 1 | -10/+9 | |
| | |||||
* | get rid of some useless bitfields in oce_mbx and mbx_hdr | 2012-11-26 | 1 | -29/+26 | |
| | |||||
* | better way to set baudrate to 0; pointed out by gsoares@ | 2012-11-23 | 1 | -3/+3 | |
| | |||||
* | Don't forget to delete an rx refill timeout when bringing | 2012-11-21 | 1 | -16/+11 | |
| | | | | | an interface down (noticed by dlg@ in the other diff). While here, do some minor cleanup in the interrupt handler. | ||||
* | fix typo | 2012-11-20 | 1 | -5/+4 | |
| | |||||
* | allocate a mailbox payload dma memory upfront instead of per request | 2012-11-14 | 1 | -27/+36 | |
| | |||||
* | do an OACTIVE/if_start dance only once per tx interrupt | 2012-11-13 | 1 | -11/+13 | |
| | |||||
* | enable hardware tx checksum offloading as oce doesn't | 2012-11-13 | 1 | -2/+3 | |
| | | | | seem to require an initialized pseudo-header checksum | ||||
* | more cleanup missed in the previous commit | 2012-11-13 | 1 | -52/+54 | |
| | |||||
* | major cleanup; get rid of the oce_destroy_queue | 2012-11-13 | 1 | -586/+563 | |
| | |||||
* | move some stuff around, do minor cleanup | 2012-11-12 | 1 | -170/+152 | |
| | |||||
* | don't sync dma memory for the whole ring when updating a single | 2012-11-09 | 1 | -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 here | 2012-11-09 | 1 | -309/+574 | |
| | |||||
* | cleanup oce_encap | 2012-11-09 | 1 | -12/+8 | |
| | |||||
* | stop passing if_id around | 2012-11-09 | 1 | -26/+18 | |
| | |||||
* | improve flow control code | 2012-11-09 | 1 | -15/+27 | |
| | |||||
* | To be able to receive ethernet packets with VLAN tags oce_set_promisc | 2012-11-09 | 1 | -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) | 2012-11-08 | 1 | -64/+37 | |
| | |||||
* | hardware supports mtu values from 256 up to 9000; | 2012-11-08 | 1 | -2/+2 | |
| | | | | figured out the hard way, linux driver agrees | ||||
* | When halting the rx engine wait 1ms after destroying the queue in | 2012-11-08 | 1 | -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 printf | 2012-11-08 | 1 | -11/+11 | |
| | |||||
* | Hide stats calculation ugliness inside oce_update_stats and | 2012-11-08 | 1 | -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 code | 2012-11-07 | 1 | -12/+13 | |
| | |||||
* | do not depend on IFCAP_CSUM flags set when reading rx checksumming | 2012-11-07 | 1 | -11/+9 | |
| | | | | results from the hardware | ||||
* | we still need to query the firmware for a couple of values after all | 2012-11-07 | 1 | -24/+49 | |
| | |||||
* | Steal SIMPLEQ-based packet descriptor managing code from myx(4) | 2012-11-05 | 1 | -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 type | 2012-11-03 | 1 | -9/+9 | |
| | |||||
* | Obligatory second oce commit for tonight. No binary change. | 2012-11-03 | 1 | -2/+2 | |
| | | | | ok mikeb@ | ||||
* | Introduce better and simpler producer/consumer queue iterator | 2012-11-02 | 1 | -103/+91 | |
| | | | | | implementation that is usable for both producer (rq, wq, mq) and consumer (eq, cq) rings. |