net/hns3: fix max packet size rollback in PF
[dpdk.git] / app / test-fib / main.c
index b0a97b0..622703d 100644 (file)
@@ -624,7 +624,7 @@ print_usage(void)
                "(if -f is not specified)>]\n"
                "[-r <percentage ratio of random ip's to lookup"
                "(if -t is not specified)>]\n"
-               "[-c <do comarison with LPM library>]\n"
+               "[-c <do comparison with LPM library>]\n"
                "[-6 <do tests with ipv6 (default ipv4)>]\n"
                "[-s <shuffle randomly generated routes>]\n"
                "[-a <check nexthops for all ipv4 address space"
@@ -641,7 +641,7 @@ print_usage(void)
                "[-g <number of tbl8's for dir24_8 or trie FIBs>]\n"
                "[-w <path to the file to dump routing table>]\n"
                "[-u <path to the file to dump ip's for lookup>]\n"
-               "[-v <type of loookup function:"
+               "[-v <type of lookup function:"
                "\ts1, s2, s3 (3 types of scalar), v (vector) -"
                " for DIR24_8 based FIB\n"
                "\ts, v - for TRIE based ipv6 FIB>]\n",
@@ -857,6 +857,7 @@ run_v4(void)
        conf.type = get_fib_type();
        conf.default_nh = def_nh;
        conf.max_routes = config.nb_routes * 2;
+       conf.rib_ext_sz = 0;
        if (conf.type == RTE_FIB_DIR24_8) {
                conf.dir24_8.nh_sz = __builtin_ctz(config.ent_sz);
                conf.dir24_8.num_tbl8 = RTE_MIN(config.tbl8,
@@ -1057,6 +1058,7 @@ run_v6(void)
        conf.type = get_fib_type();
        conf.default_nh = def_nh;
        conf.max_routes = config.nb_routes * 2;
+       conf.rib_ext_sz = 0;
        if (conf.type == RTE_FIB6_TRIE) {
                conf.trie.nh_sz = __builtin_ctz(config.ent_sz);
                conf.trie.num_tbl8 = RTE_MIN(config.tbl8,