]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: remove unsued function from tc_netlink.c
authorDonna Sharp <dksharp5@gmail.com>
Sun, 6 Oct 2024 23:30:56 +0000 (19:30 -0400)
committerDonna Sharp <dksharp5@gmail.com>
Sun, 6 Oct 2024 23:30:56 +0000 (19:30 -0400)
Signed-off-by: Donna Sharp <dksharp5@gmail.com>
zebra/tc_netlink.c

index 2f005d6b0a275789b2ea927b599276200c7173d0..3c4db0090ccb9872cd7bec578b1123fe9beff60c 100644 (file)
@@ -660,27 +660,6 @@ netlink_put_tc_filter_update_msg(struct nl_batch *bth,
        return ret;
 }
 
-/*
- * Request filters from the kernel
- */
-static int netlink_request_filters(struct zebra_ns *zns, int family, int type,
-                                  ifindex_t ifindex)
-{
-       struct {
-               struct nlmsghdr n;
-               struct tcmsg tc;
-       } req;
-
-       memset(&req, 0, sizeof(req));
-       req.n.nlmsg_type = type;
-       req.n.nlmsg_flags = NLM_F_ROOT | NLM_F_MATCH | NLM_F_REQUEST;
-       req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcmsg));
-       req.tc.tcm_family = family;
-       req.tc.tcm_ifindex = ifindex;
-
-       return netlink_request(&zns->netlink_cmd, &req);
-}
-
 /*
  * Request queue discipline from the kernel
  */