> From: Pavan Nikhilesh [mailto:pbhagavat...@caviumnetworks.com]
> Sent: Thursday, December 7, 2017 8:37 PM
> To: Eads, Gage <gage.e...@intel.com>; jerin.jacobkollanukka...@cavium.com;
> Van Haaren, Harry <harry.van.haa...@intel.com>; Rao, Nikhil
> <nikhil....@intel.com>; hemant.agra...@nxp.com; Ma, Liang J
> <liang.j...@intel.com>
> Cc: dev@dpdk.org; Pavan Nikhilesh <pbhagavat...@caviumnetworks.com>
> Subject: [PATCH 05/13] examples/eventdev: add ops to check cmdline args
> 
> Each eventdev pipeline needs to allow different cmdline args combination
> based on pipeline type.
> 
> Signed-off-by: Pavan Nikhilesh <pbhagavat...@caviumnetworks.com>

<snip>

> +static void
> +generic_opt_check(void)
> +{
> +     int i;
> +     int ret;
> +     uint32_t cap = 0;
> +     uint8_t rx_needed = 0;
> +     struct rte_event_dev_info eventdev_info;
> +
> +     memset(&eventdev_info, 0, sizeof(struct rte_event_dev_info));
> +     rte_event_dev_info_get(0, &eventdev_info);
> +
> +     for (i = 0; i < rte_eth_dev_count(); i++) {
> +             ret = rte_event_eth_rx_adapter_caps_get(0, i, &cap);
> +             if (ret)
> +                     rte_exit(EXIT_FAILURE,
> +                                     "failed to get event rx adapter "
> +                                     "capabilities");

Nit: split string


Reply via email to