Skip to content

Re #19 - Add the nat action to tc #20

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

Merged
merged 2 commits into from
Apr 14, 2023
Merged

Conversation

sophacles
Copy link

No description provided.

@wllenyj
Copy link
Contributor

wllenyj commented Feb 16, 2023

Please rebase, and solve the ci failure.

@codecov
Copy link

codecov bot commented Feb 16, 2023

Codecov Report

Merging #20 (5fecd0d) into main (75ce74c) will decrease coverage by 0.70%.
The diff coverage is 0.00%.

❗ Current head 5fecd0d differs from pull request most recent head 32744b0. Consider uploading reports for the commit 32744b0 to get more accurate results

@@            Coverage Diff             @@
##             main      #20      +/-   ##
==========================================
- Coverage   46.53%   45.83%   -0.70%     
==========================================
  Files          72       73       +1     
  Lines        5880     5969      +89     
==========================================
  Hits         2736     2736              
- Misses       3144     3233      +89     
Impacted Files Coverage Δ
src/rtnl/tc/nlas/action/mod.rs 60.56% <0.00%> (-2.22%) ⬇️
src/rtnl/tc/nlas/action/nat.rs 0.00% <0.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@sophacles sophacles force-pushed the nat_action branch 2 times, most recently from c596602 to 6650f7f Compare February 16, 2023 17:55
@sophacles
Copy link
Author

Thanks for taking a look @wllenyj . I've rebased and fixed the formatting errors reported by CI. Will pay attention for additional failures in case I missed something.

@wllenyj
Copy link
Contributor

wllenyj commented Feb 21, 2023

@cathay4t Do you have any comments?

@wllenyj wllenyj requested a review from cathay4t February 21, 2023 06:33
@sophacles
Copy link
Author

Please note, I added a builder method to the TcNat struct to set the egress bit for NAT direction.

@cathay4t
Copy link
Member

I have ammend the git commit message to include Signed-off-by: Erich Heine <....>.

Copy link
Member

@cathay4t cathay4t left a comment

Choose a reason for hiding this comment

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

Besides removing TCA_NAT_MAX and PAD, looks good to me.

I am not TC expert, I trust you know your territory

Comment on lines 101 to 102
pub const TCA_NAT_PAD: u16 = 3;
pub const TCA_NAT_MAX: u16 = TCA_NAT_PAD;
Copy link
Member

Choose a reason for hiding this comment

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

Please remove TCA_NAT_PAD and TCA_NAT_MAX.
The TCA_NAT_PAD is unused anywhere. The TCA_NAT_MAX is not constant to kernel but a internal variable might change in future release of linux kernel.

@cathay4t
Copy link
Member

This has been delayed for a long time. Let me amend the patch by removing TCA_NAT_MAX and PAD.

Erich Heine added 2 commits April 14, 2023 16:17
Signed-off-by: Erich Heine <erich@cloudflare.com>
Signed-off-by: Erich Heine <erich@cloudflare.com>
@cathay4t cathay4t dismissed their stale review April 14, 2023 08:20

amended

@cathay4t cathay4t merged commit 62d2411 into rust-netlink:main Apr 14, 2023
@sophacles
Copy link
Author

This has been delayed for a long time. Let me amend the patch by removing TCA_NAT_MAX and PAD.

Apoligies, I lost track of that request. Thank you for taking care of it!

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.

3 participants