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)
Feb 21 2024, 2:44 PM
Unknown Object (File)
Dec 20 2023, 1:22 AM
Unknown Object (File)
Oct 27 2023, 3:12 AM
Unknown Object (File)
Sep 12 2023, 4:24 PM
Unknown Object (File)
Apr 8 2023, 9:05 PM
Unknown Object (File)
Mar 23 2023, 6:27 AM
Unknown Object (File)
Jan 17 2023, 10:26 AM
Unknown Object (File)
Jan 8 2023, 2:32 PM

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.