vdpa/sfc: get max supported queue count
[dpdk.git] / app / test-eventdev / evt_options.c
index b0bcbc6..753a7db 100644 (file)
@@ -26,6 +26,7 @@ evt_options_default(struct evt_options *opt)
        opt->nb_flows = 1024;
        opt->socket_id = SOCKET_ID_ANY;
        opt->pool_sz = 16 * 1024;
+       opt->prod_enq_burst_sz = 1;
        opt->wkr_deq_dep = 16;
        opt->nb_pkts = (1ULL << 26); /* do ~64M packets */
        opt->nb_timers = 1E8;
@@ -304,6 +305,16 @@ evt_parse_per_port_pool(struct evt_options *opt, const char *arg __rte_unused)
        return 0;
 }
 
+static int
+evt_parse_prod_enq_burst_sz(struct evt_options *opt, const char *arg)
+{
+       int ret;
+
+       ret = parser_read_uint32(&(opt->prod_enq_burst_sz), arg);
+
+       return ret;
+}
+
 static void
 usage(char *program)
 {
@@ -336,6 +347,7 @@ usage(char *program)
                "\t--expiry_nsec      : event timer expiry ns.\n"
                "\t--mbuf_sz          : packet mbuf size.\n"
                "\t--max_pkt_sz       : max packet size.\n"
+               "\t--prod_enq_burst_sz : producer enqueue burst size.\n"
                "\t--nb_eth_queues    : number of ethernet Rx queues.\n"
                "\t--enable_vector    : enable event vectorization.\n"
                "\t--vector_size      : Max vector size.\n"
@@ -412,6 +424,7 @@ static struct option lgopts[] = {
        { EVT_EXPIRY_NSEC,         1, 0, 0 },
        { EVT_MBUF_SZ,             1, 0, 0 },
        { EVT_MAX_PKT_SZ,          1, 0, 0 },
+       { EVT_PROD_ENQ_BURST_SZ,   1, 0, 0 },
        { EVT_NB_ETH_QUEUES,       1, 0, 0 },
        { EVT_ENA_VECTOR,          0, 0, 0 },
        { EVT_VECTOR_SZ,           1, 0, 0 },
@@ -451,6 +464,7 @@ evt_opts_parse_long(int opt_idx, struct evt_options *opt)
                { EVT_EXPIRY_NSEC, evt_parse_expiry_nsec},
                { EVT_MBUF_SZ, evt_parse_mbuf_sz},
                { EVT_MAX_PKT_SZ, evt_parse_max_pkt_sz},
+               { EVT_PROD_ENQ_BURST_SZ, evt_parse_prod_enq_burst_sz},
                { EVT_NB_ETH_QUEUES, evt_parse_eth_queues},
                { EVT_ENA_VECTOR, evt_parse_ena_vector},
                { EVT_VECTOR_SZ, evt_parse_vector_size},