Home
last modified time | relevance | path

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

/linux-6.6.21/net/bridge/
Dbr_device.c424 if (ctx->num_vlans >= ARRAY_SIZE(ctx->vlan)) in br_fill_forward_path()
426 ctx->vlan[ctx->num_vlans].id = path->bridge.vlan_id; in br_fill_forward_path()
427 ctx->vlan[ctx->num_vlans].proto = path->bridge.vlan_proto; in br_fill_forward_path()
428 ctx->num_vlans++; in br_fill_forward_path()
432 ctx->num_vlans--; in br_fill_forward_path()
Dbr_netlink.c29 int num_vlans = 0; in __get_num_vlan_infos() local
55 num_vlans += 2; in __get_num_vlan_infos()
57 num_vlans += 1; in __get_num_vlan_infos()
67 num_vlans += 2; in __get_num_vlan_infos()
69 num_vlans += 1; in __get_num_vlan_infos()
72 return num_vlans; in __get_num_vlan_infos()
78 int num_vlans; in br_get_num_vlan_infos() local
84 return vg->num_vlans; in br_get_num_vlan_infos()
87 num_vlans = __get_num_vlan_infos(vg, filter_mask); in br_get_num_vlan_infos()
90 return num_vlans; in br_get_num_vlan_infos()
[all …]
Dbr_vlan.c339 vg->num_vlans++; in __vlan_add()
362 vg->num_vlans--; in __vlan_add()
412 vg->num_vlans--; in __vlan_del()
690 if (!vg || !vg->num_vlans) in br_should_learn()
750 vg->num_vlans++; in br_vlan_add_existing()
1040 if (vg->num_vlans) in br_vlan_set_stats_per_port()
1448 int idx = ctx->num_vlans - 1; in br_vlan_fill_forward_path_pvid()
Dbr_fdb.c464 if (!vg || !vg->num_vlans) in br_fdb_changeaddr()
473 if (!vg || !vg->num_vlans) in br_fdb_changeaddr()
503 if (!vg || !vg->num_vlans) in br_fdb_change_mac_address()
1228 if (err || !vg || !vg->num_vlans) in br_fdb_add()
1314 if (!vg || !vg->num_vlans) in br_fdb_delete()
Dbr_mst.c209 if (!vg->num_vlans) in br_mst_set_enabled()
Dbr_private.h261 u16 num_vlans; member
/linux-6.6.21/drivers/net/dsa/microchip/
Dksz_common.c1116 .num_vlans = 4096,
1146 .num_vlans = 4096,
1185 .num_vlans = 4096,
1210 .num_vlans = 4096,
1235 .num_vlans = 16,
1258 .num_vlans = 4096,
1292 .num_vlans = 4096,
1324 .num_vlans = 4096,
1354 .num_vlans = 4096,
1380 .num_vlans = 4096,
[all …]
Dksz_common.h53 int num_vlans; member
Dksz8795.c1156 for (vid = 1; vid < dev->info->num_vlans; ++vid) { in ksz8_port_vlan_add()
1434 for (i = 0; i < (dev->info->num_vlans / 4); i++) in ksz8_setup()
/linux-6.6.21/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_tc.c420 flow->l2_key.num_vlans = 1; in bnxt_tc_parse_flow()
690 if (flow->l2_key.num_vlans > 0) { in bnxt_hwrm_cfa_flow_alloc()
821 if (l2_info->num_vlans) { in hwrm_cfa_decap_filter_alloc()
898 if (l2_info->num_vlans) { in hwrm_cfa_encap_record_alloc()
899 encap->num_vlan_tags = l2_info->num_vlans; in hwrm_cfa_encap_record_alloc()
1265 l2_info->num_vlans = 1; in bnxt_tc_resolve_tunnel_hdrs()
1343 if (l2_info.num_vlans) { in bnxt_tc_get_decap_handle()
1344 decap_l2_info->num_vlans = l2_info.num_vlans; in bnxt_tc_get_decap_handle()
Dbnxt_tc.h25 u8 num_vlans; member
Dbnxt_hsi.h6879 u8 num_vlans; member
/linux-6.6.21/drivers/net/dsa/b53/
Db53_common.c750 for (i = def_vid; i < dev->num_vlans; i++) in b53_configure_vlan()
776 for (vid = def_vid; vid < dev->num_vlans; vid++) { in b53_configure_vlan()
894 memset(priv->vlans, 0, sizeof(*priv->vlans) * priv->num_vlans); in b53_reset_switch()
1062 for (i = 0; i < dev->num_vlans; i++) { in b53_devlink_vlan_table_get()
1077 devlink_resource_size_params_init(&size_params, dev->num_vlans, in b53_setup_devlink_resources()
1078 dev->num_vlans, in b53_setup_devlink_resources()
1081 err = dsa_devlink_resource_register(ds, "VLAN", dev->num_vlans, in b53_setup_devlink_resources()
1492 if (vlan->vid >= dev->num_vlans) in b53_vlan_prepare()
2644 dev->num_vlans = chip->vlans; in b53_switch_init()
2697 dev->num_vlans, sizeof(struct b53_vlan), in b53_switch_init()
Db53_priv.h146 unsigned int num_vlans; member
/linux-6.6.21/drivers/net/ethernet/intel/i40e/
Di40e_virtchnl_pf.c1208 u16 num_vlans = 0, bkt; in __i40e_getnum_vf_vsi_vlan_filters() local
1212 num_vlans++; in __i40e_getnum_vf_vsi_vlan_filters()
1215 return num_vlans; in __i40e_getnum_vf_vsi_vlan_filters()
1226 int num_vlans; in i40e_getnum_vf_vsi_vlan_filters() local
1229 num_vlans = __i40e_getnum_vf_vsi_vlan_filters(vsi); in i40e_getnum_vf_vsi_vlan_filters()
1232 return num_vlans; in i40e_getnum_vf_vsi_vlan_filters()
1244 static void i40e_get_vlan_list_sync(struct i40e_vsi *vsi, u16 *num_vlans, in i40e_get_vlan_list_sync() argument
1252 *num_vlans = __i40e_getnum_vf_vsi_vlan_filters(vsi); in i40e_get_vlan_list_sync()
1253 *vlan_list = kcalloc(*num_vlans, sizeof(**vlan_list), GFP_ATOMIC); in i40e_get_vlan_list_sync()
1279 bool unicast_enable, s16 *vl, u16 num_vlans) in i40e_set_vsi_promisc() argument
[all …]
/linux-6.6.21/net/8021q/
Dvlan_dev.c815 if (ctx->num_vlans >= ARRAY_SIZE(ctx->vlan)) in vlan_dev_fill_forward_path()
818 ctx->vlan[ctx->num_vlans].id = vlan->vlan_id; in vlan_dev_fill_forward_path()
819 ctx->vlan[ctx->num_vlans].proto = vlan->vlan_proto; in vlan_dev_fill_forward_path()
820 ctx->num_vlans++; in vlan_dev_fill_forward_path()
/linux-6.6.21/drivers/net/ethernet/freescale/dpaa2/
Ddpsw-cmd.h206 __le16 num_vlans; member
Ddpsw.h162 u16 num_vlans; member
Ddpsw.c319 attr->num_vlans = le16_to_cpu(rsp_params->num_vlans); in dpsw_get_attributes()
Ddpaa2-switch.c1788 if (attr->max_vlans - attr->num_vlans < 1) in dpaa2_switch_port_vlans_add()
1798 if (attr->max_vlans - attr->num_vlans < 1) in dpaa2_switch_port_vlans_add()
/linux-6.6.21/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_sriov_common.c437 int i, num_vlans, ret; in qlcnic_sriov_set_guest_vlan_mode() local
455 num_vlans = sriov->num_allowed_vlans; in qlcnic_sriov_set_guest_vlan_mode()
456 sriov->allowed_vlans = kcalloc(num_vlans, sizeof(u16), GFP_KERNEL); in qlcnic_sriov_set_guest_vlan_mode()
461 for (i = 0; i < num_vlans; i++) in qlcnic_sriov_set_guest_vlan_mode()
/linux-6.6.21/include/linux/
Dnetdevice.h936 int num_vlans; member