24/01/2023 11:38, Mohammad Iqbal Ahmad:
> Fix division or module by zero reported by coverity scan.
> Updated .mailmap
> 
> Coverity issue: 373870
> Fixes: bf3688f1e816 ("app/flow-perf: add insertion rate calculation")
> 
> Signed-off-by: Mohammad Iqbal Ahmad <[email protected]>
> ---
>                       if (strcmp(lgopts[opt_idx].name,
>                                       "rules-batch") == 0) {
> -                             rules_batch = atoi(optarg);
> +                             n = atoi(optarg);
> +                             if (n > 0)
> +                                     rules_batch = n;
> +                             else
> +                                     rte_exit(EXIT_FAILURE,
> +                                                     "flow rules_batch 
> should be > 0\n");

The option name is rules-batch (with a hyphen). Will fix while merging.

Applied, thanks.



Reply via email to