[RFC] regexdev: add maximum number of mbuf segments field

Stephen Hemminger stephen at networkplumber.org
Tue Jul 26 17:16:41 CEST 2022


On Tue, 26 Jul 2022 10:47:07 +0000
Gerry Gribbon <ggribbon at nvidia.com> wrote:

> diff --git a/lib/regexdev/rte_regexdev.h b/lib/regexdev/rte_regexdev.h
> index 3bce8090f6..7d2e1ee1d0 100644
> --- a/lib/regexdev/rte_regexdev.h
> +++ b/lib/regexdev/rte_regexdev.h
> @@ -622,6 +622,8 @@ struct rte_regexdev_info {
>  	/**< Supported compiler rule flags.
>  	 * @see RTE_REGEX_PCRE_RULE_*, struct rte_regexdev_rule::rule_flags
>  	 */
> +	uint16_t max_num_mbuf_segs;
> +	/**< Maximum number of mbuf segments that can be chained together. */
>  };
>  
>  /**

Did you notice that that struct is sparse and there is already
an existing hole that could be reused.  This is going to be an API/ABI
breakage already so reusing the hole will be ok.

Also, please update the release notes for this.



More information about the dev mailing list