Page MenuHomeFreeBSD

Introduce e6000sw etherswitch support
ClosedPublic

Authored by bsz_semihalf.com on Oct 15 2015, 12:39 PM.
Referenced Files
Unknown Object (File)
Sep 11 2024, 1:24 PM
Unknown Object (File)
Sep 5 2024, 8:12 PM
Unknown Object (File)
Sep 5 2024, 4:24 AM
Unknown Object (File)
Aug 27 2024, 7:52 PM
Unknown Object (File)
Aug 22 2024, 8:54 PM
Unknown Object (File)
Aug 22 2024, 8:54 PM
Unknown Object (File)
Aug 22 2024, 8:53 PM
Unknown Object (File)
Aug 22 2024, 8:22 PM
Subscribers

Details

Summary

Add e6000sw driver supporting Marvell 88E6352, 88E6172, 88E6176 switches. It needs to be attached to mdio interface, exporting SMI access functionality. e6000sw supports port-based VLAN configuration, per-port media changing, accessing PHY and switch registers.

e6000sw attaches miibuses and PHY drivers as children. Instead of typical tick as callout, kthread-based tick is used. This combined with SX locks allows MDIO read/write calls to sleep. It is expected, because this hardware requires long delays in SMI read/write procedures, which can not be handled by busy-waiting.

Test Plan

It was tested on custom Kirkwood-based platform equipped with e6000sw switch.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bsz_semihalf.com retitled this revision from to Introduce e6000sw etherswitch support.
bsz_semihalf.com updated this object.
bsz_semihalf.com edited the test plan for this revision. (Show Details)
bsz_semihalf.com added reviewers: adrian, ian, zbb.
bsz_semihalf.com set the repository for this revision to rS FreeBSD src repository - subversion.
bsz_semihalf.com added a project: network.
adrian edited edge metadata.

yup, looks good!

This revision is now accepted and ready to land.Oct 18 2015, 7:14 AM

Note: are you able to commit this; or should I commit this patch series?italic text

In D3902#81621, @adrian wrote:

Note: are you able to commit this; or should I commit this patch series?italic text

Thank you Adrian for the review and offering your help here! We can commit this by ourselves.

This revision was automatically updated to reflect the committed changes.