Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-switch.c195 struct dpsw_vlan_cfg vcfg = {0}; in dpaa2_switch_add_vlan() local
198 vcfg.fdb_id = dpaa2_switch_port_get_fdb_id(port_priv); in dpaa2_switch_add_vlan()
200 ethsw->dpsw_handle, vid, &vcfg); in dpaa2_switch_add_vlan()
289 struct dpsw_vlan_if_cfg vcfg = {0}; in dpaa2_switch_port_add_vlan() local
300 vcfg.num_ifs = 1; in dpaa2_switch_port_add_vlan()
301 vcfg.if_id[0] = port_priv->idx; in dpaa2_switch_port_add_vlan()
302 vcfg.fdb_id = dpaa2_switch_port_get_fdb_id(port_priv); in dpaa2_switch_port_add_vlan()
303 vcfg.options |= DPSW_VLAN_ADD_IF_OPT_FDB_ID; in dpaa2_switch_port_add_vlan()
304 err = dpsw_vlan_add_if(ethsw->mc_io, 0, ethsw->dpsw_handle, vid, &vcfg); in dpaa2_switch_port_add_vlan()
315 vid, &vcfg); in dpaa2_switch_port_add_vlan()
[all …]
/Linux-v6.1/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_main.c9768 struct hclge_tx_vtag_cfg *vcfg = &vport->txvlan_cfg; in hclge_set_vlan_tx_offload_cfg() local
9778 req->def_vlan_tag1 = cpu_to_le16(vcfg->default_tag1); in hclge_set_vlan_tx_offload_cfg()
9779 req->def_vlan_tag2 = cpu_to_le16(vcfg->default_tag2); in hclge_set_vlan_tx_offload_cfg()
9781 vcfg->accept_tag1 ? 1 : 0); in hclge_set_vlan_tx_offload_cfg()
9783 vcfg->accept_untag1 ? 1 : 0); in hclge_set_vlan_tx_offload_cfg()
9785 vcfg->accept_tag2 ? 1 : 0); in hclge_set_vlan_tx_offload_cfg()
9787 vcfg->accept_untag2 ? 1 : 0); in hclge_set_vlan_tx_offload_cfg()
9789 vcfg->insert_tag1_en ? 1 : 0); in hclge_set_vlan_tx_offload_cfg()
9791 vcfg->insert_tag2_en ? 1 : 0); in hclge_set_vlan_tx_offload_cfg()
9793 vcfg->tag_shift_mode_en ? 1 : 0); in hclge_set_vlan_tx_offload_cfg()
[all …]