summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* MFC r310696arybchik2016-12-314-20/+20
| | | | | | | sfxge(4): cleanup: improve prefast annotations Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc.
* MFC r310695arybchik2016-12-311-0/+4
| | | | | | | sfxge(4): fix defined-but-not-used warning if neither VPD nor NVRAM opt enabled Sponsored by: Solarflare Communications, Inc.
* MFC r310694arybchik2016-12-313-4/+4
| | | | | | | | sfxge(4): cleanup: add missing spaces Found by DPDK checkpatch.sh Sponsored by: Solarflare Communications, Inc.
* MFC r310693arybchik2016-12-316-6/+6
| | | | | | | | sfxge(4): cleanup: avoid unspecified unsigned Found by DPDK checkpatch.sh Sponsored by: Solarflare Communications, Inc.
* MFC r310692arybchik2016-12-313-28/+28
| | | | | | | | sfxge(4): enclose macro complex value in parenthesis Found by DPDK checkpatches.sh Sponsored by: Solarflare Communications, Inc.
* MFC r310691arybchik2016-12-312-2/+2
| | | | | | | | sfxge(4): make strings array pointer itself immutable Found by DPDK checkpatches.sh Sponsored by: Solarflare Communications, Inc.
* MFC r310690arybchik2016-12-315-10/+10
| | | | | | sfxge(4): cleanup: add const qualifier to const array pointer Sponsored by: Solarflare Communications, Inc.
* MFC r310689arybchik2016-12-314-17/+17
| | | | | | | | sfxge(4): cleanup: avoid spaces before TAB Found by DPDK checkpatch.sh Sponsored by: Solarflare Communications, Inc.
* MFC r310688arybchik2016-12-311-71/+71
| | | | | | | | sfxge(4): cleanup: avoid space just before TAB in efx_types.h Found by DPDK checkpatch.sh Sponsored by: Solarflare Communications, Inc.
* MFC r310687arybchik2016-12-318-23/+23
| | | | | | | | sfxge(4): cleanup: use TAB to indent Found by DPDK checkpatch.sh Sponsored by: Solarflare Communications, Inc.
* MFC r310686arybchik2016-12-312-7/+7
| | | | | | | | sfxge(4): cleanup: add missing space between type and pointer symbol Found by DPDK checkpatch.sh Sponsored by: Solarflare Communications, Inc.
* MFC r310685arybchik2016-12-312-6/+3
| | | | | | | | sfxge(4): cleanup: open brace should be on a type name line Found by DPDK checkpatch.sh Sponsored by: Solarflare Communications, Inc.
* MFC r310681arybchik2016-12-312-2/+2
| | | | | | | | sfxge(4): cleanup: remove unnecessary spaces Found by DPDK checkpatch.sh Sponsored by: Solarflare Communications, Inc.
* MFC r310684arybchik2016-12-311-1/+1
| | | | | | | | sfxge(4): cleanup: remove trailing whitespaces Found by DPDK checkpatch.sh Sponsored by: Solarflare Communications, Inc.
* MFC r310683arybchik2016-12-311-1/+1
| | | | | | | | sfxge(4): cleanup: pointer symbol should go together with struct member name Found by DPDK checkpatch.sh Sponsored by: Solarflare Communications, Inc.
* MFC r310682arybchik2016-12-313-10/+10
| | | | | | | | sfxge(4): cleanup: avoid C99 // comments Found by DPDK checkpatch.sh Sponsored by: Solarflare Communications, Inc.
* MFC r310668:ngie2016-12-311-0/+1
| | | | style(9) fixes: clean up leading whitespace
* MFC r310500,r310660:ngie2016-12-312-6/+6
| | | | | | | | | | | | | | | r310500: Minor style(9) fixes - Trailing whitespace cleanup - Sort variables in snmp_dialog(..) by alignment No functional change r310660: style(9): fix whitespace in pdu_encode_secparams(..)
* MFC r310667:ngie2016-12-311-1/+1
| | | | style(9) fixes: clean up leading whitespace
* MFC r310662,r310663:ngie2016-12-311-0/+1
| | | | | | | | | | r310662: style(9): snmp_send_packet(..): fix whitespace r310663: style(9): ip_get(..): clean up whitespace
* MFC r310669:ngie2016-12-311-8/+8
| | | | style(9): clean up whitespace
* MFC r310648:ngie2016-12-3185-346/+346
| | | | style(9): clean up trailing whitespace
* MFC r310666,r310675:ngie2016-12-317-20/+23
| | | | | | | | | | | | | | | | r310666: style(9) fixes - Clean up trailing whitespace - Fix variable type alignment in storage_OS_get_swap(..) r310675: Fix the build by moving the initializers for len/nswapdev down below the declarations Pointyhat to: ngie
* MFC r310662:ngie2016-12-311-3/+3
| | | | style(9): snmp_send_packet(..): fix whitespace
* MFC r310728:ngie2016-12-312-2/+181
| | | | | | | Install {asn1,bsnmpagent,bsnmpclient,bsnmplib}.3 as all of the APIs they document Also, alphabetically sort MAN
* MFC r310654:ngie2016-12-312-0/+196
| | | | Install snmpmod.3 as all of the bsnmpd APIs it documents
* MFC r310642:tuexen2016-12-311-13/+63
| | | | Consistent handling of errors reported from the lower layer.
* MFC r310000:loos2016-12-311-3/+3
| | | | | | | Remove a too strict test and instead, just filter the passed flags with the supported capabilities. Spotted by: yamori813@yahoo.co.jp (Hiroki Mori)
* MFC r309717:loos2016-12-311-3/+2
| | | | Fix the typos and style(9) in comment.
* MFC r309461:loos2016-12-311-70/+1
| | | | | | | | | | | | Allow simultaneous access to switch device, there is no reason to prevent it. Remove bogus wrappers and use the kernel defaults. While here, use DEVMETHOD_END. Obtained from: pfSense Sponsored by: Rubicon Communications, LLC (Netgate)
* MFC r309345:loos2016-12-312-6/+3
| | | | | | | | | | | | | | | | | | | The RX_FREEBUFFER registers are a write to increment field. Writing the full queue size to it every time was makeing it overflow with a lot of bogus values. This fixes the interrupt storms on irq 40. MFC r309347: MDIO_PHYACCESS_ACK is only valid for read access, remove it from miibus_writereg. Reduce the DELAY() between reads while waiting for MII access. Spotted by: yongari Sponsored by: Rubicon Communications, LLC (Netgate)
* MFC r309113:loos2016-12-314-4/+317
| | | | | | | | | | | Add the etherswitch(4) support for TI CPSW. Adds VLAN and port management abilities for etherswitchcfg(8). The code is conditionally enabled for now, because it is not necessary on single ethernet use cases. Obtained from: pfSense Sponsored by: Rubicon Communications, LLC (Netgate)
* MFC r310455:ngie2016-12-311-2/+3
| | | | | | | | | | Clarify failure in snmp_output(..) with call to snmp_pdu_decode - Explicitly test snmp_pdu_encode against SNMP_CODE_OK instead of assuming any non-zero value is bad. - Print out the code before calling abort() to give the end-user something actionable to debug without having to recompile the binary, since the core might not have these details.
* MFC r310458,r310466:ngie2016-12-301-51/+55
| | | | | | | | | | | | | | | | r310458: Group all loadable modules in the %default section This will allow new users to uncomment the modules and have things work with less head scratching, in the event they decide to uncomment any of the section separators, e.g. %usm or %vcm, as the module loading is only effective in the %default section. r310466: Don't hardcode $(securityModelUSM) (3) in the authPriv example under the %vacm section
* MFC r308692:loos2016-12-301-5/+8
| | | | | | Fix ti_gpio_detach() to avoid crashing if something goes wrong. Sponsored by: Rubicon Communication, LLC (Netgate)
* MFC r308659:loos2016-12-301-1/+0
| | | | Reduce dmesg verbosity.
* MFC r306717:loos2016-12-303-155/+207
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | if_cpsw overhaul: - Fix RX and TX teardown: . TX teardown would not reclaim the abandoned descriptors; . Interrupt storms in RX teardown; . Fixed the acknowledge of the teardown completion interrupt. - Remove temporary lists for the descriptors; - Simplified the descriptor handling (less writes and reads from descriptors where possible); - Better debug; - Add support for the RX threshold interrupts: With interrupt moderation only, an RX overrun is likely to happen. The RX threshold is set to trigger a non paced interrupt everytime your RX free buffers are under the minimum threshold, helping to prevent the rx overrun. The NIC now survive when pushed over its limits (where previously it would lock up in a few seconds). uFW (600MHz SoC) can now forward up to 560Mb/s of UDP traffic (netmap pkt-gen as source and sink). TCP forwarding rate is over 350Mb/s. No difference (other than CPU use) was seen on Beaglebone black (1GHz SoC) for his fast ethernet. Tested on: uFW, BBB Sponsored by: Rubicon Communications, LLC (Netgate)
* MFC r306654:loos2016-12-301-16/+32
| | | | | | | | | | Enable the TX completion interrupt for the cpsw NIC to assure the free tx descriptors are reclaimed as soon as possible. Without this the free buffers are reclaimed only on watchdog runs or after trying to enqueue more packets. Sponsored by: Rubicon Communications, LLC (Netgte)
* MFC of r306388, r306510, r306511 and r306513:loos2016-12-301-68/+32
| | | | | | | | | | | | | | Fix a typo. Sort and remove unnecessary includes. Fix a typo in CPSW_DEBUG MACRO and then replace all the CPSWP_DEBUG() calls with CPSW_DEBUG(). Remove the GLOBAL queue lock which just adds unnecessary complexity to code (when used together with the individual tx and rx locks). Sponsored by: Rubicon Communications, LLC (Netgate)
* MFC r306376:loos2016-12-303-0/+73
| | | | | | | | | | | Add a sysctl to control the interrupt pacing on AM335x integrated switch. The hardware can be set to limit the number of interrupts from 2 to 63 interrupts per ms. To keep the compatibility with the TI documentation the sysctl take the interval between the interrupts pulses: 16~500 us. Sponsored by: Rubicon Communications, LLC (Netgate)
* MFC of r305114, r305115 and r305149:loos2016-12-304-1/+182
| | | | | | | | | | | | | | | | Allow the use of control module extensions to cope with specific platform features. Add a driver for the AM335x bandgap sensor, an on-die temperature sensor as part of the AM335x control module extension. TI says that the bandgap sensor is not very accurate on AM335x, but in our tests it seems to be a good reference for the SoC temperature. TI details: http://processors.wiki.ti.com/index.php/AM335x_Thermal_Considerations#Measuring_Case_Temperature Sponsored by: Rubicon Communications, LLC (Netgate)
* MFC of r305112, r305113, r305119, r305141 and r305432:loos2016-12-303-8/+13
| | | | | | | | | Replace magic numbers with the proper register names. Fix the build, revert r305119, move the control module register data to am335x_scm.h and fix if_cpsw.c to include the correct header. Sponsored by: Rubicon Communications, LLC (Netgate)
* MFC of r303230, r303253 and r303420:loos2016-12-304-27/+110
| | | | | | | | | | | | | Add support for the Microchip/Micrel KSZ9031 Gigabit Ethernet PHY. Enable the build of micphy as part of generic miibus build, but only for FDT enabled systems. The Micrel PHYs reads the optional external delays from DTB. Tested on uBMC and uFW. Sponsored by: Rubicon Communications (Netgate)
* MFC r303227loos2016-12-301-1/+0
| | | | Remove unused USB ethernet driver from BEAGLEBONE/AM335x kernel.
* MFC r310680arybchik2016-12-301-4/+5
| | | | | | | | sfxge(4): cleanup: use spaces around binary arithmetic operations Found by DPDK checkpatch.sh Sponsored by: Solarflare Communications, Inc.
* MFC r310679arybchik2016-12-301-1/+1
| | | | | | | | sfxge(4): cleanup: fix wrong indent Found by DPDK checkpatch.sh Sponsored by: Solarflare Communications, Inc.
* MFC r310678arybchik2016-12-301-1/+1
| | | | | | sfxge(4): cleanup: remove trailing whitespace Sponsored by: Solarflare Communications, Inc.
* MFC r310677arybchik2016-12-301-1/+1
| | | | | | sfxge(4): cleanup: fix typo in siena_mac_loopback_set() instrumentation Sponsored by: Solarflare Communications, Inc.
* MFC r310627arybchik2016-12-303-4/+5
| | | | | | | | | | sfxge(4): do not limit driver RSS table to RSS channels max Specification of entire RSS table in the driver allows to spread traffic more equally across CPUs/RSS channels if number of RSS channels is not power of 2. Sponsored by: Solarflare Communications, Inc.
* MFC r306264: Use 32-bit value for .text padding, for linker portabilityemaste2016-12-302-2/+2
| | | | | GNU ld interprets the padding value as a variable-length byte string, while GNU gold and LLVM lld interpret it as a 32-bit value.
OpenPOWER on IntegriCloud