Lines Matching refs:vsi_ctx

128 	struct i40e_vsi_context vsi_ctx;  in ixl_vf_alloc_vsi()  local
135 vsi_ctx.pf_num = hw->pf_id; in ixl_vf_alloc_vsi()
136 vsi_ctx.uplink_seid = pf->veb_seid; in ixl_vf_alloc_vsi()
137 vsi_ctx.connection_type = IXL_VSI_DATA_PORT; in ixl_vf_alloc_vsi()
138 vsi_ctx.vf_num = hw->func_caps.vf_base_id + vf->vf_num; in ixl_vf_alloc_vsi()
139 vsi_ctx.flags = I40E_AQ_VSI_TYPE_VF; in ixl_vf_alloc_vsi()
141 bzero(&vsi_ctx.info, sizeof(vsi_ctx.info)); in ixl_vf_alloc_vsi()
143 vsi_ctx.info.valid_sections = htole16(I40E_AQ_VSI_PROP_SWITCH_VALID); in ixl_vf_alloc_vsi()
145 vsi_ctx.info.switch_id = in ixl_vf_alloc_vsi()
148 vsi_ctx.info.valid_sections |= htole16(I40E_AQ_VSI_PROP_SECURITY_VALID); in ixl_vf_alloc_vsi()
149 vsi_ctx.info.sec_flags = 0; in ixl_vf_alloc_vsi()
151 vsi_ctx.info.sec_flags |= I40E_AQ_VSI_SEC_FLAG_ENABLE_MAC_CHK; in ixl_vf_alloc_vsi()
153 vsi_ctx.info.valid_sections |= htole16(I40E_AQ_VSI_PROP_VLAN_VALID); in ixl_vf_alloc_vsi()
154 vsi_ctx.info.port_vlan_flags = I40E_AQ_VSI_PVLAN_MODE_ALL | in ixl_vf_alloc_vsi()
157 vsi_ctx.info.valid_sections |= in ixl_vf_alloc_vsi()
159 vsi_ctx.info.mapping_flags = htole16(I40E_AQ_VSI_QUE_MAP_NONCONTIG); in ixl_vf_alloc_vsi()
163 vsi_ctx.info.queue_mapping[i] = vf->qtag.qidx[i]; in ixl_vf_alloc_vsi()
164 for (; i < nitems(vsi_ctx.info.queue_mapping); i++) in ixl_vf_alloc_vsi()
165 vsi_ctx.info.queue_mapping[i] = htole16(I40E_AQ_VSI_QUEUE_MASK); in ixl_vf_alloc_vsi()
167 vsi_ctx.info.tc_mapping[0] = htole16( in ixl_vf_alloc_vsi()
171 code = i40e_aq_add_vsi(hw, &vsi_ctx, NULL); in ixl_vf_alloc_vsi()
174 vf->vsi.seid = vsi_ctx.seid; in ixl_vf_alloc_vsi()
175 vf->vsi.vsi_num = vsi_ctx.vsi_number; in ixl_vf_alloc_vsi()
179 code = i40e_aq_get_vsi_params(hw, &vsi_ctx, NULL); in ixl_vf_alloc_vsi()
190 memcpy(&vf->vsi.info, &vsi_ctx.info, sizeof(vf->vsi.info)); in ixl_vf_alloc_vsi()
1103 struct i40e_vsi_context vsi_ctx; in ixl_vf_enable_vlan_strip() local
1105 vsi_ctx.seid = vf->vsi.seid; in ixl_vf_enable_vlan_strip()
1107 bzero(&vsi_ctx.info, sizeof(vsi_ctx.info)); in ixl_vf_enable_vlan_strip()
1108 vsi_ctx.info.valid_sections = htole16(I40E_AQ_VSI_PROP_VLAN_VALID); in ixl_vf_enable_vlan_strip()
1109 vsi_ctx.info.port_vlan_flags = I40E_AQ_VSI_PVLAN_MODE_ALL | in ixl_vf_enable_vlan_strip()
1111 return (i40e_aq_update_vsi_params(&pf->hw, &vsi_ctx, NULL)); in ixl_vf_enable_vlan_strip()