-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Module rh_ip support ethtool set channels #59134
Module rh_ip support ethtool set channels #59134
Conversation
ba09bc6
to
4fd9cac
Compare
4fd9cac
to
19674de
Compare
d4dddec
to
7cdbff1
Compare
50d53b1
to
f329b0e
Compare
@cmcmarrow may I ask for some hint? I've changed my code to disappear from diff in |
828256e
to
29364b6
Compare
3da2ef1
to
044c62a
Compare
I apologize I missed this - I will get someone to help you with the dreaded pre-commit. @s0undt3ch @waynew can one of you help with pre-commit failures, here? |
@msciciel For setting up In the above link, depending on how your dev environment is setup, you'll see how you need to install Once you've followed those directions, you need to run the following to apply any fixes or guidance against the two files you are modifying:
After this command runs and applies changes, now create a new git commit that is taking all of the newly applied changes. In the future, If you run into any more problems around pre-commit, feel free to ask. Additional assistance can be found on our Slack channel, if needed, also: |
afd8d8f
to
cddba61
Compare
8e6d6d0
to
dde395b
Compare
All checks have passed. Please review my contribution and i'm waiting for feedback. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@msciciel Might have missed it, but wondering how the changes for channels are displayed or output, that is, is there any function doing the equivalent of '-l --show-channels', or is there a need ?
Example state output looks like:
Example pillar:
To verify that interface is brought up with proper number of channels it is required to use Altering channels number and ring size during interface initialization is safier than on busy system. I've experienced many cases where alteration of these parameter on busy system caused even kernel panic on some specific network card. @dmurphy18 do I properly addressed your question or You have mean something else? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the response, looks good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will need test coverage added
a83e80a
to
2f35981
Compare
@Ch3LL Please verify if provided test is enough. |
2f35981
to
a290a83
Compare
…ged state New param channels can be used to configure network interface channels: eth0: network.managed: - enabled: True - type: eth - proto: static - ipaddr: 10.1.0.7 - netmask: 255.255.255.0 - gateway: 10.1.0.1 - channels: rx: 4 tx: 4 other: 4 combined: 4 It is passed to ethtool during network interfaces initialization: ethtool -L|--set-channels DEVNAME Set Channels [ rx N ] [ tx N ] [ other N ] [ combined N ] rx N Changes the number of channels with only receive queues. tx N Changes the number of channels with only transmit queues. other N Changes the number of channels used only for other purposes combined N Changes the number of multi-purpose channels.
a290a83
to
9cea86d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies I did not notice this on first review, but this will require a changelog entry. I can add it if you are not able to.
Thanks. Next time I will try to add changelog entry. |
What does this PR do?
Introduce ability to control network interface channels using rh_ip module and network.managed state.
What issues does this PR fix or reference?
Fixes: #59147
Previous Behavior
It was not possible to control network interface channels. Salt ethtool module do not support channels too because it use python ethtool module which lacks support for channels.
New Behavior
Allow to control network interface channels. On some systems it is useful to manually control channel in order to achieve proper performance.
Merge requirements satisfied?
It's hard to write test for this because all other ethtool related options in rh_ip module do not have tests.
Commits signed with GPG?
No