Page MenuHomeFreeBSD

Fix ixgbe flow control autoneg reporting
ClosedPublic

Authored by smh on Jan 27 2016, 12:34 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 8, 8:38 AM
Unknown Object (File)
Mon, Nov 25, 9:53 PM
Unknown Object (File)
Oct 14 2024, 6:03 AM
Unknown Object (File)
Oct 4 2024, 6:58 PM
Unknown Object (File)
Oct 1 2024, 7:42 PM
Unknown Object (File)
Sep 14 2024, 4:42 PM
Unknown Object (File)
Sep 12 2024, 8:58 PM
Unknown Object (File)
Sep 9 2024, 2:04 AM

Details

Summary

Fix ixgbe reporting of flow control autoneg when running under DBG 1

Diff Detail

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

Event Timeline

smh retitled this revision from to Fix ixgbe flow control autoneg reporting.
smh updated this object.
smh edited the test plan for this revision. (Show Details)
smh added reviewers: sbruno, erj.

We need to be careful here, as this is shared code. Our Linux drivers use this as well.

We need to be careful here, as this is shared code. Our Linux drivers use this as well.

We can trivially wrap this in a #ifdef FreeBSD

How's that sound?

We need to be careful here, as this is shared code. Our Linux drivers use this as well.

The fix should be relevant to all versions, currently its printing out unsupported even when it is actually supported, so shouldn't be a problem?

Well Linux changes FC settings through ethtool, so maybe that makes a difference. I'm pretty sure FC in the Linux driver works as expected. I was saying we need to be careful when changing shared code because as it may not get accepted when it goes though our code review internally. Eric may have a different opinion, although Sean's suggestion seems fine to me.

Well Linux changes FC settings through ethtool, so maybe that makes a difference. I'm pretty sure FC in the Linux driver works as expected. I was saying we need to be careful when changing shared code because as it may not get accepted when it goes though our code review internally. Eric may have a different opinion, although Sean's suggestion seems fine to me.

I think there may be a miss-understanding here, this is purely related to the debug output the results of ixgbe_device_supports_autoneg_fc reporting when it shouldn't.

This function specifically calculates if FC autoneg is supported and stores that in the supported var which is returned, the debug output wasn't checking the result of the calculation instead always saying it was unsupported which is incorrect.

The fix is to only output the unsupported message if supported is false.

Does that make more sense?

erj edited edge metadata.

It looks like this does legitimately fix a bug; @jeffrey.e.pieper_intel.com we can work on getting this fixed internally.

This revision is now accepted and ready to land.Jan 27 2016, 6:39 PM
This revision was automatically updated to reflect the committed changes.