Home
last modified time | relevance | path

Searched refs:num_vlans (Results 1 – 19 of 19) sorted by relevance

/Linux-v5.10/net/bridge/
Dbr_netlink.c27 int num_vlans = 0; in __get_num_vlan_infos() local
53 num_vlans += 2; in __get_num_vlan_infos()
55 num_vlans += 1; in __get_num_vlan_infos()
65 num_vlans += 2; in __get_num_vlan_infos()
67 num_vlans += 1; in __get_num_vlan_infos()
70 return num_vlans; in __get_num_vlan_infos()
76 int num_vlans; in br_get_num_vlan_infos() local
82 return vg->num_vlans; in br_get_num_vlan_infos()
85 num_vlans = __get_num_vlan_infos(vg, filter_mask); in br_get_num_vlan_infos()
88 return num_vlans; in br_get_num_vlan_infos()
[all …]
Dbr_fdb.c279 if (!vg || !vg->num_vlans) in br_fdb_changeaddr()
288 if (!vg || !vg->num_vlans) in br_fdb_changeaddr()
318 if (!vg || !vg->num_vlans) in br_fdb_change_mac_address()
1047 if (err || !vg || !vg->num_vlans) in br_fdb_add()
1132 if (!vg || !vg->num_vlans) in br_fdb_delete()
Dbr_vlan.c297 vg->num_vlans++; in __vlan_add()
319 vg->num_vlans--; in __vlan_add()
369 vg->num_vlans--; in __vlan_del()
624 if (!vg || !vg->num_vlans) in br_should_learn()
674 vg->num_vlans++; in br_vlan_add_existing()
935 if (vg->num_vlans) in br_vlan_set_stats_per_port()
Dbr_private.h176 u16 num_vlans; member
/Linux-v5.10/drivers/net/dsa/microchip/
Dksz9477.c1351 dev->num_vlans, GFP_KERNEL); in ksz9477_setup()
1489 int num_vlans; member
1501 .num_vlans = 4096,
1511 .num_vlans = 4096,
1521 .num_vlans = 4096,
1530 .num_vlans = 4096,
1549 dev->num_vlans = chip->num_vlans; in ksz9477_switch_init()
Dksz8795.c1047 dev->num_vlans, GFP_KERNEL); in ksz8795_setup()
1182 int num_vlans; member
1193 .num_vlans = 4096,
1202 .num_vlans = 4096,
1211 .num_vlans = 4096,
1230 dev->num_vlans = chip->num_vlans; in ksz8795_switch_init()
Dksz_common.h65 int num_vlans; member
/Linux-v5.10/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_tc.c419 flow->l2_key.num_vlans = 1; in bnxt_tc_parse_flow()
685 if (flow->l2_key.num_vlans > 0) { in bnxt_hwrm_cfa_flow_alloc()
815 if (l2_info->num_vlans) { in hwrm_cfa_decap_filter_alloc()
891 if (l2_info->num_vlans) { in hwrm_cfa_encap_record_alloc()
892 encap->num_vlan_tags = l2_info->num_vlans; in hwrm_cfa_encap_record_alloc()
1257 l2_info->num_vlans = 1; in bnxt_tc_resolve_tunnel_hdrs()
1335 if (l2_info.num_vlans) { in bnxt_tc_get_decap_handle()
1336 decap_l2_info->num_vlans = l2_info.num_vlans; in bnxt_tc_get_decap_handle()
Dbnxt_tc.h25 u8 num_vlans; member
Dbnxt_hsi.h5866 u8 num_vlans; member
/Linux-v5.10/drivers/net/dsa/b53/
Db53_common.c690 for (i = def_vid; i < dev->num_vlans; i++) in b53_configure_vlan()
705 for (vid = def_vid; vid < dev->num_vlans; vid++) { in b53_configure_vlan()
823 memset(priv->vlans, 0, sizeof(*priv->vlans) * priv->num_vlans); in b53_reset_switch()
991 for (i = 0; i < dev->num_vlans; i++) { in b53_devlink_vlan_table_get()
1006 devlink_resource_size_params_init(&size_params, dev->num_vlans, in b53_setup_devlink_resources()
1007 dev->num_vlans, in b53_setup_devlink_resources()
1010 err = dsa_devlink_resource_register(ds, "VLAN", dev->num_vlans, in b53_setup_devlink_resources()
1407 if (vlan->vid_end > dev->num_vlans) in b53_vlan_prepare()
2508 dev->num_vlans = chip->vlans; in b53_switch_init()
2568 dev->num_vlans, sizeof(struct b53_vlan), in b53_switch_init()
Db53_priv.h140 unsigned int num_vlans; member
/Linux-v5.10/drivers/net/ethernet/intel/i40e/
Di40e_virtchnl_pf.c1118 u16 num_vlans = 0, bkt; in i40e_getnum_vf_vsi_vlan_filters() local
1122 num_vlans++; in i40e_getnum_vf_vsi_vlan_filters()
1125 return num_vlans; in i40e_getnum_vf_vsi_vlan_filters()
1137 static void i40e_get_vlan_list_sync(struct i40e_vsi *vsi, u16 *num_vlans, in i40e_get_vlan_list_sync() argument
1145 *num_vlans = i40e_getnum_vf_vsi_vlan_filters(vsi); in i40e_get_vlan_list_sync()
1146 *vlan_list = kcalloc(*num_vlans, sizeof(**vlan_list), GFP_ATOMIC); in i40e_get_vlan_list_sync()
1172 bool unicast_enable, s16 *vl, u16 num_vlans) in i40e_set_vsi_promisc() argument
1180 if (!num_vlans || !vl) { in i40e_set_vsi_promisc()
1213 for (i = 0; i < num_vlans; i++) { in i40e_set_vsi_promisc()
1271 u16 num_vlans; in i40e_config_vf_promiscuous_mode() local
[all …]
/Linux-v5.10/drivers/staging/fsl-dpaa2/ethsw/
Ddpsw-cmd.h175 __le16 num_vlans; member
Ddpsw.h168 u16 num_vlans; member
Ddpsw.c346 attr->num_vlans = le16_to_cpu(rsp_params->num_vlans); in dpsw_get_attributes()
Dethsw.c998 if (attr->max_vlans - attr->num_vlans < new_vlans) in dpaa2_switch_port_vlans_add()
/Linux-v5.10/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_sriov_common.c435 int i, num_vlans; in qlcnic_sriov_set_guest_vlan_mode() local
451 num_vlans = sriov->num_allowed_vlans; in qlcnic_sriov_set_guest_vlan_mode()
452 sriov->allowed_vlans = kcalloc(num_vlans, sizeof(u16), GFP_KERNEL); in qlcnic_sriov_set_guest_vlan_mode()
457 for (i = 0; i < num_vlans; i++) in qlcnic_sriov_set_guest_vlan_mode()
/Linux-v5.10/drivers/net/dsa/sja1105/
Dsja1105_main.c2043 int num_vlans = 0; in sja1105_commit_vlans() local
2054 num_vlans++; in sja1105_commit_vlans()
2086 table->entries = kcalloc(num_vlans, table->ops->unpacked_entry_size, in sja1105_commit_vlans()
2091 table->entry_count = num_vlans; in sja1105_commit_vlans()