net/bnxt: support two-level priority for TCAMs
authorShahaji Bhosle <sbhosle@broadcom.com>
Thu, 2 Jul 2020 23:28:01 +0000 (16:28 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 7 Jul 2020 21:38:26 +0000 (23:38 +0200)
commit2f1b44456cbc0b59173802e429e176aca722e528
tree4f8784bc2f01226f834a230993d4e4b9cf630af4
parenta46bbb57605b40201c2bab6386a7890451224836
net/bnxt: support two-level priority for TCAMs

Allow TCAM indexes to be allocated from top or bottom.
If the priority is set to 0, allocate from the
lowest tcam indexes i.e. from top. Any other value,
allocate it from the highest tcam indexes i.e. from
bottom.

Signed-off-by: Shahaji Bhosle <sbhosle@broadcom.com>
Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com>
Reviewed-by: Randy Schacher <stuart.schacher@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/tf_core/tf_core.c
drivers/net/bnxt/tf_core/tf_core.h
drivers/net/bnxt/tf_core/tf_em.c
drivers/net/bnxt/tf_core/tf_tbl.c