Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FEC() and SetFEC() methods to configure forward error correction #10

Merged
merged 1 commit into from
Aug 30, 2022

Conversation

stapelberg
Copy link
Contributor

Some network card and SFP module combinations (e.g. Mellanox ConnectX-4 with a
Flexoptix P.B1625G.10.AD) need to explicitly be configured to use RS forward
error correction, otherwise they won’t link.

I changed the get() function to only set the COMPACT_BITSETS flag for query
commands so that the resulting request byte sequence matches the ethtool(8) byte
sequence 1:1 (see TestFEC). Functionally, there is no change in behavior,
as can be verified by looking at the corresponding Linux kernel code :)

Copy link
Owner

@mdlayher mdlayher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks!

Some network card and SFP module combinations (e.g. Mellanox ConnectX-4 with a
Flexoptix P.B1625G.10.AD) need to explicitly be configured to use RS forward
error correction, otherwise they won’t link.

I changed the get() function to only set the COMPACT_BITSETS flag for query
commands so that the resulting request byte sequence matches the ethtool(8) byte
sequence 1:1 (see TestFEC). Functionally, there is no change in behavior,
as can be verified by looking at the corresponding Linux kernel code :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants