net/bnxt: modify ULP mapper to use TCAM search
authorMike Baucom <michael.baucom@broadcom.com>
Thu, 23 Jul 2020 11:56:23 +0000 (17:26 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 29 Jul 2020 22:41:23 +0000 (00:41 +0200)
commit0820f6d84d9997e1ac346e3e75d9c3d3515a1f1c
tree87f2a6c958bd3b7a1579570890c4b6cefee4c5d1
parent4182be0dcb847f488bc9f2e5d63ea045d4c50019
net/bnxt: modify ULP mapper to use TCAM search

Modified ulp mapper to use the new tf_search_tcam_entry API.
When search before allocation is requested, mapper calls
tc_search_tcam_entry with the alloc flag.

- On HIT, the result and tcam index is returned.
- On MISS, the tcam index is returned but the result is
created and the tcam entry is set.
- On REJECT, the flow request is rejected.

Signed-off-by: Mike Baucom <michael.baucom@broadcom.com>
Reviewed-by: Kishore Padmanabha <kishore.padmanabha@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/tf_ulp/ulp_mapper.c