Lines Matching refs:ctxt
444 struct i40e_vsi_context ctxt; in ixl_initialize_vsi() local
448 memset(&ctxt, 0, sizeof(ctxt)); in ixl_initialize_vsi()
449 ctxt.seid = vsi->seid; in ixl_initialize_vsi()
451 ctxt.uplink_seid = pf->veb_seid; in ixl_initialize_vsi()
452 ctxt.pf_num = hw->pf_id; in ixl_initialize_vsi()
453 err = i40e_aq_get_vsi_params(hw, &ctxt, NULL); in ixl_initialize_vsi()
462 "pfnum: %d, vfnum: %d, stat idx: %d, enabled: %d\n", ctxt.seid, in ixl_initialize_vsi()
463 ctxt.uplink_seid, ctxt.vsi_number, in ixl_initialize_vsi()
464 ctxt.vsis_allocated, ctxt.vsis_unallocated, in ixl_initialize_vsi()
465 ctxt.flags, ctxt.pf_num, ctxt.vf_num, in ixl_initialize_vsi()
466 ctxt.info.stat_counter_idx, ctxt.info.up_enable_bits); in ixl_initialize_vsi()
472 ctxt.info.valid_sections = I40E_AQ_VSI_PROP_QUEUE_MAP_VALID; in ixl_initialize_vsi()
473 ctxt.info.mapping_flags |= I40E_AQ_VSI_QUE_MAP_CONTIG; in ixl_initialize_vsi()
475 ctxt.info.queue_mapping[0] = 0; in ixl_initialize_vsi()
482 ctxt.info.tc_mapping[0] = ((pf->qtag.first_qidx << I40E_AQ_VSI_TC_QUE_OFFSET_SHIFT) in ixl_initialize_vsi()
488 ctxt.info.valid_sections |= I40E_AQ_VSI_PROP_VLAN_VALID; in ixl_initialize_vsi()
489 ctxt.info.port_vlan_flags = I40E_AQ_VSI_PVLAN_MODE_ALL; in ixl_initialize_vsi()
491 ctxt.info.port_vlan_flags |= I40E_AQ_VSI_PVLAN_EMOD_STR_BOTH; in ixl_initialize_vsi()
493 ctxt.info.port_vlan_flags |= I40E_AQ_VSI_PVLAN_EMOD_NOTHING; in ixl_initialize_vsi()
498 ctxt.info.valid_sections |= in ixl_initialize_vsi()
500 ctxt.info.queueing_opt_flags |= I40E_AQ_VSI_QUE_OPT_TCP_ENA; in ixl_initialize_vsi()
504 vsi->vsi_num = ctxt.vsi_number; in ixl_initialize_vsi()
505 bcopy(&ctxt.info, &vsi->info, sizeof(vsi->info)); in ixl_initialize_vsi()
507 ctxt.flags = htole16(I40E_AQ_VSI_TYPE_PF); in ixl_initialize_vsi()
509 err = i40e_aq_update_vsi_params(hw, &ctxt, NULL); in ixl_initialize_vsi()