Page MenuHomeFreeBSD

Poll PHY status using internal e6000sw registers

Authored by on May 14 2017, 12:46 AM.



e6000sw family automatically reflects PHY status in each port's registers.
Therefore it is not necessary to do a full PHY polling squence, which
results in much quicker operation and much less significant usage of
the SMI bus.

Care must be taken that the resulting ifmedia_active is identical to
what the PHY will compute, or gratuitous link status changes will
occur whenever the PHYs update function is called.

This patch implements above improvement. On the occasion set a pointer to
the proc structure to be part of software context instead of being
a global variable.

Diff Detail

rS FreeBSD src repository - subversion
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

A couple of long lines in new code but otherwise this is good to go.

This revision is now accepted and ready to land.May 18 2017, 5:20 PM
This revision was automatically updated to reflect the committed changes.