MCPcopy Create free account
hub / github.com/F-Stack/f-stack / bnxt_ulp_devid_get

Function bnxt_ulp_devid_get

dpdk/drivers/net/bnxt/tf_ulp/bnxt_ulp.c:69–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69static int32_t
70bnxt_ulp_devid_get(struct bnxt *bp,
71 enum bnxt_ulp_device_id *ulp_dev_id)
72{
73 if (BNXT_CHIP_P5(bp)) {
74 *ulp_dev_id = BNXT_ULP_DEVICE_ID_THOR;
75 return 0;
76 }
77
78 if (BNXT_STINGRAY(bp))
79 *ulp_dev_id = BNXT_ULP_DEVICE_ID_STINGRAY;
80 else
81 /* Assuming P4 */
82 *ulp_dev_id = BNXT_ULP_DEVICE_ID_WH_PLUS;
83
84 return 0;
85}
86
87struct bnxt_ulp_app_capabilities_info *
88bnxt_ulp_app_cap_list_get(uint32_t *num_entries)

Callers 2

ulp_ctx_initFunction · 0.85
bnxt_ulp_port_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected