Page MenuHomeFreeBSD

bnxt: Correct the logic to report supported speeds

Authored by on Dec 4 2017, 6:16 AM.



This patch has the below changes

  • phy_type UNKNOWN is treated as valid type and report auto if phy_type is unknown and log a debug message for user attention.
  • On Link up & down, update media types again. If Link state or media changes, user will observe correct supported media and speeds.
  • Removed work around in default case of assigning all the possible supported speeds. Just added debug message for user information.
Test Plan

test scenarios excuted:

  1. If cable is not plugged in while driver load, making default supported speed as auto select
  2. Once cable is plugged in and on Link up, depend on PHY type populating the real supported speeds.
  3. If Cable already plugged in while loading driver, populating supported speeds(This support already present)

Diff Detail

rS FreeBSD src repository - subversion
Lint Skipped
Unit Tests Skipped

Event Timeline

Context is not available. I will rework on this patch and resubmit.