-
Notifications
You must be signed in to change notification settings - Fork 53
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
feat: Replace network header types from bindings.rs to crate #147
Conversation
Welcome @maheshrayas! |
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.
It's super cool that you jumped in here to take care of this, thank you! Very glad to have your help with the project!
Code looks great, I have only a few minor comments.
/ok-to-test
/cc @astoycos for review
and /cc @vadorovsky just for awareness that we're going to start using your crate, thanks for creating and maintaining it! 🖖
Thanks @maheshrayas! I will also take a look today 👍 |
* run cargo fmt * Add the offset variable * remove the ETH_HDR_LEN and IP_HDR_LEN constant and use the constant defined in crate
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.
Looks awesome!
/ok-to-test
/approve
Thank you so much for jumping in and taking care of this one. Approved, but I'll leave the final LGTM to @astoycos.
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.
Looking really good @maheshrayas Thanks for taking care of this 🥳
Some small nits/fix also please remove all the xtask machinery we have at https://github.com/kubernetes-sigs/blixt/blob/main/dataplane/xtask/src/main.rs#L29 concerning codegen!!
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 pinging me. I made a new release of network-types, so you don't need to use git https://crates.io/crates/network-types/0.0.5
Besides, I think this xtask subcommand can be removed now :)
https://github.com/kubernetes-sigs/blixt/blob/main/dataplane/xtask/src/codegen.rs
Thank you! 🥳 |
* remove codegen functionality in xtask * remove unused imports * bump the network_type crate version to v0.0.5
@astoycos thank you for reviewing. Resolved all. |
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.
/lgtm
/approve
Thanks again @maheshrayas!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: astoycos, maheshrayas, shaneutt The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
oops @maheshrayas Can you remove that one extra commit 6fe3471 |
done |
/lgtm |
fixes: #99