summaryrefslogtreecommitdiffstats
path: root/zebra
diff options
context:
space:
mode:
authorDonna Sharp <dksharp5@gmail.com>2024-10-07 01:08:44 +0200
committerDonna Sharp <dksharp5@gmail.com>2024-10-07 01:08:44 +0200
commitb6dd4ff8bc7d52e2e5f379ecdaddaf44e37e8418 (patch)
treec1de05a2331a0154131b67a2f97647114739474d /zebra
parentMerge pull request #17010 from anlancs/fix/tools-pim-interface-wrong-2 (diff)
downloadfrr-b6dd4ff8bc7d52e2e5f379ecdaddaf44e37e8418.tar.xz
frr-b6dd4ff8bc7d52e2e5f379ecdaddaf44e37e8418.zip
zebra: remove unused function from tc_netlink.c
Signed-off-by: Donna Sharp <dksharp5@gmail.com>
Diffstat (limited to 'zebra')
-rw-r--r--zebra/tc_netlink.c19
-rw-r--r--zebra/tc_netlink.h2
2 files changed, 0 insertions, 21 deletions
diff --git a/zebra/tc_netlink.c b/zebra/tc_netlink.c
index 19667e66a..2f005d6b0 100644
--- a/zebra/tc_netlink.c
+++ b/zebra/tc_netlink.c
@@ -852,23 +852,4 @@ int netlink_qdisc_read(struct zebra_ns *zns)
return 0;
}
-int netlink_tfilter_read_for_interface(struct zebra_ns *zns, ifindex_t ifindex)
-{
- int ret;
- struct zebra_dplane_info dp_info;
-
- zebra_dplane_info_from_zns(&dp_info, zns, true);
-
- ret = netlink_request_filters(zns, AF_UNSPEC, RTM_GETTFILTER, ifindex);
- if (ret < 0)
- return ret;
-
- ret = netlink_parse_info(netlink_tfilter_change, &zns->netlink_cmd,
- &dp_info, 0, true);
- if (ret < 0)
- return ret;
-
- return 0;
-}
-
#endif /* HAVE_NETLINK */
diff --git a/zebra/tc_netlink.h b/zebra/tc_netlink.h
index 5e95e6c1d..300c53b6f 100644
--- a/zebra/tc_netlink.h
+++ b/zebra/tc_netlink.h
@@ -50,8 +50,6 @@ netlink_put_tc_filter_update_msg(struct nl_batch *bth,
*/
extern int netlink_qdisc_read(struct zebra_ns *zns);
-extern int netlink_tfilter_read_for_interface(struct zebra_ns *zns,
- ifindex_t ifindex);
extern int netlink_tfilter_change(struct nlmsghdr *h, ns_id_t ns_id,
int startup);