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

feat: Replace network header types from bindings.rs to crate #147

Merged
merged 4 commits into from
Nov 30, 2023

Conversation

maheshrayas
Copy link
Contributor

fixes: #99

Copy link

linux-foundation-easycla bot commented Nov 29, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

@k8s-ci-robot
Copy link
Contributor

Welcome @maheshrayas!

It looks like this is your first PR to kubernetes-sigs/blixt 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-sigs/blixt has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Nov 29, 2023
Copy link
Member

@shaneutt shaneutt left a 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! 🖖

dataplane/ebpf/Cargo.toml Outdated Show resolved Hide resolved
dataplane/ebpf/src/egress/icmp.rs Show resolved Hide resolved
dataplane/ebpf/src/main.rs Outdated Show resolved Hide resolved
dataplane/ebpf/src/main.rs Outdated Show resolved Hide resolved
dataplane/ebpf/src/main.rs Show resolved Hide resolved
dataplane/ebpf/src/utils.rs Outdated Show resolved Hide resolved
dataplane/ebpf/src/utils.rs Outdated Show resolved Hide resolved
@k8s-ci-robot k8s-ci-robot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label Nov 29, 2023
@kubernetes-sigs kubernetes-sigs deleted a comment from k8s-ci-robot Nov 29, 2023
@astoycos astoycos self-assigned this Nov 29, 2023
@astoycos
Copy link
Member

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
Copy link
Member

@shaneutt shaneutt left a 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.

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 30, 2023
Copy link
Member

@astoycos astoycos left a 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!!

dataplane/ebpf/Cargo.toml Outdated Show resolved Hide resolved
dataplane/ebpf/src/utils.rs Outdated Show resolved Hide resolved
Copy link

@vadorovsky vadorovsky left a 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

dataplane/ebpf/Cargo.toml Outdated Show resolved Hide resolved
@shaneutt
Copy link
Member

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

ACK

Thank you! 🥳

* remove codegen functionality in xtask
* remove unused imports
* bump the network_type crate version to v0.0.5
@maheshrayas
Copy link
Contributor Author

@astoycos thank you for reviewing. Resolved all.

Copy link
Member

@astoycos astoycos left a 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!

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 30, 2023
@k8s-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 30, 2023
@astoycos
Copy link
Member

oops @maheshrayas Can you remove that one extra commit 6fe3471

@maheshrayas
Copy link
Contributor Author

oops @maheshrayas Can you remove that one extra commit 6fe3471

done

@astoycos astoycos added the tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges. label Nov 30, 2023
@astoycos
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 30, 2023
@k8s-ci-robot k8s-ci-robot merged commit dc1a070 into kubernetes-sigs:main Nov 30, 2023
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges.
Projects
Development

Successfully merging this pull request may close these issues.

Convert to using network_types crate
5 participants