net/bnxt: add multi-device infrastructure
authorMike Baucom <michael.baucom@broadcom.com>
Fri, 9 Oct 2020 11:11:19 +0000 (16:41 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 16 Oct 2020 17:47:58 +0000 (19:47 +0200)
commita46382845d011bf6334575e05251c7c4c4476d7e
treea1fbc66c02096825629e897fe956a1a69c2f7802
parentb5fc3ade12a2aa709594f929c36eaea090947b8c
net/bnxt: add multi-device infrastructure

In order to support multiple devices this patch:
- Breaks the template into device specific files
- Changes template list retrieval to use device id
- Determines the software device id using the bp pointer
- Determines the TRUFLOW resources based on device id

Signed-off-by: Mike Baucom <michael.baucom@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
drivers/net/bnxt/meson.build
drivers/net/bnxt/tf_ulp/bnxt_ulp.c
drivers/net/bnxt/tf_ulp/ulp_mapper.c
drivers/net/bnxt/tf_ulp/ulp_template_db_act.c
drivers/net/bnxt/tf_ulp/ulp_template_db_class.c
drivers/net/bnxt/tf_ulp/ulp_template_db_tbl.c
drivers/net/bnxt/tf_ulp/ulp_template_db_tbl.h [new file with mode: 0644]
drivers/net/bnxt/tf_ulp/ulp_template_db_wh_plus_act.c [new file with mode: 0644]
drivers/net/bnxt/tf_ulp/ulp_template_db_wh_plus_class.c [new file with mode: 0644]
drivers/net/bnxt/tf_ulp/ulp_template_struct.h