FreeBSD/sys/dev/bxe/bxe.c
/*
 * 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 inline int
bxe_func_start(struct bxe_softc *sc)
{
    struct ecore_func_state_params func_params = { NULL };
    struct ecore_func_start_params *start_params = &func_params.params.start;
    bit_set(&func_params.ramrod_flags, RAMROD_COMP_WAIT);
    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 inline int bxe_func_start ( struct bxe_softc * sc ) { struct ecore_func_state_params func_params = { NULL } ; struct ecore_func_start_params * start_params = & func_params . params . start ; bit_set ( & func_params . ramrod_flags , RAMROD_COMP_WAIT ) ; 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 */ //start_params->gre_tunnel_mode = 0; //start_params->gre_tunnel_rss  = 0;