Skip to content

Commit

Permalink
tc: Add 3 constants to TcHandle
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
cathay4t committed Dec 5, 2023
1 parent 853378d commit b324a0a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tc/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ impl TcHandle {
};

pub const CLSACT: Self = Self::INGRESS;

pub const MIN_PRIORITY: u16 = 0xFFE0;
pub const MIN_INGRESS: u16 = 0xFFF2;
pub const MIN_EGRESS: u16 = 0xFFF3;
}

impl From<u32> for TcHandle {
Expand Down

0 comments on commit b324a0a

Please sign in to comment.