Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/net/ethernet/freescale/dpaa2/
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 …]
/Linux-v6.6/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_main.c9708 struct hclge_tx_vtag_cfg *vcfg = &vport->txvlan_cfg; in hclge_set_vlan_tx_offload_cfg() local
9718 req->def_vlan_tag1 = cpu_to_le16(vcfg->default_tag1); in hclge_set_vlan_tx_offload_cfg()
9719 req->def_vlan_tag2 = cpu_to_le16(vcfg->default_tag2); in hclge_set_vlan_tx_offload_cfg()
9721 vcfg->accept_tag1 ? 1 : 0); in hclge_set_vlan_tx_offload_cfg()
9723 vcfg->accept_untag1 ? 1 : 0); in hclge_set_vlan_tx_offload_cfg()
9725 vcfg->accept_tag2 ? 1 : 0); in hclge_set_vlan_tx_offload_cfg()
9727 vcfg->accept_untag2 ? 1 : 0); in hclge_set_vlan_tx_offload_cfg()
9729 vcfg->insert_tag1_en ? 1 : 0); in hclge_set_vlan_tx_offload_cfg()
9731 vcfg->insert_tag2_en ? 1 : 0); in hclge_set_vlan_tx_offload_cfg()
9733 vcfg->tag_shift_mode_en ? 1 : 0); in hclge_set_vlan_tx_offload_cfg()
[all …]