net/bnxt: add hashing changes for Thor
authorPeter Spreadborough <peter.spreadborough@broadcom.com>
Sun, 30 May 2021 08:58:42 +0000 (14:28 +0530)
committerAjit Khaparde <ajit.khaparde@broadcom.com>
Thu, 8 Jul 2021 00:01:41 +0000 (02:01 +0200)
commitb56a897575d06bd99735902c72d1584929d39dfc
treec4491e6f2ace0ac7863d7e35913ef978ffb3ebf2
parent20339b09cf71bc195dc6cf3facacbc5548505fd5
net/bnxt: add hashing changes for Thor

- Move HCAPI hashing code to common file and add Thor support.
- Change DPDK EM insert for FKB to use limited size Type 3 key.
- Update FKB builder to be able to tell between EM and WC keys
  during transform.
FKB is the Flexible Key Builder in Thor used while inserting flows.

Signed-off-by: Peter Spreadborough <peter.spreadborough@broadcom.com>
Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com>
Reviewed-by: Randy Schacher <stuart.schacher@broadcom.com>
Reviewed-by: Farah Smith <farah.smith@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
13 files changed:
drivers/net/bnxt/hcapi/cfa/hcapi_cfa.h
drivers/net/bnxt/hcapi/cfa/hcapi_cfa_common.c [new file with mode: 0644]
drivers/net/bnxt/hcapi/cfa/hcapi_cfa_defs.h
drivers/net/bnxt/hcapi/cfa/hcapi_cfa_p4.c
drivers/net/bnxt/hcapi/cfa/hcapi_cfa_p58.c [new file with mode: 0644]
drivers/net/bnxt/hcapi/cfa/hcapi_cfa_p58.h
drivers/net/bnxt/hcapi/cfa/meson.build
drivers/net/bnxt/tf_core/tf_device.h
drivers/net/bnxt/tf_core/tf_device_p4.c
drivers/net/bnxt/tf_core/tf_device_p58.c
drivers/net/bnxt/tf_core/tf_em.h
drivers/net/bnxt/tf_core/tf_em_common.c
drivers/net/bnxt/tf_core/tf_em_hash_internal.c