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

Add more parsing to tc module #75

Merged
merged 10 commits into from
Dec 5, 2023
Merged

Conversation

cathay4t
Copy link
Member

@cathay4t cathay4t commented Dec 5, 2023

No description provided.

Signed-off-by: Gris Ge <[email protected]>
The `TcU32Selector::flags` changed from u8 to `Vec<TcU32SelectorFlag>`.

Signed-off-by: Gris Ge <[email protected]>
Parse `TCA_U32_FLAGS` into `TcFilterU32Option::Flags(Vec<TcU32OptionFlag>)`

Signed-off-by: Gris Ge <[email protected]>
Instead of exposing u32, this patch parse it into `Vec<TcNatFlag>`

Signed-off-by: Gris Ge <[email protected]>
Copy link

codecov bot commented Dec 5, 2023

Codecov Report

Attention: 41 lines in your changes are missing coverage. Please review.

Comparison is base (07e3e54) 63.38% compared to head (47f4d34) 63.57%.

Files Patch % Lines
src/tc/actions/action.rs 41.93% 18 Missing ⚠️
src/tc/actions/mirror.rs 57.89% 8 Missing ⚠️
src/tc/actions/nat_flag.rs 75.00% 8 Missing ⚠️
src/tc/filters/u32_flags.rs 90.16% 6 Missing ⚠️
src/tc/actions/nat.rs 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #75      +/-   ##
==========================================
+ Coverage   63.38%   63.57%   +0.19%     
==========================================
  Files         131      133       +2     
  Lines        8288     8426     +138     
==========================================
+ Hits         5253     5357     +104     
- Misses       3035     3069      +34     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Added:
 * `TcHandle::MIN_PRIORITY` for `TC_H_MIN_PRIORITY`
 * `TcHandle::MIN_INGRESS` for `TC_H_MIN_INGRESS`
 * `TcHandle::MIN_EGRESS` for `TC_H_MIN_EGRESS`

Signed-off-by: Gris Ge <[email protected]>
@cathay4t cathay4t merged commit d4ff24f into rust-netlink:main Dec 5, 2023
10 checks passed
@cathay4t cathay4t deleted the pre_release branch December 5, 2023 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant