]> git.droids-corp.org - dpdk.git/blobdiff - app/test/test_kni.c
vdpa/sfc: get max supported queue count
[dpdk.git] / app / test / test_kni.c
index 347000579040c549b95f5329b2d8c95573ac9f43..40ab0d5c4ca4b8858a317c0b9a3683aa947c0dd6 100644 (file)
@@ -74,7 +74,7 @@ static const struct rte_eth_txconf tx_conf = {
 
 static const struct rte_eth_conf port_conf = {
        .txmode = {
-               .mq_mode = ETH_DCB_NONE,
+               .mq_mode = RTE_ETH_MQ_TX_NONE,
        },
 };
 
@@ -563,7 +563,11 @@ test_kni(void)
        closedir(dir);
 
        /* Initialize KNI subsystem */
-       rte_kni_init(KNI_TEST_MAX_PORTS);
+       ret = rte_kni_init(KNI_TEST_MAX_PORTS);
+       if (ret < 0) {
+               printf("fail to initialize KNI subsystem\n");
+               return -1;
+       }
 
        if (test_kni_allocate_lcores() < 0) {
                printf("No enough lcores for kni processing\n");