]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
tc: use named initializer for default mqprio options
authorStephen Hemminger <stephen@networkplumber.org>
Thu, 24 Aug 2017 22:27:35 +0000 (15:27 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 24 Aug 2017 22:28:15 +0000 (15:28 -0700)
Use C99 initializer

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
tc/q_mqprio.c

index fa1022be9fd3190b734b4a95124ec955ffce9bf7..d6718fb1c2bed00002ce11e270daa37e6dd9a027 100644 (file)
@@ -34,10 +34,12 @@ static int mqprio_parse_opt(struct qdisc_util *qu, int argc,
 {
        int idx;
        struct tc_mqprio_qopt opt = {
-                                    8,
-                                    {0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 1, 1, 3, 3, 3, 3},
-                                    1,
-                                   };
+               .num_tc = 8,
+               .prio_tc_map = { 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 1, 1, 3, 3, 3, 3 },
+               .hw = 1,
+               .count = { },
+               .offset = { },
+       };
 
        while (argc > 0) {
                idx = 0;