libnl: /data/src/libnl3/include/netlink/route/qdisc/plug.h Source File

libnl 3.7.0

plug.h
1 /* SPDX-License-Identifier: LGPL-2.1-only */
2 /*
3 * Copyright (c) 2012 Shriram Rajagopalan <rshriram@cs.ubc.ca>
4 */
5
6 #ifndef NETLINK_PLUG_H_
7 #define NETLINK_PLUG_H_
8
9 #include <netlink/netlink.h>
10 #include <netlink/route/qdisc.h>
11
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15
16 extern int rtnl_qdisc_plug_set_limit(struct rtnl_qdisc *, int);
17 extern int rtnl_qdisc_plug_buffer(struct rtnl_qdisc *);
18 extern int rtnl_qdisc_plug_release_one(struct rtnl_qdisc *);
19 extern int rtnl_qdisc_plug_release_indefinite(struct rtnl_qdisc *);
20
21 #ifdef __cplusplus
22 }
23 #endif
24
25 #endif
rtnl_qdisc_plug_release_indefinite
int rtnl_qdisc_plug_release_indefinite(struct rtnl_qdisc *)
Indefinitely unplug the qdisc, releasing all packets.
Definition: plug.c:122
rtnl_qdisc_plug_release_one
int rtnl_qdisc_plug_release_one(struct rtnl_qdisc *)
Unplug the qdisc, releasing packets from queue head to the last complete buffer, while new traffic co...
Definition: plug.c:105
rtnl_qdisc_plug_buffer
int rtnl_qdisc_plug_buffer(struct rtnl_qdisc *)
Insert a plug into the qdisc and buffer any incoming network traffic.
Definition: plug.c:88
rtnl_qdisc_plug_set_limit
int rtnl_qdisc_plug_set_limit(struct rtnl_qdisc *, int)
Set limit of PLUG qdisc.
Definition: plug.c:139