aboutsummaryrefslogtreecommitdiff
path: root/include/odp/api/classification.h
diff options
context:
space:
mode:
authorNicolas Morey-Chaisemartin <nmorey@kalray.eu>2015-10-09 09:33:52 +0200
committerMaxim Uvarov <maxim.uvarov@linaro.org>2015-10-22 15:46:22 +0300
commitf64b306dbc8b8b4ba66cdd4660b0eec250312d7e (patch)
tree334194b03e5d2ba0c9f246c063f91cb62aadd646 /include/odp/api/classification.h
parent3dde1d69d74199bdc3228407e07b70da1f627524 (diff)
api: classification: move odp_pmr_match_t definition
This patch move the odp_pmr_match_t structure definition to prepare the introduction of the new ODP_PMR_CUSTOM_FRAME term. Signed-off-by: BenoƮt Ganne <bganne@kalray.eu> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Balasubramanian Manoharan <bala.manoharan@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'include/odp/api/classification.h')
-rw-r--r--include/odp/api/classification.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/include/odp/api/classification.h b/include/odp/api/classification.h
index 2fdb76700..e6f14cc92 100644
--- a/include/odp/api/classification.h
+++ b/include/odp/api/classification.h
@@ -243,6 +243,21 @@ typedef enum odp_pmr_term {
} odp_pmr_term_e;
/**
+ * Following structure is used to define composite packet matching rules
+ * in the form of an array of individual match rules.
+ * The underlying platform may not support all or any specific combination
+ * of value match rules, and the application should take care
+ * of inspecting the return value when installing such rules, and perform
+ * appropriate fallback action.
+ */
+typedef struct odp_pmr_match_t {
+ odp_pmr_term_e term; /**< PMR term value to be matched */
+ const void *val; /**< Value to be matched */
+ const void *mask; /**< Masked set of bits to be matched */
+ unsigned int val_sz; /**< Size of the term value */
+} odp_pmr_match_t;
+
+/**
* Create a packet match rule with mask and value
*
* @param[in] term One of the enumerated values supported
@@ -312,21 +327,6 @@ unsigned long long odp_pmr_terms_cap(void);
unsigned odp_pmr_terms_avail(void);
/**
- * Following structure is used to define composite packet matching rules
- * in the form of an array of individual match rules.
- * The underlying platform may not support all or any specific combination
- * of value match rules, and the application should take care
- * of inspecting the return value when installing such rules, and perform
- * appropriate fallback action.
- */
-typedef struct odp_pmr_match_t {
- odp_pmr_term_e term; /**< PMR term value to be matched */
- const void *val; /**< Value to be matched */
- const void *mask; /**< Masked set of bits to be matched */
- unsigned int val_sz; /**< Size of the term value */
-} odp_pmr_match_t;
-
-/**
* @typedef odp_pmr_set_t
* An opaque handle to a composite packet match rule-set
*/