From: Ori Kam Date: Thu, 17 Dec 2020 10:37:30 +0000 (+0200) Subject: regexdev: add resource limit reached flag X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=commitdiff_plain;h=1922db13bf79454c32cf9ca207185afc501fba83 regexdev: add resource limit reached flag When scanning a buffer it is possible that the scan will abort due to some internal resource limit. This commit adds such response flag, so application can handle such cases. Signed-off-by: Francis Kelly Signed-off-by: Ori Kam --- diff --git a/lib/librte_regexdev/rte_regexdev.h b/lib/librte_regexdev/rte_regexdev.h index 0001658925..86f0b231b0 100644 --- a/lib/librte_regexdev/rte_regexdev.h +++ b/lib/librte_regexdev/rte_regexdev.h @@ -1333,6 +1333,11 @@ struct rte_regexdev_match { * @see RTE_REGEXDEV_ATTR_MAX_PREFIX */ +#define RTE_REGEX_OPS_RSP_RESOURCE_LIMIT_REACHED_F (1 << 4) +/**< Indicates that the RegEx device has reached the max allowed resource + * allowed while scanning the given buffer. + */ + /** * The generic *rte_regex_ops* structure to hold the RegEx attributes * for enqueue and dequeue operation.