Skip to content

Commit

Permalink
tc: add SchedClassifierLink::attach_type() getter
Browse files Browse the repository at this point in the history
The link already exposes priority() and handle(). Expose attach_type()
too.
  • Loading branch information
alessandrod committed Jan 2, 2024
1 parent 13f21dc commit b13645b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions aya/src/programs/tc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,11 @@ impl SchedClassifierLink {
})))
}

/// Returns the attach type.
pub fn attach_type(&self) -> TcAttachType {
self.inner().attach_type
}

/// Returns the allocated priority. If none was provided at attach time, this was allocated for you.
pub fn priority(&self) -> u16 {
self.inner().priority
Expand Down

0 comments on commit b13645b

Please sign in to comment.