#
aa48c1ae |
| 02-Jan-2025 |
John Baldwin <jhb@FreeBSD.org> |
etherswitch: Cleanup detach and delete of child devices during detach
Call bus_generic_detach first and return any error. Remove no longer needed individual device_delete_child calls.
Differential
etherswitch: Cleanup detach and delete of child devices during detach
Call bus_generic_detach first and return any error. Remove no longer needed individual device_delete_child calls.
Differential Revision: https://reviews.freebsd.org/D47970
show more ...
|
#
18250ec6 |
| 06-Dec-2024 |
John Baldwin <jhb@FreeBSD.org> |
Replace calls to bus_generic_attach with bus_attach_children
Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D47675
|
#
723da5d9 |
| 06-Dec-2024 |
John Baldwin <jhb@FreeBSD.org> |
Replace calls to bus_generic_probe with bus_identify_children
Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D47674
|
Revision tags: release/14.2.0, release/13.4.0 |
|
#
aa386085 |
| 28-Jun-2024 |
Zhenlei Huang <zlei@FreeBSD.org> |
net: Remove unneeded NULL check for the allocated ifnet
Change 4787572d0580 made if_alloc_domain() never fail, then also do the wrappers if_alloc(), if_alloc_dev(), and if_gethandle().
No functiona
net: Remove unneeded NULL check for the allocated ifnet
Change 4787572d0580 made if_alloc_domain() never fail, then also do the wrappers if_alloc(), if_alloc_dev(), and if_gethandle().
No functional change intended.
Reviewed by: kp, imp, glebius, stevek MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D45740
show more ...
|
Revision tags: release/14.1.0, release/13.3.0 |
|
#
54482989 |
| 05-Feb-2024 |
Mark Johnston <markj@FreeBSD.org> |
etherswitch: Use device_set_desc(f)()
No functional change intended.
MFC after: 1 week
|
Revision tags: release/14.0.0 |
|
#
95ee2897 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Remove $FreeBSD$: two-line .h pattern
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
|
#
8f5dbc22 |
| 08-Aug-2023 |
Marius Strobl <marius@FreeBSD.org> |
arswitch(4): Remove support for AR{7240,9340} found in MIPS SoCs only
With the general removal of MIPS support there's no longer a need to support these integrated switches.
Approved by: adrian Dif
arswitch(4): Remove support for AR{7240,9340} found in MIPS SoCs only
With the general removal of MIPS support there's no longer a need to support these integrated switches.
Approved by: adrian Differential Revision: https://reviews.freebsd.org/D41394
show more ...
|
#
e0bc8f8d |
| 08-Aug-2023 |
Michael Zhilin <mizhka@FreeBSD.org> |
etherswitch/arswitch: correct version detection
During porting of etherswitch to NetBSD mistypo was discovered in Atheros switch version detection.
Reported by: Hiroki Mori yamori813@yahoo.co.jp
etherswitch/arswitch: correct version detection
During porting of etherswitch to NetBSD mistypo was discovered in Atheros switch version detection.
Reported by: Hiroki Mori yamori813@yahoo.co.jp MFC after: 1 week
show more ...
|
#
4d846d26 |
| 10-May-2023 |
Warner Losh <imp@FreeBSD.org> |
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause.
Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
show more ...
|
Revision tags: release/13.2.0 |
|
#
74c592c0 |
| 31-Jan-2023 |
Justin Hibbits <jhibbits@FreeBSD.org> |
etherswitch: Clean up whitespace after IfAPI conversion
Sponsored by: Juniper Networks, Inc. Fixes: 2e6a8c1ae
|
Revision tags: release/12.4.0 |
|
#
2e6a8c1a |
| 30-May-2022 |
Justin Hibbits <jhibbits@FreeBSD.org> |
Mechanically convert etherswitch drivers to IfAPI
Reviewed by: kd Sponsored by: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D37813
|
Revision tags: release/13.1.0 |
|
#
42726c2f |
| 09-May-2022 |
John Baldwin <jhb@FreeBSD.org> |
etherswitch drivers: Remove unused devclass arguments to DRIVER_MODULE.
|
#
829a13fa |
| 09-May-2022 |
John Baldwin <jhb@FreeBSD.org> |
Remove unused etherswitch_devclass.
|
#
8933f7d6 |
| 19-Apr-2022 |
John Baldwin <jhb@FreeBSD.org> |
Remove unused mdio_devclass.
|
#
3e38757d |
| 19-Apr-2022 |
John Baldwin <jhb@FreeBSD.org> |
Remove unused miibus_devclass and miibus_fdt_devclass.
|
Revision tags: release/12.3.0, release/13.0.0, release/12.2.0, release/11.4.0, release/12.1.0, release/11.3.0, release/12.0.0, release/11.2.0 |
|
#
2ba4bf8f |
| 06-Feb-2018 |
Adrian Chadd <adrian@FreeBSD.org> |
[arswitch] Implement the switch MAC address fetch API.
The placeholders are here for some future "set" MAC address API.
Tested:
* AR9340 switch * AR8327 switch
|
#
7ed08319 |
| 05-Feb-2018 |
Adrian Chadd <adrian@FreeBSD.org> |
[arswitch] Break out of the loop upon any error, not just -1.
This fixes the AR9340 "unimplemented" thingy for now.
|
#
62042c97 |
| 02-Feb-2018 |
Adrian Chadd <adrian@FreeBSD.org> |
[arswitch] begin tidying up the learning and ATU management, introduce ATU APIs.
* Refactor the initial learning configuration (port learning, address expiry, handling address moving between ports
[arswitch] begin tidying up the learning and ATU management, introduce ATU APIs.
* Refactor the initial learning configuration (port learning, address expiry, handling address moving between ports, etc, etc) into a separate HAL routine * and ensure that it's consistent between switch chips - the AR8216,8316,724x,9331 SoCs all share the same switch code. * .. the AR8327 needs doing - the defaults seem OK for now * .. the AR9340 is different but it's also programmed now.
* Add support for flushing a single port worth of ATU entries * Add support for fetching the ATU table from AR8216 and derived chips
Tested:
* AR9344, Carambola 2
TODO:
* Further testing on other chips * Add AR9340 support * Add AR8327 support
show more ...
|
#
2c6cecca |
| 31-Jan-2018 |
Adrian Chadd <adrian@FreeBSD.org> |
[arswitch] Fix ATU flushing on AR8216/AR8316 and most of the later chips.
The switch hardware requires this bit to be set in order to kick start the actual ATU update. This was being masked on some
[arswitch] Fix ATU flushing on AR8216/AR8316 and most of the later chips.
The switch hardware requires this bit to be set in order to kick start the actual ATU update. This was being masked on some chips by the learning programming (what to do when a MAC address moves, hash table collision, etc) which is currently inconsistent between chips.
Tested:
* AR9344 SoC (AR7240 style switch internal)
show more ...
|
#
0774131e |
| 24-Jan-2018 |
Michael Zhilin <mizhka@FreeBSD.org> |
[etherswitch] check if_alloc returns NULL
This 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 NULL
This 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 <dmitryluhtionov@gmail.com> Reported by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>
show more ...
|
#
718cf2cc |
| 27-Nov-2017 |
Pedro F. Giffuni <pfg@FreeBSD.org> |
sys/dev: further adoption of SPDX licensing ID tags.
Mainly focus on files that use BSD 2-Clause license, however the tool I was 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 I was using misidentified many licenses so this was mostly a manual - error prone - task.
The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts.
show more ...
|
Revision tags: release/10.4.0, release/11.1.0 |
|
#
721fc9d8 |
| 16-Jan-2017 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r312207 through r312308.
|
#
17274d52 |
| 15-Jan-2017 |
Enji Cooper <ngie@FreeBSD.org> |
MFhead@r312226
|
#
6d011946 |
| 15-Jan-2017 |
Kristof Provost <kp@FreeBSD.org> |
arswitch: Ensure the lock is always held when calling arswitch_modifyreg()
arswitch_setled() and a number of _global_setup functions did not acquire the lock before calling arswitch_modifyreg(). Wit
arswitch: Ensure the lock is always held when calling arswitch_modifyreg()
arswitch_setled() and a number of _global_setup functions did not acquire the lock before calling arswitch_modifyreg(). With WITNESS enabled this would instantly panic.
Discovered on a TPLink-3600: ("panic: mutex arswitch not owned at sys/dev/etherswitch/arswitch/arswitch_reg.c:236")
Reviewed by: adrian, kan Differential Revision: https://reviews.freebsd.org/D9187
show more ...
|
Revision tags: release/11.0.1, release/11.0.0 |
|
#
27067774 |
| 16-Aug-2016 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r303250 through r304235.
|