SVNews r318524

NOTE: This service is experimental and subject to change! Use at your own risk!

2017-05-19 08:24:23 - r318524 by wma (wma)

Complete list of files affected by revision r318524:

(Note: At the moment, these links point to ViewVC on svn.freebsd.org. They are probably slow. Do not overuse.)

  History   Contents   Diff   MODIFY   /head/sys/dev/etherswitch/e6000sw/e6000sw.c  
  History   Contents   Diff   MODIFY   /head/sys/dev/etherswitch/e6000sw/e6000swreg.h  

Commit message:

Poll PHY status using internal e6000sw registers

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.

Submitted by: Marcin Wojtas <mw@semihalf.com>
Obtained from: Semihalf
Sponsored by: Stormshield
Reviewed by: loos
Differential revision: https://reviews.freebsd.org/D10714

 


Powered by Python FreeBSD support by secnetix GmbH & Co. KG

Page generated in 18 ms, 2 files printed. Current time is 2017-08-16 15:09:13. All times are in UTC/GMT.