Use bus_generic_detach instead of device_delete_children in detachWhile here, check for errors from bus_generic_detach and move it tothe start of detach if necessary.Differential Revision: https
Use bus_generic_detach instead of device_delete_children in detachWhile here, check for errors from bus_generic_detach and move it tothe start of detach if necessary.Differential Revision: https://reviews.freebsd.org/D47969
show more ...
Replace calls to bus_generic_attach with bus_attach_childrenReviewed by: impDifferential Revision: https://reviews.freebsd.org/D47675
neta: improve TCP LROUse the appropriate function to flush correctly all entries. The oldcode does not remove the element from the hash table, only from theactive queue.Reviewed by: Peter Lei,
neta: improve TCP LROUse the appropriate function to flush correctly all entries. The oldcode does not remove the element from the hash table, only from theactive queue.Reviewed by: Peter Lei, rscheffMFC after: 1 weekSponsored by: Netflix, Inc.Differential Revision: https://reviews.freebsd.org/D46433
newbus: globally replace device_add_child(..., -1) with DEVICE_UNIT_ANYSponsored by: Netflix
net: Remove unneeded NULL check for the allocated ifnetChange 4787572d0580 made if_alloc_domain() never fail, then also do thewrappers if_alloc(), if_alloc_dev(), and if_gethandle().No functiona
net: Remove unneeded NULL check for the allocated ifnetChange 4787572d0580 made if_alloc_domain() never fail, then also do thewrappers if_alloc(), if_alloc_dev(), and if_gethandle().No functional change intended.Reviewed by: kp, imp, glebius, stevekMFC after: 2 weeksDifferential Revision: https://reviews.freebsd.org/D45740
clk: Move clock code in dev/clkWe've removed kernel option EXT_RESOURCES almost two years ago.While it was ok to have some code under a common 'extres' subdirectoryat first, we now have a lot of
clk: Move clock code in dev/clkWe've removed kernel option EXT_RESOURCES almost two years ago.While it was ok to have some code under a common 'extres' subdirectoryat first, we now have a lot of consumer of it and we made it mandatoryso no need to have it under a cryptic name.Reviewed by: mhorneSponsored by: Beckhoff Automation GmbH & Co. KGDifferential Revision: https://reviews.freebsd.org/D43191
sys: Automated cleanup of cdefs and other formattingApply the following automated changes to try to eliminateno-longer-needed sys/cdefs.h includes as well as now-emptyblank lines in a row.Remov
sys: Automated cleanup of cdefs and other formattingApply the following automated changes to try to eliminateno-longer-needed sys/cdefs.h includes as well as now-emptyblank lines in a row.Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/Remove /\n+#if.*\n#endif.*\n+/Remove /^#if.*\n#endif.*\n/Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/Sponsored by: Netflix
sys: Remove $FreeBSD$: one-line .c patternRemove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
sys: Remove $FreeBSD$: two-line .h patternRemove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
mvneta: add the missing include opt_mvneta.hSponsored by: Rubicon Communications, LLC ("Netgate")
Mechanically convert neta(4) to IfAPIReviewed by: mwSponsored by: Juniper Networks, Inc.Differential Revision: https://reviews.freebsd.org/D37825
mvneta: Use clkgen API on armv7With addition of clkgen devices to the Armada38x we no longerneed to rely on get_tclk() to get the device frequency.Leave it as a fallback, just in case.Reviewed
mvneta: Use clkgen API on armv7With addition of clkgen devices to the Armada38x we no longerneed to rely on get_tclk() to get the device frequency.Leave it as a fallback, just in case.Reviewed by: manuObtained from: SemihalfDifferential Revision: https://reviews.freebsd.org/D36465
neta: Fix MTU change sequenceThe IFF_DRV_RUNNING flag is used to see if the interface needsto be temporarily brought down during MTU change sequence.The problem here is that this flag is cleared
neta: Fix MTU change sequenceThe IFF_DRV_RUNNING flag is used to see if the interface needsto be temporarily brought down during MTU change sequence.The problem here is that this flag is cleared in mvneta_stop_locked,resulting in the reinitialization logic never being executed afterMTU has been changed.Fix that by saving the flag value before the interface is brought down.Reported by: Jérôme Tomczyk <jerome.tomczyk@stormshield.eu>Approved by: mw(mentor)Obtained from: SemihalfSponsored by: StormshieldMFC after: 2 weeks
mvneta: Remove unused devclass argument to DRIVER_MODULE.
Remove unused mdio_devclass.
Remove unused miibus_devclass and miibus_fdt_devclass.
if_mvneta: Use __diagused for a variable only used in KASSERT().
neta: Fix a typo in a source code comment- s/maintance/maintenance/MFC after: 3 days
if_mvneta: Remove unused variables.
neta: remove write only variableSponsored by: Netflix
neta: Fix a typo in a source code comment- s/immediatly/immediately/MFC after: 3 days
neta: Fix a few common typos in a source code comment- s/hander/handler/MFC after: 3 days
neta: split fixed and in-band link status configurationFixed-link mode requires different handling than the in-bandmanaged connection. Update interrupt, link-up/down andautonegotiation settings f
neta: split fixed and in-band link status configurationFixed-link mode requires different handling than the in-bandmanaged connection. Update interrupt, link-up/down andautonegotiation settings for the former.Reviewed by: mwMFC after: 1 weekObtained from: StormshieldDifferential Revision: https://reviews.freebsd.org/D34394
neta: clk code ifdef'd aarch64So #ifdef the clk.h include aarch64. Otherwise the right kernel optionsaren't always present.Sponsored by: Netflix
mvneta: Unconditionally print an error message if mii_attach() failsThe error message is useful for diagnosing mvneta_attach() failures.MFC after: 1 week
123