Skip to content

Commit

Permalink
Updates after rebase due to changes in define_link_wrapper
Browse files Browse the repository at this point in the history
Signed-off-by: Andre Fredette <afredette@redhat.com>
  • Loading branch information
anfredette committed Jan 25, 2023
1 parent 6766532 commit d43879d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions aya/src/programs/tc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,22 +267,22 @@ impl SchedClassifierLink {
handle: u32,
) -> Result<SchedClassifierLink, io::Error> {
let if_index = ifindex_from_ifname(if_name)?;
Ok(SchedClassifierLink(TcLink {
Ok(SchedClassifierLink(Some(TcLink {
if_index: if_index as i32,
attach_type,
priority,
handle,
}))
})))
}

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

/// Returns the assigned handle. If none was provided at attach time, this was allocated for you.
pub fn handle(&self) -> u32 {
self.0.handle
self.inner().handle
}
}

Expand Down

0 comments on commit d43879d

Please sign in to comment.