]> git.droids-corp.org - dpdk.git/commit
net/bnxt: add templates for search before alloc
authorMike Baucom <michael.baucom@broadcom.com>
Thu, 23 Jul 2020 11:56:37 +0000 (17:26 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 29 Jul 2020 22:41:23 +0000 (00:41 +0200)
commit14b8d6528c2b7d35aca421f400a47f65be33887f
treef795c86ecf8c8041ba2ad331d9c85c26d6b4ae0f
parentdcb8901bc6ffd593a3574bd5ee3b450c03ec4221
net/bnxt: add templates for search before alloc

Search before alloc allows reuse of constrained resources such as tcam,
encap, and source modifications.  The new templates will search the
entry and alloc only if necessary.

Signed-off-by: Mike Baucom <michael.baucom@broadcom.com>
Reviewed-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/tf_ulp/ulp_template_db_act.c
drivers/net/bnxt/tf_ulp/ulp_template_db_class.c