]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - tc/m_mirred.c
rdma: Properly mark RDMAtool license
[mirror_iproute2.git] / tc / m_mirred.c
index b25b9acc0735e872b42e65013e8fba23874f3fdb..c7f7318b8413ffc0f6b2d0efef1d63bfb4ba565c 100644 (file)
@@ -103,6 +103,7 @@ parse_direction(struct action_util *a, int *argc_p, char ***argv_p,
        while (argc > 0) {
 
                if (matches(*argv, "action") == 0) {
+                       NEXT_ARG();
                        break;
                } else if (!egress && matches(*argv, "egress") == 0) {
                        egress = 1;
@@ -200,10 +201,8 @@ parse_direction(struct action_util *a, int *argc_p, char ***argv_p,
        }
 
 
-       if (p.eaction == TCA_EGRESS_MIRROR || p.eaction == TCA_INGRESS_MIRROR) {
+       if (p.eaction == TCA_EGRESS_MIRROR || p.eaction == TCA_INGRESS_MIRROR)
                parse_action_control(&argc, &argv, &p.action, false);
-               NEXT_ARG_FWD();
-       }
 
        if (argc) {
                if (iok && matches(*argv, "index") == 0) {