Commit 02b1d345 authored by Jamal Hadi Salim's avatar Jamal Hadi Salim Committed by Stephen Hemminger

skbedit print missing metadata

skbedit should print the index and other generic metadata info
Signed-off-by: default avatarJamal Hadi Salim <jhs@mojatatu.com>
parent 64b7db4d
...@@ -165,6 +165,7 @@ static int print_skbedit(struct action_util *au, FILE *f, struct rtattr *arg) ...@@ -165,6 +165,7 @@ static int print_skbedit(struct action_util *au, FILE *f, struct rtattr *arg)
__u32 *priority; __u32 *priority;
__u32 *mark; __u32 *mark;
__u16 *queue_mapping; __u16 *queue_mapping;
struct tc_skbedit *p = NULL;
if (arg == NULL) if (arg == NULL)
return -1; return -1;
...@@ -175,6 +176,7 @@ static int print_skbedit(struct action_util *au, FILE *f, struct rtattr *arg) ...@@ -175,6 +176,7 @@ static int print_skbedit(struct action_util *au, FILE *f, struct rtattr *arg)
fprintf(f, "[NULL skbedit parameters]"); fprintf(f, "[NULL skbedit parameters]");
return -1; return -1;
} }
p = RTA_DATA(tb[TCA_SKBEDIT_PARMS]);
fprintf(f, " skbedit"); fprintf(f, " skbedit");
...@@ -191,6 +193,8 @@ static int print_skbedit(struct action_util *au, FILE *f, struct rtattr *arg) ...@@ -191,6 +193,8 @@ static int print_skbedit(struct action_util *au, FILE *f, struct rtattr *arg)
fprintf(f, " mark %d", *mark); fprintf(f, " mark %d", *mark);
} }
fprintf(f, "\n\t index %d ref %d bind %d", p->index, p->refcnt, p->bindcnt);
if (show_stats) { if (show_stats) {
if (tb[TCA_SKBEDIT_TM]) { if (tb[TCA_SKBEDIT_TM]) {
struct tcf_t *tm = RTA_DATA(tb[TCA_SKBEDIT_TM]); struct tcf_t *tm = RTA_DATA(tb[TCA_SKBEDIT_TM]);
...@@ -198,6 +202,8 @@ static int print_skbedit(struct action_util *au, FILE *f, struct rtattr *arg) ...@@ -198,6 +202,8 @@ static int print_skbedit(struct action_util *au, FILE *f, struct rtattr *arg)
} }
} }
fprintf(f, "\n ");
return 0; return 0;
} }
......
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