aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/neta
Commit message (Collapse)AuthorAgeFilesLines
* mvneta: Acquire the softc lock before clearing the MIBMark Johnston2021-01-181-0/+2
| | | | | | Reported by: Andrei Martin <andrei.cos.martin@gmail.com> (cherry picked from commit 109260d202fb64be6f2efcf243c25090c1f64420)
* mvneta: Fix 64-bit MIB readsMark Johnston2021-01-182-21/+19
| | | | | | | | | | | | | It appears we must read MIB values as 2 4-byte words, lower address first. A single 8-byte MIB read returns the value with the lower 4 bytes copied into the upper 4 bytes, resulting in bogus byte counter values. Reviewed by: mw Sponsored by: Rubicon Communications, LLC (Netgate) Differential Revision: https://reviews.freebsd.org/D27870 (cherry picked from commit caf552a607191ffc798e3edb697ae99d5b15711a)
* Disable the auto negotiation if the port is set to fixed-link.Luiz Otavio O Souza2018-08-141-0/+1
| | | | | | | | | | Tested on SG-3100 (ARMADA38X) and Espresso.bin (A37x0). Fixes the network on espresso.bin. Sponsored by: Rubicon Communications, LLC (Netgate) Notes: svn path=/head/; revision=337811
* Clean up OF_getprop_alloc APIOleksandr Tymoshenko2018-04-081-1/+1
| | | | | | | | | | | | | | | | | | | | OF_getprop_alloc takes element size argument and returns number of elements in the property. There are valid use cases for such behavior but mostly API consumers pass 1 as element size to get string properties. What API users would expect from OF_getprop_alloc is to be a combination of malloc + OF_getprop with the same semantic of return value. This patch modifies API signature to match these expectations. For the valid use cases with element size != 1 and to reduce modification scope new OF_getprop_alloc_multi function has been introduced that behaves the same way OF_getprop_alloc behaved prior to this patch. Reviewed by: ian, manu Differential Revision: https://reviews.freebsd.org/D14850 Notes: svn path=/head/; revision=332310
* Make this compile if NO_SYSCTL_DESCR is defined.Nick Hibma2017-09-281-4/+5
| | | | | | | | | Defining a variable with the description and then only use it in the SYSCTL declaration led to an unused variable warning. In the SYSCTL the passed value is discarded using __DESCR. Notes: svn path=/head/; revision=324089
* Fix gcc compilation issues in the mvneta driverMarcin Wojtas2017-09-251-12/+13
| | | | | | | | | | | Compiling mvneta driver with gcc unveiled two issues, that required fixing. Reported by: andrew Obtained from: Semihalf Notes: svn path=/head/; revision=323983
* Add support for Armada 3700 in the NETA driverMarcin Wojtas2017-09-092-7/+32
| | | | | | | | | | | | | | | This patch enables using NETA driver on Marvell Armada 3700 SoC by introducing new compatible string, modifying clock source obtaining and also excluding unnecessary parts. The driver is added as a build option for arm64 platforms as well. Submitted by: Patryk Duda <pdk@semihalf.com> Obtained from: Semihalf Sponsored by: Semihalf Differential Revision: https://reviews.freebsd.org/D12258 Notes: svn path=/head/; revision=323362
* Store virtual address of buffer in mvneta_rx_ringMarcin Wojtas2017-09-092-2/+5
| | | | | | | | | | | | | | Now the virtual address of received buffer is taken from a software ring. Thanks to this, we can use the NETA driver on 64 bits architecture and avoid 32-bit buf_cookie descriptor field limitation. Submitted by: Patryk Duda <pdk@semihalf.com> Obtained from: Semihalf Sponsored by: Semihalf Differential Revision: https://reviews.freebsd.org/D12257 Notes: svn path=/head/; revision=323361
* Allow the use of extended media types with if_mvneta, so it can report 2.5GLuiz Otavio O Souza2017-06-201-2/+3
| | | | | | | | | | | speeds properly. While here remove a couple of stray white spaces. Sponsored by: Rubicon Communications, LLC (Netgate) Notes: svn path=/head/; revision=320158
* Introduce Armada 38x/XP network controller supportZbigniew Bodek2017-06-134-0/+5049
This patch contains a new driver for the network unit of Marvell Armada 38x/XP SoCs, called NETA. This support was thoroughly tested and optimised in terms of stability and performance. Additional hardware features, like Buffer Management (BM) or Parser and Classifier (PnC) will be progressively supported as needed. Submitted by: Fabien Thomas <fabien.thomas@stormshield.eu> Arnaud Ysmal <arnaud.ysmal@stormshield.eu> Zbigniew Bodek <zbb@semihalf.com> Michal Mazur <mkm@semihalf.com> Bartosz Szczepanek <bsz@semihalf.com> Marcin Wojtas <mw@semihalf.com> Obtained from: Semihalf Sponsored by: Stormshield (main development) Netgate (cleanup and upstreaming) Differential revision: https://reviews.freebsd.org/D10706 Notes: svn path=/head/; revision=319907