Commit f2f99e2e authored by osdl.net!shemminger's avatar osdl.net!shemminger

no longer need xstats stub

(Logical change 1.77)
parent 3d327bf5
......@@ -239,15 +239,8 @@ print_gact(struct action_util *au,FILE * f, struct rtattr *arg)
return 0;
}
int
gact_print_xstats(struct action_util *au, FILE *f, struct rtattr *xstats)
{
return 0;
}
struct action_util gact_util = {
.id = "gact",
.parse_aopt = parse_gact,
.print_aopt = print_gact,
.print_xstats = gact_print_xstats,
};
......@@ -30,7 +30,6 @@ struct action_util police_util = {
.id = "police",
.parse_aopt = act_parse_police,
.print_aopt = print_police,
.print_xstats = police_print_xstats,
};
static void explain(void)
......@@ -309,7 +308,7 @@ int parse_police(int *argc_p, char ***argv_p, int tca_id, struct nlmsghdr *n)
}
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);
struct tc_police *p;
......@@ -359,10 +358,3 @@ int
tc_print_police(FILE *f, struct rtattr *arg) {
return print_police(&police_util,f,arg);
}
int
police_print_xstats(struct action_util *au, FILE *f, struct rtattr *xstats)
{
return 0;
}
......@@ -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 = {
NULL,
"atm",
atm_parse_opt,
atm_print_opt,
atm_print_xstats,
atm_parse_class_opt,
atm_print_opt
.id = "atm",
.parse_qopt = atm_parse_opt,
.print_qopt = atm_print_opt,
.parse_copt = atm_parse_class_opt,
.print_copt = atm_print_opt,
};
......@@ -543,13 +543,11 @@ static int cbq_print_xstats(struct qdisc_util *qu, FILE *f, struct rtattr *xstat
}
struct qdisc_util cbq_util = {
NULL,
"cbq",
cbq_parse_opt,
cbq_print_opt,
cbq_print_xstats,
cbq_parse_class_opt,
cbq_print_opt,
.id = "cbq",
.parse_qopt = cbq_parse_opt,
.print_qopt = cbq_print_opt,
.print_xstats = cbq_print_xstats,
.parse_copt = cbq_parse_class_opt,
.print_copt = 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 = {
NULL,
"dsmark",
dsmark_parse_opt,
dsmark_print_opt,
dsmark_print_xstats,
dsmark_parse_class_opt,
dsmark_print_opt
.id = "dsmark",
.parse_qopt = dsmark_parse_opt,
.print_qopt = dsmark_print_opt,
.parse_copt = dsmark_parse_class_opt,
.print_copt = dsmark_print_opt,
};
......@@ -78,33 +78,21 @@ static int fifo_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
return 0;
}
static int fifo_print_xstats(struct qdisc_util *qu, FILE *f, struct rtattr *xstats)
{
return 0;
}
struct qdisc_util bfifo_util = {
NULL,
"bfifo",
fifo_parse_opt,
fifo_print_opt,
fifo_print_xstats,
.id = "bfifo",
.parse_qopt = fifo_parse_opt,
.print_qopt = fifo_print_opt,
};
struct qdisc_util pfifo_util = {
NULL,
"pfifo",
fifo_parse_opt,
fifo_print_opt,
fifo_print_xstats,
.id = "pfifo",
.parse_qopt = fifo_parse_opt,
.print_qopt = fifo_print_opt,
};
extern int prio_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt);
struct qdisc_util pfifo_fast_util = {
NULL,
"pfifo_fast",
NULL,
prio_print_opt,
fifo_print_xstats,
.id = "pfifo_fast",
.print_qopt = prio_print_opt,
};
......@@ -329,17 +329,8 @@ static int gred_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
return 0;
}
static int gred_print_xstats(struct qdisc_util *qu, FILE *f,
struct rtattr *xstats)
{
return 0;
}
struct qdisc_util gred_util = {
NULL,
"gred",
gred_parse_opt,
gred_print_opt,
gred_print_xstats,
.id = "gred",
.parse_qopt = gred_parse_opt,
.print_qopt = gred_print_opt,
};
......@@ -278,13 +278,12 @@ hfsc_print_class_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
}
struct qdisc_util hfsc_util = {
NULL,
"hfsc",
hfsc_parse_opt,
hfsc_print_opt,
hfsc_print_xstats,
hfsc_parse_class_opt,
hfsc_print_class_opt,
.id = "hfsc",
.parse_qopt = hfsc_parse_opt,
.print_qopt = hfsc_print_opt,
.print_xstats = hfsc_print_xstats,
.parse_copt = hfsc_parse_class_opt,
.print_copt = hfsc_print_class_opt,
};
static int
......
......@@ -312,22 +312,20 @@ static int htb_print_xstats(struct qdisc_util *qu, FILE *f, struct rtattr *xstat
}
struct qdisc_util htb_util = {
NULL,
"htb",
htb_parse_opt,
htb_print_opt,
htb_print_xstats,
htb_parse_class_opt,
htb_print_opt,
.id = "htb",
.parse_qopt = htb_parse_opt,
.print_qopt = htb_print_opt,
.print_xstats = htb_print_xstats,
.parse_copt = htb_parse_class_opt,
.print_copt = htb_print_opt,
};
/* for testing of old one */
struct qdisc_util htb2_util = {
NULL,
"htb2",
htb_parse_opt,
htb_print_opt,
htb_print_xstats,
htb_parse_class_opt,
htb_print_opt,
.id = "htb2",
.parse_qopt = htb_parse_opt,
.print_qopt = htb_print_opt,
.print_xstats = htb_print_xstats,
.parse_copt = htb_parse_class_opt,
.print_copt = htb_print_opt,
};
......@@ -62,15 +62,8 @@ static int ingress_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
return 0;
}
static int ingress_print_xstats(struct qdisc_util *qu, FILE *f, struct rtattr *xstats)
{
return 0;
}
struct qdisc_util ingress_util = {
NULL,
"ingress",
ingress_parse_opt,
ingress_print_opt,
ingress_print_xstats,
.id = "ingress",
.parse_qopt = ingress_parse_opt,
.print_qopt = ingress_print_opt,
};
......@@ -285,15 +285,9 @@ static int netem_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
return 0;
}
static int netem_print_xstats(struct qdisc_util *qu, FILE *f, struct rtattr *xstats)
{
return 0;
}
struct qdisc_util netem_util = {
.id = "netem",
.parse_qopt = netem_parse_opt,
.print_qopt = netem_print_opt,
.print_xstats = netem_print_xstats,
};
......@@ -111,17 +111,9 @@ int prio_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
return 0;
}
static int prio_print_xstats(struct qdisc_util *qu, FILE *f, struct rtattr *xstats)
{
return 0;
}
struct qdisc_util prio_util = {
NULL,
"prio",
prio_parse_opt,
prio_print_opt,
prio_print_xstats,
.id = "prio",
.parse_qopt = prio_parse_opt,
.print_qopt = prio_print_opt,
};
......@@ -214,9 +214,8 @@ static int red_print_xstats(struct qdisc_util *qu, FILE *f, struct rtattr *xstat
struct qdisc_util red_util = {
NULL,
"red",
red_parse_opt,
red_print_opt,
red_print_xstats,
.id = "red",
.parse_qopt = red_parse_opt,
.print_qopt = red_print_opt,
.print_xstats = red_print_xstats,
};
......@@ -100,16 +100,8 @@ static int sfq_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
return 0;
}
static int sfq_print_xstats(struct qdisc_util *qu, FILE *f, struct rtattr *xstats)
{
return 0;
}
struct qdisc_util sfq_util = {
NULL,
"sfq",
sfq_parse_opt,
sfq_print_opt,
sfq_print_xstats,
.id = "sfq",
.parse_qopt = sfq_parse_opt,
.print_qopt = sfq_print_opt,
};
......@@ -257,16 +257,9 @@ static int tbf_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
return 0;
}
static int tbf_print_xstats(struct qdisc_util *qu, FILE *f, struct rtattr *xstats)
{
return 0;
}
struct qdisc_util tbf_util = {
NULL,
"tbf",
tbf_parse_opt,
tbf_print_opt,
tbf_print_xstats,
.id = "tbf",
.parse_qopt = tbf_parse_opt,
.print_qopt = tbf_print_opt,
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment