mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-10-19 19:35:21 +00:00
no longer need xstats stub
(Logical change 1.77)
This commit is contained in:
parent
3d327bf58b
commit
f2f99e2eef
@ -239,15 +239,8 @@ print_gact(struct action_util *au,FILE * f, struct rtattr *arg)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
|
||||||
gact_print_xstats(struct action_util *au, FILE *f, struct rtattr *xstats)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct action_util gact_util = {
|
struct action_util gact_util = {
|
||||||
.id = "gact",
|
.id = "gact",
|
||||||
.parse_aopt = parse_gact,
|
.parse_aopt = parse_gact,
|
||||||
.print_aopt = print_gact,
|
.print_aopt = print_gact,
|
||||||
.print_xstats = gact_print_xstats,
|
|
||||||
};
|
};
|
||||||
|
@ -30,7 +30,6 @@ struct action_util police_util = {
|
|||||||
.id = "police",
|
.id = "police",
|
||||||
.parse_aopt = act_parse_police,
|
.parse_aopt = act_parse_police,
|
||||||
.print_aopt = print_police,
|
.print_aopt = print_police,
|
||||||
.print_xstats = police_print_xstats,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static void explain(void)
|
static void explain(void)
|
||||||
@ -309,7 +308,7 @@ int parse_police(int *argc_p, char ***argv_p, int tca_id, struct nlmsghdr *n)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
print_police(struct action_util *a,FILE *f, struct rtattr *arg)
|
print_police(struct action_util *a, FILE *f, struct rtattr *arg)
|
||||||
{
|
{
|
||||||
SPRINT_BUF(b1);
|
SPRINT_BUF(b1);
|
||||||
struct tc_police *p;
|
struct tc_police *p;
|
||||||
@ -359,10 +358,3 @@ int
|
|||||||
tc_print_police(FILE *f, struct rtattr *arg) {
|
tc_print_police(FILE *f, struct rtattr *arg) {
|
||||||
return print_police(&police_util,f,arg);
|
return print_police(&police_util,f,arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
|
||||||
police_print_xstats(struct action_util *au, FILE *f, struct rtattr *xstats)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
19
tc/q_atm.c
19
tc/q_atm.c
@ -250,19 +250,10 @@ static int atm_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int atm_print_xstats(struct qdisc_util *qu, FILE *f, struct rtattr *xstats)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
struct qdisc_util atm_util = {
|
struct qdisc_util atm_util = {
|
||||||
NULL,
|
.id = "atm",
|
||||||
"atm",
|
.parse_qopt = atm_parse_opt,
|
||||||
atm_parse_opt,
|
.print_qopt = atm_print_opt,
|
||||||
atm_print_opt,
|
.parse_copt = atm_parse_class_opt,
|
||||||
atm_print_xstats,
|
.print_copt = atm_print_opt,
|
||||||
|
|
||||||
atm_parse_class_opt,
|
|
||||||
atm_print_opt
|
|
||||||
};
|
};
|
||||||
|
14
tc/q_cbq.c
14
tc/q_cbq.c
@ -543,13 +543,11 @@ static int cbq_print_xstats(struct qdisc_util *qu, FILE *f, struct rtattr *xstat
|
|||||||
}
|
}
|
||||||
|
|
||||||
struct qdisc_util cbq_util = {
|
struct qdisc_util cbq_util = {
|
||||||
NULL,
|
.id = "cbq",
|
||||||
"cbq",
|
.parse_qopt = cbq_parse_opt,
|
||||||
cbq_parse_opt,
|
.print_qopt = cbq_print_opt,
|
||||||
cbq_print_opt,
|
.print_xstats = cbq_print_xstats,
|
||||||
cbq_print_xstats,
|
.parse_copt = cbq_parse_class_opt,
|
||||||
|
.print_copt = cbq_print_opt,
|
||||||
cbq_parse_class_opt,
|
|
||||||
cbq_print_opt,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -168,19 +168,10 @@ static int dsmark_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int dsmark_print_xstats(struct qdisc_util *qu, FILE *f, struct rtattr *xstats)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
struct qdisc_util dsmark_util = {
|
struct qdisc_util dsmark_util = {
|
||||||
NULL,
|
.id = "dsmark",
|
||||||
"dsmark",
|
.parse_qopt = dsmark_parse_opt,
|
||||||
dsmark_parse_opt,
|
.print_qopt = dsmark_print_opt,
|
||||||
dsmark_print_opt,
|
.parse_copt = dsmark_parse_class_opt,
|
||||||
dsmark_print_xstats,
|
.print_copt = dsmark_print_opt,
|
||||||
|
|
||||||
dsmark_parse_class_opt,
|
|
||||||
dsmark_print_opt
|
|
||||||
};
|
};
|
||||||
|
28
tc/q_fifo.c
28
tc/q_fifo.c
@ -78,33 +78,21 @@ static int fifo_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int fifo_print_xstats(struct qdisc_util *qu, FILE *f, struct rtattr *xstats)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
struct qdisc_util bfifo_util = {
|
struct qdisc_util bfifo_util = {
|
||||||
NULL,
|
.id = "bfifo",
|
||||||
"bfifo",
|
.parse_qopt = fifo_parse_opt,
|
||||||
fifo_parse_opt,
|
.print_qopt = fifo_print_opt,
|
||||||
fifo_print_opt,
|
|
||||||
fifo_print_xstats,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct qdisc_util pfifo_util = {
|
struct qdisc_util pfifo_util = {
|
||||||
NULL,
|
.id = "pfifo",
|
||||||
"pfifo",
|
.parse_qopt = fifo_parse_opt,
|
||||||
fifo_parse_opt,
|
.print_qopt = fifo_print_opt,
|
||||||
fifo_print_opt,
|
|
||||||
fifo_print_xstats,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
extern int prio_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt);
|
extern int prio_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt);
|
||||||
struct qdisc_util pfifo_fast_util = {
|
struct qdisc_util pfifo_fast_util = {
|
||||||
NULL,
|
.id = "pfifo_fast",
|
||||||
"pfifo_fast",
|
.print_qopt = prio_print_opt,
|
||||||
NULL,
|
|
||||||
prio_print_opt,
|
|
||||||
fifo_print_xstats,
|
|
||||||
};
|
};
|
||||||
|
15
tc/q_gred.c
15
tc/q_gred.c
@ -329,17 +329,8 @@ static int gred_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int gred_print_xstats(struct qdisc_util *qu, FILE *f,
|
|
||||||
struct rtattr *xstats)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
struct qdisc_util gred_util = {
|
struct qdisc_util gred_util = {
|
||||||
NULL,
|
.id = "gred",
|
||||||
"gred",
|
.parse_qopt = gred_parse_opt,
|
||||||
gred_parse_opt,
|
.print_qopt = gred_print_opt,
|
||||||
gred_print_opt,
|
|
||||||
gred_print_xstats,
|
|
||||||
};
|
};
|
||||||
|
13
tc/q_hfsc.c
13
tc/q_hfsc.c
@ -278,13 +278,12 @@ hfsc_print_class_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
|
|||||||
}
|
}
|
||||||
|
|
||||||
struct qdisc_util hfsc_util = {
|
struct qdisc_util hfsc_util = {
|
||||||
NULL,
|
.id = "hfsc",
|
||||||
"hfsc",
|
.parse_qopt = hfsc_parse_opt,
|
||||||
hfsc_parse_opt,
|
.print_qopt = hfsc_print_opt,
|
||||||
hfsc_print_opt,
|
.print_xstats = hfsc_print_xstats,
|
||||||
hfsc_print_xstats,
|
.parse_copt = hfsc_parse_class_opt,
|
||||||
hfsc_parse_class_opt,
|
.print_copt = hfsc_print_class_opt,
|
||||||
hfsc_print_class_opt,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
26
tc/q_htb.c
26
tc/q_htb.c
@ -312,22 +312,20 @@ static int htb_print_xstats(struct qdisc_util *qu, FILE *f, struct rtattr *xstat
|
|||||||
}
|
}
|
||||||
|
|
||||||
struct qdisc_util htb_util = {
|
struct qdisc_util htb_util = {
|
||||||
NULL,
|
.id = "htb",
|
||||||
"htb",
|
.parse_qopt = htb_parse_opt,
|
||||||
htb_parse_opt,
|
.print_qopt = htb_print_opt,
|
||||||
htb_print_opt,
|
.print_xstats = htb_print_xstats,
|
||||||
htb_print_xstats,
|
.parse_copt = htb_parse_class_opt,
|
||||||
htb_parse_class_opt,
|
.print_copt = htb_print_opt,
|
||||||
htb_print_opt,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/* for testing of old one */
|
/* for testing of old one */
|
||||||
struct qdisc_util htb2_util = {
|
struct qdisc_util htb2_util = {
|
||||||
NULL,
|
.id = "htb2",
|
||||||
"htb2",
|
.parse_qopt = htb_parse_opt,
|
||||||
htb_parse_opt,
|
.print_qopt = htb_print_opt,
|
||||||
htb_print_opt,
|
.print_xstats = htb_print_xstats,
|
||||||
htb_print_xstats,
|
.parse_copt = htb_parse_class_opt,
|
||||||
htb_parse_class_opt,
|
.print_copt = htb_print_opt,
|
||||||
htb_print_opt,
|
|
||||||
};
|
};
|
||||||
|
@ -62,15 +62,8 @@ static int ingress_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ingress_print_xstats(struct qdisc_util *qu, FILE *f, struct rtattr *xstats)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct qdisc_util ingress_util = {
|
struct qdisc_util ingress_util = {
|
||||||
NULL,
|
.id = "ingress",
|
||||||
"ingress",
|
.parse_qopt = ingress_parse_opt,
|
||||||
ingress_parse_opt,
|
.print_qopt = ingress_print_opt,
|
||||||
ingress_print_opt,
|
|
||||||
ingress_print_xstats,
|
|
||||||
};
|
};
|
||||||
|
@ -285,15 +285,9 @@ static int netem_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int netem_print_xstats(struct qdisc_util *qu, FILE *f, struct rtattr *xstats)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct qdisc_util netem_util = {
|
struct qdisc_util netem_util = {
|
||||||
.id = "netem",
|
.id = "netem",
|
||||||
.parse_qopt = netem_parse_opt,
|
.parse_qopt = netem_parse_opt,
|
||||||
.print_qopt = netem_print_opt,
|
.print_qopt = netem_print_opt,
|
||||||
.print_xstats = netem_print_xstats,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
14
tc/q_prio.c
14
tc/q_prio.c
@ -111,17 +111,9 @@ int prio_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int prio_print_xstats(struct qdisc_util *qu, FILE *f, struct rtattr *xstats)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
struct qdisc_util prio_util = {
|
struct qdisc_util prio_util = {
|
||||||
NULL,
|
.id = "prio",
|
||||||
"prio",
|
.parse_qopt = prio_parse_opt,
|
||||||
prio_parse_opt,
|
.print_qopt = prio_print_opt,
|
||||||
prio_print_opt,
|
|
||||||
prio_print_xstats,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -214,9 +214,8 @@ static int red_print_xstats(struct qdisc_util *qu, FILE *f, struct rtattr *xstat
|
|||||||
|
|
||||||
|
|
||||||
struct qdisc_util red_util = {
|
struct qdisc_util red_util = {
|
||||||
NULL,
|
.id = "red",
|
||||||
"red",
|
.parse_qopt = red_parse_opt,
|
||||||
red_parse_opt,
|
.print_qopt = red_print_opt,
|
||||||
red_print_opt,
|
.print_xstats = red_print_xstats,
|
||||||
red_print_xstats,
|
|
||||||
};
|
};
|
||||||
|
14
tc/q_sfq.c
14
tc/q_sfq.c
@ -100,16 +100,8 @@ static int sfq_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int sfq_print_xstats(struct qdisc_util *qu, FILE *f, struct rtattr *xstats)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
struct qdisc_util sfq_util = {
|
struct qdisc_util sfq_util = {
|
||||||
NULL,
|
.id = "sfq",
|
||||||
"sfq",
|
.parse_qopt = sfq_parse_opt,
|
||||||
sfq_parse_opt,
|
.print_qopt = sfq_print_opt,
|
||||||
sfq_print_opt,
|
|
||||||
sfq_print_xstats,
|
|
||||||
};
|
};
|
||||||
|
13
tc/q_tbf.c
13
tc/q_tbf.c
@ -257,16 +257,9 @@ static int tbf_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int tbf_print_xstats(struct qdisc_util *qu, FILE *f, struct rtattr *xstats)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct qdisc_util tbf_util = {
|
struct qdisc_util tbf_util = {
|
||||||
NULL,
|
.id = "tbf",
|
||||||
"tbf",
|
.parse_qopt = tbf_parse_opt,
|
||||||
tbf_parse_opt,
|
.print_qopt = tbf_print_opt,
|
||||||
tbf_print_opt,
|
|
||||||
tbf_print_xstats,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user