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

net/nat: Minor code optimizations #12130

Merged
merged 2 commits into from
Apr 12, 2024
Merged

Conversation

wengzhe
Copy link
Contributor

@wengzhe wengzhe commented Apr 12, 2024

Summary

Patches included:

  • net/nat: Rename struct ipv*_nat_entry to ipv*_nat_entry_t
    • I found struct ipv*_nat_entry is missing _s suffix, but the name is too long in some cases, so maybe ipv*_nat_entry_t could be better.
  • net/nat: Remove unnecessary logic in inbound logic

Impact

Minor

Testing

CI

I found `struct ipv*_nat_entry` is missing `_s` suffix, but the name is too long in some cases, so maybe `ipv*_nat_entry_t` could be better.

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
Finish apache#12116 (comment)

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
@wengzhe
Copy link
Contributor Author

wengzhe commented Apr 12, 2024

Pushing to retrigger the CI which seems failing in an unrelated position.

@jerpelea jerpelea merged commit 932c41d into apache:master Apr 12, 2024
26 checks passed
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.

None yet

4 participants