mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 21:47:15 +02:00
zebra: remove unsued function from tc_netlink.c
Signed-off-by: Donna Sharp <dksharp5@gmail.com>
This commit is contained in:
parent
7a63799a84
commit
103f24485c
|
@ -660,27 +660,6 @@ netlink_put_tc_filter_update_msg(struct nl_batch *bth,
|
||||||
return ret;
|
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
|
* Request queue discipline from the kernel
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue