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

ebpf: use TC_ACT_PIPE in classifier #104

Merged
merged 2 commits into from
May 21, 2024
Merged

Conversation

cpick
Copy link

@cpick cpick commented Feb 23, 2024

Demonstrate using the correct constant instead of a magic number.

Also set resolver = "2" at the workspace's Cargo.toml. This is the default resolver for the 2021 edition, but is a workspace-wide setting needs to be set manually in virtual workspaces. https://doc.rust-lang.org/edition-guide/rust-2021/default-cargo-resolver.html#details

Chris Pick added 2 commits May 21, 2024 23:01
Demonstrate using the correct constant instead of a magic number.
This is the default resolver for the 2021 edition, but needs to be set
manually in virtual workspaces.

https://doc.rust-lang.org/edition-guide/rust-2021/default-cargo-resolver.html#detail
Copy link
Member

@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 your contribution! 🙏 And sorry for late reaction.

The content of the PR looks good, but just for the future - please don't mix different changes in the same commit. TC_ACT_PIPE and resolver = "2" are two different, unrelated things. Ideally, they should've been submitted as separate PRs.

For this PR, I just went ahead and split the changes into separate commits. I'm still keeping you as an author of both, I hope GitHub handles that well. 😅

@vadorovsky vadorovsky merged commit 2ad8773 into aya-rs:main May 21, 2024
20 checks passed
@cpick cpick deleted the use-tc-act-const branch May 23, 2024 20:43
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