[etherswitch] check if_alloc returns NULLThis patch is cosmetic. It checks if allocation of ifnet structure failed.It's better to have this check rather than assume positive scenario.Submitted b
[etherswitch] check if_alloc returns NULLThis patch is cosmetic. It checks if allocation of ifnet structure failed.It's better to have this check rather than assume positive scenario.Submitted by: Dmitry Luhtionov <[email protected]>Reported by: Dmitry Luhtionov <[email protected]>
show more ...
sys/dev: further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - error
sys/dev: further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - errorprone - task.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier for automated tools to detect and summarize well knownopensource licenses. We are gradually adopting the specification, notingthat the tags are considered only advisory and do not, in any way,superceed or replace the license texts.
[ip17x] [etherswitch] fdt away and mii hang workaround on ip17xAdd workaround mii access because of rt1310 is hang up on etherswitch mii poll.And FDT away on arm platform.Tested:* wzr2-g300n
[ip17x] [etherswitch] fdt away and mii hang workaround on ip17xAdd workaround mii access because of rt1310 is hang up on etherswitch mii poll.And FDT away on arm platform.Tested:* wzr2-g300nSubmitted by: Hiroki Mori <[email protected]>Reviewed by: mizhkaDifferential Revision: https://reviews.freebsd.org/D10295
[etherswitch] enable phy4/mac4 of ip175cIf MII1 interface is disabled, then enable phy4/mac4.Submitted by: Hiroki Mori <[email protected]>Reviewed by: mizhka, adrianApproved by: adrian (men
[etherswitch] enable phy4/mac4 of ip175cIf MII1 interface is disabled, then enable phy4/mac4.Submitted by: Hiroki Mori <[email protected]>Reviewed by: mizhka, adrianApproved by: adrian (mentor)Differential Revision: https://reviews.freebsd.org/D6832
sys/dev: replace comma with semicolon when pertinent.Uses of commas instead of a semicolons can easily go undetected. The commacan serve as a statement separator but this shouldn't be abused when
sys/dev: replace comma with semicolon when pertinent.Uses of commas instead of a semicolons can easily go undetected. The commacan serve as a statement separator but this shouldn't be abused whenstatements are meant to be standalone.Detected with devel/coccinelle following a hint from DragonFlyBSD.MFC after: 1 month
Cleanup unnecessary semicolons from the kernel.Found with devel/coccinelle.
[mdio] migrate mdiobus out of etherswitch and into a top-level device of its own.The mdio driver interface is generally useful for devices that requireMDIO without the full MII bus interface. This
[mdio] migrate mdiobus out of etherswitch and into a top-level device of its own.The mdio driver interface is generally useful for devices that requireMDIO without the full MII bus interface. This lifts the driver/interfaceout of etherswitch(4), and adds a mdio(4) man page.Submitted by: Landon Fuller <[email protected]>Differential Revision: https://reviews.freebsd.org/D4606
Fix the build with debug enabled and remove a variable used only at switchinitialization, it is nonsense keep it around without futher use.
Fix a bug on ip17x switch initialization which will fail as soon as youdisable the debug and diagnosis options from current. We must wait 2msafter the switch reset and not 2us.Tested on RB433UAH.
Add missing includes and remove two unused ones.Reviewed by: loosMFC after: 1 week
Add a new flag (ETHERSWITCH_VID_VALID) to say what vlangroups are in use.This fix the case when etherswitch is printing the information of port 0vlan group (in port based vlan mode) with no member
Add a new flag (ETHERSWITCH_VID_VALID) to say what vlangroups are in use.This fix the case when etherswitch is printing the information of port 0vlan group (in port based vlan mode) with no member ports.Add the ETHERSWITCH_VID_VALID support to ip17x driver.Add the ETHERSWITCH_VID_VALID support to rt8366 driver.arswitch doesn't need to be updated as it doesn't support vlans managementyet.Approved by: adrian (mentor)
Bring in a basic ethernet switch driver for the IP17x series ofswitches.These are notably found on some AR71xx based Mikrotik boards.Submitted by: Luiz Otavio O Souza <[email protected]>Reviewe
Bring in a basic ethernet switch driver for the IP17x series ofswitches.These are notably found on some AR71xx based Mikrotik boards.Submitted by: Luiz Otavio O Souza <[email protected]>Reviewed by: ray