From b13645b13da5b843728959e0416617ea19096613 Mon Sep 17 00:00:00 2001 From: Alessandro Decina Date: Mon, 1 Jan 2024 09:12:33 +1100 Subject: [PATCH] tc: add SchedClassifierLink::attach_type() getter The link already exposes priority() and handle(). Expose attach_type() too. --- aya/src/programs/tc.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/aya/src/programs/tc.rs b/aya/src/programs/tc.rs index 92cc1699..6eeae543 100644 --- a/aya/src/programs/tc.rs +++ b/aya/src/programs/tc.rs @@ -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