Lines Matching refs:ctxt
4182 struct ice_vsi_ctx *ctxt;
4189 ctxt = kzalloc(sizeof(*ctxt), GFP_KERNEL);
4190 if (!ctxt)
4194 ctxt->info = vsi->info;
4196 ctxt->info.valid_sections =
4202 ctxt->info.sec_flags &= ~(ICE_AQ_VSI_SEC_TX_VLAN_PRUNE_ENA <<
4206 ctxt->info.sw_flags2 &= ~ICE_AQ_VSI_SW_FLAG_RX_VLAN_PRUNE_ENA;
4209 ctxt->info.inner_vlan_flags = ICE_AQ_VSI_INNER_VLAN_TX_MODE_ALL |
4212 status = ice_update_vsi(hw, vsi->idx, ctxt, NULL);
4217 vsi->info.sec_flags = ctxt->info.sec_flags;
4218 vsi->info.sw_flags2 = ctxt->info.sw_flags2;
4219 vsi->info.inner_vlan_flags = ctxt->info.inner_vlan_flags;
4222 kfree(ctxt);
8069 struct ice_vsi_ctx *ctxt;
8074 ctxt = kzalloc(sizeof(*ctxt), GFP_KERNEL);
8075 if (!ctxt)
8078 ctxt->info = vsi->info;
8082 ctxt->info.sw_flags |= ICE_AQ_VSI_SW_FLAG_ALLOW_LB;
8085 ctxt->info.sw_flags &= ~ICE_AQ_VSI_SW_FLAG_ALLOW_LB;
8086 ctxt->info.valid_sections = cpu_to_le16(ICE_AQ_VSI_PROP_SW_VALID);
8088 ret = ice_update_vsi(hw, vsi->idx, ctxt, NULL);
8095 vsi_props->sw_flags = ctxt->info.sw_flags;
8098 kfree(ctxt);