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 tc-flower(8) support #135

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

AlexanderChernikov
Copy link

@AlexanderChernikov AlexanderChernikov commented Sep 14, 2024

This is mostly complete tc-flower implementation (94/96) attributes supported (and covered with tests).
The only missing is TCA_FLOWER_KEY_ENC_OPTS handling. I plan to add support for it it this week.
Tested on 5.15.0-118-generic (so does netlink captures).
I've added a small python tool (stock python3, no dependencies) to simplify netlink dumps for rtnelink, providing those in ready-to-insert-to-the-test format.
I've also added a number of changes to actions code, including adding tunnel_key action - happy to split those to separate requests if needed. I also plan to add ct and tc-pedit in the next couple of weeks.
Happy to work towards addressing all concerns and getting this landed.

@wllenyj
Copy link
Contributor

wllenyj commented Sep 23, 2024

The cargo fmt check failed, please fix it, thanks.

@AlexanderChernikov
Copy link
Author

AlexanderChernikov commented Sep 23, 2024

The cargo fmt check failed, please fix it, thanks.

Whoops! Non-nightly fmt version doesn't feel comfortable touching the comments. Formatted with nightly.
Also updated the diff version to include another ~40 flower attributes and more tests.

@AlexanderChernikov
Copy link
Author

  • Fixed clippy errors and added license to a new file.

Copy link
Contributor

@wllenyj wllenyj 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.

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.

2 participants