]> git.droids-corp.org - dpdk.git/blobdiff - test/test/test_kni.c
mem: allow querying offset into segment fd
[dpdk.git] / test / test / test_kni.c
index 3d1be56a982d421e03149865f3bd49c10e98f715..3dcadcebdd0adc57d0fe0b2ecece8a2dea1d6f76 100644 (file)
@@ -70,13 +70,6 @@ static const struct rte_eth_txconf tx_conf = {
 };
 
 static const struct rte_eth_conf port_conf = {
-       .rxmode = {
-               .header_split = 0,
-               .hw_ip_checksum = 0,
-               .hw_vlan_filter = 0,
-               .jumbo_frame = 0,
-               .hw_strip_crc = 1,
-       },
        .txmode = {
                .mq_mode = ETH_DCB_NONE,
        },
@@ -489,7 +482,7 @@ test_kni(void)
                return -1;
        }
 
-       nb_ports = rte_eth_dev_count();
+       nb_ports = rte_eth_dev_count_avail();
        if (nb_ports == 0) {
                printf("no supported nic port found\n");
                return -1;