X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fbnxt%2Ftf_core%2Ftf_identifier.h;h=6d9fa08aefa42826e528f3b107452490d95e83b5;hb=7ecfe8521fbb6a845f08a6b178676d1d6c5a7802;hp=6e36c525fc1a5d4ce59eb54b5e5d3a772bda8af0;hpb=48d3dff2b98680c6315593e8b6495b64e678b004;p=dpdk.git diff --git a/drivers/net/bnxt/tf_core/tf_identifier.h b/drivers/net/bnxt/tf_core/tf_identifier.h index 6e36c525fc..6d9fa08aef 100644 --- a/drivers/net/bnxt/tf_core/tf_identifier.h +++ b/drivers/net/bnxt/tf_core/tf_identifier.h @@ -66,6 +66,37 @@ struct tf_ident_free_parms { * [in] ID to free */ uint16_t id; + /** + * (experimental) + * [out] Current refcnt after free + */ + uint32_t *ref_cnt; +}; + +/** + * Identifier search parameter definition + */ +struct tf_ident_search_parms { + /** + * [in] receive or transmit direction + */ + enum tf_dir dir; + /** + * [in] Identifier type + */ + enum tf_identifier_type type; + /** + * [in] Identifier data to search for + */ + uint16_t search_id; + /** + * [out] Set if matching identifier found + */ + bool *hit; + /** + * [out] Current ref count after allocation + */ + uint32_t *ref_cnt; }; /** @@ -144,4 +175,20 @@ int tf_ident_alloc(struct tf *tfp, int tf_ident_free(struct tf *tfp, struct tf_ident_free_parms *parms); +/** + * Search a single identifier type. + * + * [in] tfp + * Pointer to TF handle, used for HCAPI communication + * + * [in] parms + * Pointer to parameters + * + * Returns + * - (0) if successful. + * - (-EINVAL) on failure. + */ +int tf_ident_search(struct tf *tfp, + struct tf_ident_search_parms *parms); + #endif /* _TF_IDENTIFIER_H_ */