Home
last modified time | relevance | path

Searched refs:vcfg (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-switch.c194 struct dpsw_vlan_cfg vcfg = {0}; in dpaa2_switch_add_vlan() local
197 vcfg.fdb_id = dpaa2_switch_port_get_fdb_id(port_priv); in dpaa2_switch_add_vlan()
199 ethsw->dpsw_handle, vid, &vcfg); in dpaa2_switch_add_vlan()
288 struct dpsw_vlan_if_cfg vcfg = {0}; in dpaa2_switch_port_add_vlan() local
299 vcfg.num_ifs = 1; in dpaa2_switch_port_add_vlan()
300 vcfg.if_id[0] = port_priv->idx; in dpaa2_switch_port_add_vlan()
301 vcfg.fdb_id = dpaa2_switch_port_get_fdb_id(port_priv); in dpaa2_switch_port_add_vlan()
302 vcfg.options |= DPSW_VLAN_ADD_IF_OPT_FDB_ID; in dpaa2_switch_port_add_vlan()
303 err = dpsw_vlan_add_if(ethsw->mc_io, 0, ethsw->dpsw_handle, vid, &vcfg); in dpaa2_switch_port_add_vlan()
314 vid, &vcfg); in dpaa2_switch_port_add_vlan()
[all …]
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_main.c9736 struct hclge_tx_vtag_cfg *vcfg = &vport->txvlan_cfg; in hclge_set_vlan_tx_offload_cfg() local
9746 req->def_vlan_tag1 = cpu_to_le16(vcfg->default_tag1); in hclge_set_vlan_tx_offload_cfg()
9747 req->def_vlan_tag2 = cpu_to_le16(vcfg->default_tag2); in hclge_set_vlan_tx_offload_cfg()
9749 vcfg->accept_tag1 ? 1 : 0); in hclge_set_vlan_tx_offload_cfg()
9751 vcfg->accept_untag1 ? 1 : 0); in hclge_set_vlan_tx_offload_cfg()
9753 vcfg->accept_tag2 ? 1 : 0); in hclge_set_vlan_tx_offload_cfg()
9755 vcfg->accept_untag2 ? 1 : 0); in hclge_set_vlan_tx_offload_cfg()
9757 vcfg->insert_tag1_en ? 1 : 0); in hclge_set_vlan_tx_offload_cfg()
9759 vcfg->insert_tag2_en ? 1 : 0); in hclge_set_vlan_tx_offload_cfg()
9761 vcfg->tag_shift_mode_en ? 1 : 0); in hclge_set_vlan_tx_offload_cfg()
[all …]