]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
dont skip action order
authorJamal Hadi Salim <jhs@mojatatu.com>
Sun, 22 Dec 2013 15:37:44 +0000 (10:37 -0500)
committerStephen Hemminger <stephen@networkplumber.org>
Sat, 28 Dec 2013 18:57:34 +0000 (10:57 -0800)
attached.

cheers,
jamal
commit 58d78f9f6447df324cdeb99262442c5e3f1f924b
Author: Jamal Hadi Salim <jhs@mojatatu.com>
Date:   Sun Dec 22 10:34:18 2013 -0500

    dont skip displaying of action chains or lists by TCA_ACT_MAX_PRIO

Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
tc/m_action.c

index 51085ecbb3f481e9a2a7f385ab4bcbc40608f607..77479d6e520419aaa8a05ad51917c0ed8813062b 100644 (file)
@@ -32,7 +32,6 @@ static struct action_util * action_list;
 #ifdef CONFIG_GACT
 int gact_ld = 0 ; //fuckin backward compatibility
 #endif
-int batch_c = 0;
 int tab_flush = 0;
 
 static void act_usage(void)
@@ -304,7 +303,7 @@ tc_print_action(FILE * f, const struct rtattr *arg)
 
        for (i = 0; i < TCA_ACT_MAX_PRIO; i++) {
                if (tb[i]) {
-                       fprintf(f, "\n\taction order %d: ", i + batch_c);
+                       fprintf(f, "\n\taction order %d: ", i);
                        if (0 > tc_print_one_action(f, tb[i])) {
                                fprintf(f, "Error printing action\n");
                        }
@@ -312,7 +311,6 @@ tc_print_action(FILE * f, const struct rtattr *arg)
 
        }
 
-       batch_c+=TCA_ACT_MAX_PRIO ;
        return 0;
 }