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

[tuning] add ability to set tx queue len #914

Merged
merged 1 commit into from Jun 26, 2023

Conversation

tariq1890
Copy link
Contributor

Add support to set tx queue length to network interfaces. This is useful when we have to configure net devs of SRIOV Virtual functions in the CNI layer

@tariq1890 tariq1890 changed the title [tuning]add ability to set tx queue len [tuning] add ability to set tx queue len Jun 21, 2023
plugins/meta/tuning/tuning_test.go Outdated Show resolved Hide resolved
Copy link
Contributor

@maiqueb maiqueb left a comment

Choose a reason for hiding this comment

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

All I have are opinionated nits.

The code looks good, and the test coverage also looks solid.

Thank you.

plugins/meta/tuning/tuning.go Outdated Show resolved Hide resolved
plugins/meta/tuning/tuning_test.go Outdated Show resolved Hide resolved
plugins/meta/tuning/tuning_test.go Outdated Show resolved Hide resolved
plugins/meta/tuning/tuning_test.go Show resolved Hide resolved
"name": "test",
"type": "iplink",
"cniVersion": "%s",
"txQLen": 20000,
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: make make this 20000 value a const, which can be re-used throughout the test ?
It is IMO better than consistently repeating this "magic" number.

Signed-off-by: Tariq Ibrahim <tibrahim@nvidia.com>
Copy link
Member

@squeed squeed left a comment

Choose a reason for hiding this comment

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

really nice, thanks!

@squeed squeed merged commit 1512d72 into containernetworking:main Jun 26, 2023
5 checks passed
@tariq1890 tariq1890 deleted the tx-qlen branch June 26, 2023 19:44
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

4 participants