src/dpdk/drivers/net/bnx2x/bnx2x.c
static uint32_t bnx2x_send_unload_req(struct bnx2x_softc *sc, int unload_mode)
{
	uint32_t reset_code = 0;

	/* Select the UNLOAD request mode */
	if (unload_mode == UNLOAD_NORMAL) {
		reset_code = DRV_MSG_CODE_UNLOAD_REQ_WOL_DIS;
	} else {
		reset_code = DRV_MSG_CODE_UNLOAD_REQ_WOL_DIS;
	}

	/* Send the request to the MCP */
	if (!BNX2X_NOMCP(sc)) {
		reset_code = bnx2x_fw_command(sc, reset_code, 0);
	} else {
		reset_code = bnx2x_nic_unload_no_mcp(sc);
	}

	return reset_code;
}
/* request unload mode from the MCP: COMMON, PORT or FUNCTION */
request unload mode from the MCP: COMMON, PORT or FUNCTION
request unload mode from the MCP : COMMON PORT or FUNCTION
static uint32_t bnx2x_send_unload_req(struct bnx2x_softc *sc, int unload_mode)
{
	uint32_t reset_code = 0;
	if (unload_mode == UNLOAD_NORMAL) {
		reset_code = DRV_MSG_CODE_UNLOAD_REQ_WOL_DIS;
	} else {
		reset_code = DRV_MSG_CODE_UNLOAD_REQ_WOL_DIS;
	}
	if (!BNX2X_NOMCP(sc)) {
		reset_code = bnx2x_fw_command(sc, reset_code, 0);
	} else {
		reset_code = bnx2x_nic_unload_no_mcp(sc);
	}
	return reset_code;
}
static uint32_t bnx2x_send_unload_req ( struct bnx2x_softc * sc , int unload_mode ) { uint32_t reset_code = 0 ; if ( unload_mode == UNLOAD_NORMAL ) { reset_code = DRV_MSG_CODE_UNLOAD_REQ_WOL_DIS ; } else { reset_code = DRV_MSG_CODE_UNLOAD_REQ_WOL_DIS ; } if ( ! BNX2X_NOMCP ( sc ) ) { reset_code = bnx2x_fw_command ( sc , reset_code , 0 ) ; } else { reset_code = bnx2x_nic_unload_no_mcp ( sc ) ; } return reset_code ; }
request unload mode from the MCP: COMMON, PORT or FUNCTION
request unload mode from the MCP : COMMON PORT or FUNCTION
/* Select the UNLOAD request mode */ /* Send the request to the MCP */