Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-switch.c252 struct dpsw_vlan_cfg vcfg = {0}; in dpaa2_switch_add_vlan() local
255 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() local
353 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 …]
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_main.c7549 struct hclge_tx_vtag_cfg *vcfg = &vport->txvlan_cfg; in hclge_set_vlan_tx_offload_cfg() local
7559 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 …]