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

Function bnxt_restore_dflt_mac

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

Source from the content-addressed store, hash-verified

5154}
5155
5156static int bnxt_restore_dflt_mac(struct bnxt *bp)
5157{
5158 int rc = 0;
5159
5160 /* MAC is already configured in FW */
5161 if (BNXT_HAS_DFLT_MAC_SET(bp))
5162 return 0;
5163
5164 /* Restore the old MAC configured */
5165 rc = bnxt_hwrm_set_mac(bp);
5166 if (rc)
5167 PMD_DRV_LOG(ERR, "Failed to restore MAC address\n");
5168
5169 return rc;
5170}
5171
5172static void bnxt_config_vf_req_fwd(struct bnxt *bp)
5173{

Callers 1

bnxt_init_resourcesFunction · 0.85

Calls 1

bnxt_hwrm_set_macFunction · 0.85

Tested by

no test coverage detected