/linux-6.6.21/net/bridge/ |
D | br_device.c | 424 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()
|
D | br_netlink.c | 29 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 …]
|
D | br_vlan.c | 339 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()
|
D | br_fdb.c | 464 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()
|
D | br_mst.c | 209 if (!vg->num_vlans) in br_mst_set_enabled()
|
D | br_private.h | 261 u16 num_vlans; member
|
/linux-6.6.21/drivers/net/dsa/microchip/ |
D | ksz_common.c | 1116 .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 …]
|
D | ksz_common.h | 53 int num_vlans; member
|
D | ksz8795.c | 1156 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/ |
D | bnxt_tc.c | 420 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()
|
D | bnxt_tc.h | 25 u8 num_vlans; member
|
D | bnxt_hsi.h | 6879 u8 num_vlans; member
|
/linux-6.6.21/drivers/net/dsa/b53/ |
D | b53_common.c | 750 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()
|
D | b53_priv.h | 146 unsigned int num_vlans; member
|
/linux-6.6.21/drivers/net/ethernet/intel/i40e/ |
D | i40e_virtchnl_pf.c | 1208 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/ |
D | vlan_dev.c | 815 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/ |
D | dpsw-cmd.h | 206 __le16 num_vlans; member
|
D | dpsw.h | 162 u16 num_vlans; member
|
D | dpsw.c | 319 attr->num_vlans = le16_to_cpu(rsp_params->num_vlans); in dpsw_get_attributes()
|
D | dpaa2-switch.c | 1788 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/ |
D | qlcnic_sriov_common.c | 437 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/ |
D | netdevice.h | 936 int num_vlans; member
|