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

Function bnxt_alloc_error_recovery_info

dpdk/drivers/net/bnxt/bnxt_ethdev.c:5187–5206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5185}
5186
5187static void bnxt_alloc_error_recovery_info(struct bnxt *bp)
5188{
5189 struct bnxt_error_recovery_info *info = bp->recovery_info;
5190
5191 if (info) {
5192 if (!(bp->fw_cap & BNXT_FW_CAP_HCOMM_FW_STATUS))
5193 memset(info, 0, sizeof(*info));
5194 return;
5195 }
5196
5197 if (!(bp->fw_cap & BNXT_FW_CAP_ERROR_RECOVERY))
5198 return;
5199
5200 info = rte_zmalloc("bnxt_hwrm_error_recovery_qcfg",
5201 sizeof(*info), 0);
5202 if (!info)
5203 bp->fw_cap &= ~BNXT_FW_CAP_ERROR_RECOVERY;
5204
5205 bp->recovery_info = info;
5206}
5207
5208static void bnxt_check_fw_status(struct bnxt *bp)
5209{

Callers 1

bnxt_get_configFunction · 0.85

Calls 2

memsetFunction · 0.85
rte_zmallocFunction · 0.85

Tested by

no test coverage detected