Searched refs:vcfg (Results 1 – 2 of 2) sorted by relevance
252 struct dpsw_vlan_cfg vcfg = {0}; in dpaa2_switch_add_vlan() local255 vcfg.fdb_id = dpaa2_switch_port_get_fdb_id(port_priv); in dpaa2_switch_add_vlan()257 ethsw->dpsw_handle, vid, &vcfg); in dpaa2_switch_add_vlan()346 struct dpsw_vlan_if_cfg vcfg = {0}; in dpaa2_switch_port_add_vlan() local353 vcfg.num_ifs = 1; in dpaa2_switch_port_add_vlan()354 vcfg.if_id[0] = port_priv->idx; in dpaa2_switch_port_add_vlan()355 vcfg.fdb_id = dpaa2_switch_port_get_fdb_id(port_priv); in dpaa2_switch_port_add_vlan()356 vcfg.options |= DPSW_VLAN_ADD_IF_OPT_FDB_ID; in dpaa2_switch_port_add_vlan()358 vid, &vcfg); in dpaa2_switch_port_add_vlan()367 memset(&vcfg, 0, sizeof(vcfg)); in dpaa2_switch_port_add_vlan()[all …]
7549 struct hclge_tx_vtag_cfg *vcfg = &vport->txvlan_cfg; in hclge_set_vlan_tx_offload_cfg() local7559 req->def_vlan_tag1 = cpu_to_le16(vcfg->default_tag1); in hclge_set_vlan_tx_offload_cfg()7560 req->def_vlan_tag2 = cpu_to_le16(vcfg->default_tag2); in hclge_set_vlan_tx_offload_cfg()7562 vcfg->accept_tag1 ? 1 : 0); in hclge_set_vlan_tx_offload_cfg()7564 vcfg->accept_untag1 ? 1 : 0); in hclge_set_vlan_tx_offload_cfg()7566 vcfg->accept_tag2 ? 1 : 0); in hclge_set_vlan_tx_offload_cfg()7568 vcfg->accept_untag2 ? 1 : 0); in hclge_set_vlan_tx_offload_cfg()7570 vcfg->insert_tag1_en ? 1 : 0); in hclge_set_vlan_tx_offload_cfg()7572 vcfg->insert_tag2_en ? 1 : 0); in hclge_set_vlan_tx_offload_cfg()7574 vcfg->tag_shift_mode_en ? 1 : 0); in hclge_set_vlan_tx_offload_cfg()[all …]