> From: Pavan Nikhilesh [mailto:[email protected]]
> Sent: Thursday, December 7, 2017 8:37 PM
> To: Eads, Gage <[email protected]>; [email protected];
> Van Haaren, Harry <[email protected]>; Rao, Nikhil
> <[email protected]>; [email protected]; Ma, Liang J
> <[email protected]>
> Cc: [email protected]; Pavan Nikhilesh <[email protected]>
> 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 <[email protected]>
<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