src/dpdk/drivers/net/bnx2x/bnx2x.c
static int bnx2x_func_start(struct bnx2x_softc *sc)
{
	struct ecore_func_state_params func_params = { NULL };
	struct ecore_func_start_params *start_params =
	    &func_params.params.start;

	/* Prepare parameters for function state transitions */
	rte_bit_relaxed_set32(RAMROD_COMP_WAIT, &func_params.ramrod_flags);

	func_params.f_obj = &sc->func_obj;
	func_params.cmd = ECORE_F_CMD_START;

	/* Function parameters */
	start_params->mf_mode = sc->devinfo.mf_info.mf_mode;
	start_params->sd_vlan_tag = OVLAN(sc);

	if (CHIP_IS_E2(sc) || CHIP_IS_E3(sc)) {
		start_params->network_cos_mode = STATIC_COS;
	} else {		/* CHIP_IS_E1X */
		start_params->network_cos_mode = FW_WRR;
	}

	return ecore_func_state_change(sc, &func_params);
}
/*
 * Initialize the function. This must be called before sending CLIENT_SETUP
 * for the first client.
 */
Initialize the function. This must be called before sending CLIENT_SETUP
for the first client.
Initialize the function . This must be called before sending CLIENT_SETUP for the first client .
static int bnx2x_func_start(struct bnx2x_softc *sc)
{
	struct ecore_func_state_params func_params = { NULL };
	struct ecore_func_start_params *start_params =
	    &func_params.params.start;
	rte_bit_relaxed_set32(RAMROD_COMP_WAIT, &func_params.ramrod_flags);
	func_params.f_obj = &sc->func_obj;
	func_params.cmd = ECORE_F_CMD_START;
	start_params->mf_mode = sc->devinfo.mf_info.mf_mode;
	start_params->sd_vlan_tag = OVLAN(sc);
	if (CHIP_IS_E2(sc) || CHIP_IS_E3(sc)) {
		start_params->network_cos_mode = STATIC_COS;
	} else {		
		start_params->network_cos_mode = FW_WRR;
	}
	return ecore_func_state_change(sc, &func_params);
}
static int bnx2x_func_start ( struct bnx2x_softc * sc ) { struct ecore_func_state_params func_params = { NULL } ; struct ecore_func_start_params * start_params = & func_params . params . start ; rte_bit_relaxed_set32 ( RAMROD_COMP_WAIT , & func_params . ramrod_flags ) ; func_params . f_obj = & sc -> func_obj ; func_params . cmd = ECORE_F_CMD_START ; start_params -> mf_mode = sc -> devinfo . mf_info . mf_mode ; start_params -> sd_vlan_tag = OVLAN ( sc ) ; if ( CHIP_IS_E2 ( sc ) || CHIP_IS_E3 ( sc ) ) { start_params -> network_cos_mode = STATIC_COS ; } else { start_params -> network_cos_mode = FW_WRR ; } return ecore_func_state_change ( sc , & func_params ) ; }
Initialize the function.
Initialize the function .
/* Prepare parameters for function state transitions */ /* Function parameters */ /* CHIP_IS_E1X */