Browse Source

rename SchedClassifierLink:new() to new_tc_link()

Avoids name confilct with pr #462

Signed-off-by: Andre Fredette <afredette@redhat.com>
Andre Fredette 2 years ago
parent
commit
849796c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      aya/src/programs/tc.rs

+ 1 - 1
aya/src/programs/tc.rs

@@ -279,7 +279,7 @@ impl SchedClassifierLink {
     ///   [`SchedClassifierLink::detach`] will return a [`TcError::NetlinkError`]
     /// - If you create a link for a program that you do not own, detaching it may have unintended
     ///   consequences.
-    pub fn new(
+    pub fn new_tc_link(
         if_name: &str,
         attach_type: TcAttachType,
         priority: u16,