summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_oce.c
AgeCommit message (Collapse)Author
2013-08-23don't call if_link_state_change if link state is not changedMike Belopuhov
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-01-17first or second coming, commie or not commie, one m in coming is sufficientHenning Brauer
ok claudio
2012-12-10adjust mbuf chain data pointer so that ip header would appearMike Belopuhov
word aligned; remove pool constraints insanity while here
2012-11-27fix format string; OK mikeb@Gleydson Soares
2012-11-26shorten MBX_RX_IFACE_* definesMike Belopuhov
2012-11-26get rid of some useless bitfields in oce_mbx and mbx_hdrMike Belopuhov
2012-11-23better way to set baudrate to 0; pointed out by gsoares@Mike Belopuhov
2012-11-21Don't forget to delete an rx refill timeout when bringingMike Belopuhov
an interface down (noticed by dlg@ in the other diff). While here, do some minor cleanup in the interrupt handler.
2012-11-20fix typoMike Belopuhov
2012-11-14allocate a mailbox payload dma memory upfront instead of per requestMike Belopuhov
2012-11-13do an OACTIVE/if_start dance only once per tx interruptMike Belopuhov
2012-11-13enable hardware tx checksum offloading as oce doesn'tMike Belopuhov
seem to require an initialized pseudo-header checksum
2012-11-13more cleanup missed in the previous commitMike Belopuhov
2012-11-13major cleanup; get rid of the oce_destroy_queueMike Belopuhov
2012-11-12move some stuff around, do minor cleanupMike Belopuhov
2012-11-09don't sync dma memory for the whole ring when updating a singleMike Belopuhov
entry but rather sync the whole ring once done with individual entries; use proper dma sync flags as well
2012-11-09merge if_ocevar.h and if_oce.c; do some minor cleanup while hereMike Belopuhov
2012-11-09cleanup oce_encapMike Belopuhov
2012-11-09stop passing if_id aroundMike Belopuhov
2012-11-09improve flow control codeMike Belopuhov
2012-11-09To be able to receive ethernet packets with VLAN tags oce_set_promiscMike Belopuhov
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.
2012-11-08make link state update code more comprehensible by using some ideas from myx(4)Mike Belopuhov
2012-11-08hardware supports mtu values from 256 up to 9000;Mike Belopuhov
figured out the hard way, linux driver agrees
2012-11-08When halting the rx engine wait 1ms after destroying the queue inMike Belopuhov
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.
2012-11-08minor style cleanup, improve the mailbox timeout printfMike Belopuhov
2012-11-08Hide stats calculation ugliness inside oce_update_stats andMike Belopuhov
don't schedule another update if the one at hand fails. s/oce_local_timer/oce_tick/ while here (:
2012-11-07minor tweaks to the ioctl codeMike Belopuhov
2012-11-07do not depend on IFCAP_CSUM flags set when reading rx checksummingMike Belopuhov
results from the hardware
2012-11-07we still need to query the firmware for a couple of values after allMike Belopuhov
2012-11-05Steal SIMPLEQ-based packet descriptor managing code from myx(4)Mike Belopuhov
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!
2012-11-03s/OCE_DMAPTR/OCE_MEM_KVA/ and don't require a typeMike Belopuhov
2012-11-03Obligatory second oce commit for tonight. No binary change.Bryan Steele
ok mikeb@
2012-11-02Introduce better and simpler producer/consumer queue iteratorMike Belopuhov
implementation that is usable for both producer (rq, wq, mq) and consumer (eq, cq) rings.
2012-10-31minor style cleanupMike Belopuhov
2012-10-30introduce specialized register read and write functionsMike Belopuhov
oce_{read,write}_{cfg,csr,db} for different pci bars
2012-10-29prefer to return oce_cmd and save on the error variableMike Belopuhov
2012-10-29shorten fwcmd to cmdMike Belopuhov
2012-10-29merge oce.c into if_oce.c and rename oce{reg,var}.h to if_oce{reg,var}.hMike Belopuhov
2012-10-29rearrange the function layout a bitMike Belopuhov
2012-10-29oce_get_fw_config is useless; ditch itMike Belopuhov
2012-10-26oce_first_mcc_cmd doesn't return anything of value so make it void;Mike Belopuhov
shorten it to oce_first_mcc while here
2012-10-26cleanup oce_init_fw; use less bitfieldsMike Belopuhov
2012-10-26rename oce_config_nic_rss to oce_config_rss and merge oce_rss_itbl_init in;Mike Belopuhov
cleanup oce_set_promisc and oce_config_vlan function arguments, a bunch of defines and prototypes while at it.
2012-10-25simplify/unify writes to the rx and tx doorbell registersMike Belopuhov
2012-10-25don't use bitfields in oce_pci_alloc; kill some unused structuresMike Belopuhov
2012-10-25cleanup interrupt register definesMike Belopuhov
2012-10-25simplify oce_arm_eq and oce_arm_cqMike Belopuhov
2012-10-22Fix the multicast filter full size check.Brad Smith
ok mikeb@
2012-10-18make oce_arm_{eq,cq} functions look like the other queueMike Belopuhov
manupulation functions in this file; do some minor style cleanup while here.