File argument no longer used.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David Ahern <dsahern@kernel.org>
if (tb[TCA_ACT_BPF_TM]) {
struct tcf_t *tm = RTA_DATA(tb[TCA_ACT_BPF_TM]);
- print_tm(f, tm);
+ print_tm(tm);
}
}
if (tb[TCA_CONNMARK_TM]) {
struct tcf_t *tm = RTA_DATA(tb[TCA_CONNMARK_TM]);
- print_tm(f, tm);
+ print_tm(tm);
}
}
print_nl();
if (tb[TCA_CSUM_TM]) {
struct tcf_t *tm = RTA_DATA(tb[TCA_CSUM_TM]);
- print_tm(f, tm);
+ print_tm(tm);
}
}
print_nl();
if (tb[TCA_CT_TM]) {
struct tcf_t *tm = RTA_DATA(tb[TCA_CT_TM]);
- print_tm(f, tm);
+ print_tm(tm);
}
}
print_nl();
if (tb[TCA_CTINFO_TM]) {
tm = RTA_DATA(tb[TCA_CTINFO_TM]);
- print_tm(f, tm);
+ print_tm(tm);
}
if (tb[TCA_CTINFO_STATS_DSCP_SET])
if (tb[TCA_GACT_TM]) {
struct tcf_t *tm = RTA_DATA(tb[TCA_GACT_TM]);
- print_tm(f, tm);
+ print_tm(tm);
}
}
print_nl();
if (tb[TCA_GATE_TM]) {
struct tcf_t *tm = RTA_DATA(tb[TCA_GATE_TM]);
- print_tm(f, tm);
+ print_tm(tm);
}
}
if (tb[TCA_IFE_TM]) {
struct tcf_t *tm = RTA_DATA(tb[TCA_IFE_TM]);
- print_tm(f, tm);
+ print_tm(tm);
}
}
if (tb[TCA_MIRRED_TM]) {
struct tcf_t *tm = RTA_DATA(tb[TCA_MIRRED_TM]);
- print_tm(f, tm);
+ print_tm(tm);
}
}
print_nl();
if (tb[TCA_MPLS_TM]) {
struct tcf_t *tm = RTA_DATA(tb[TCA_MPLS_TM]);
- print_tm(f, tm);
+ print_tm(tm);
}
}
if (tb[TCA_NAT_TM]) {
struct tcf_t *tm = RTA_DATA(tb[TCA_NAT_TM]);
- print_tm(f, tm);
+ print_tm(tm);
}
}
if (tb[TCA_PEDIT_TM]) {
struct tcf_t *tm = RTA_DATA(tb[TCA_PEDIT_TM]);
- print_tm(f, tm);
+ print_tm(tm);
}
}
open_json_array(PRINT_JSON, "keys");
if (tb[TCA_POLICE_TM]) {
struct tcf_t *tm = RTA_DATA(tb[TCA_POLICE_TM]);
- print_tm(f, tm);
+ print_tm(tm);
}
}
print_nl();
if (tb[TCA_SAMPLE_TM]) {
struct tcf_t *tm = RTA_DATA(tb[TCA_SAMPLE_TM]);
- print_tm(f, tm);
+ print_tm(tm);
}
}
print_nl();
if (tb[TCA_DEF_TM]) {
struct tcf_t *tm = RTA_DATA(tb[TCA_DEF_TM]);
- print_tm(f, tm);
+ print_tm(tm);
}
}
print_nl();
if (tb[TCA_SKBEDIT_TM]) {
struct tcf_t *tm = RTA_DATA(tb[TCA_SKBEDIT_TM]);
- print_tm(f, tm);
+ print_tm(tm);
}
}
if (tb[TCA_SKBMOD_TM]) {
struct tcf_t *tm = RTA_DATA(tb[TCA_SKBMOD_TM]);
- print_tm(f, tm);
+ print_tm(tm);
}
}
if (tb[TCA_TUNNEL_KEY_TM]) {
struct tcf_t *tm = RTA_DATA(tb[TCA_TUNNEL_KEY_TM]);
- print_tm(f, tm);
+ print_tm(tm);
}
}
if (tb[TCA_VLAN_TM]) {
struct tcf_t *tm = RTA_DATA(tb[TCA_VLAN_TM]);
- print_tm(f, tm);
+ print_tm(tm);
}
}
return "invalid";
}
-void print_tm(FILE *f, const struct tcf_t *tm)
+void print_tm(const struct tcf_t *tm)
{
int hz = get_user_hz();
int police_print_xstats(const struct action_util *a, FILE *f, struct rtattr *tb);
int tc_print_action(FILE *f, const struct rtattr *tb, unsigned short tot_acts);
int parse_action(int *argc_p, char ***argv_p, int tca_id, struct nlmsghdr *n);
-void print_tm(FILE *f, const struct tcf_t *tm);
+void print_tm(const struct tcf_t *tm);
int prio_print_opt(const struct qdisc_util *qu, FILE *f, struct rtattr *opt);
int cls_names_init(char *path);