Searched refs:vlans (Results 1 - 8 of 8) sorted by relevance

/freebsd-11-stable/sys/netgraph/
H A Dng_vlan_rotate.c310 * Receive data, and do rotate the vlans as desired.
313 * of vlans are not relativly prime. In this case multiple slices need
317 * 01234 5 vlans given
380 int8_t vlans = 0; local
401 /* count the vlans */
402 for (vlans = 0; vlans <= NG_VLANROTATE_MAX_VLANS; vlans++) {
404 + vlans * sizeof(struct ether_vlan_stack_entry);
415 switch (ntohs(evsh->vlan_stack[vlans]
[all...]
/freebsd-11-stable/sys/dev/etherswitch/ip17x/
H A Dip175c.c126 uint32_t vlans[IP17X_MAX_VLANS]; local
147 memset(vlans, 0, sizeof(vlans));
152 vlans[v->vlanid & ETHERSWITCH_VID_MASK] = v->ports;
156 data = vlans[j++] & 0x3f;
157 data |= (vlans[j++] & 0x3f) << 8;
215 /* Reset vlans. */
/freebsd-11-stable/sys/dev/mlx5/
H A Dvport.h112 u16 vlans[],
115 u16 vlans[],
/freebsd-11-stable/sys/dev/qlnx/qlnxe/
H A Decore_sriov.h123 /* Shadow copy of all guest vlans */
124 struct ecore_vf_vlan_shadow vlans[ECORE_ETH_VF_NUM_VLAN_FILTERS + 1]; member in struct:ecore_vf_shadow_config
H A Decore_sriov.c1965 /* Reconfigure vlans */
1967 if (!p_vf->shadow_config.vlans[i].used)
1971 filter.vlan = p_vf->shadow_config.vlans[i].vid;
3308 if (p_vf->shadow_config.vlans[i].used &&
3309 p_vf->shadow_config.vlans[i].vid ==
3311 p_vf->shadow_config.vlans[i].used = false;
3323 p_vf->shadow_config.vlans[i].used = false;
3335 if (p_vf->shadow_config.vlans[i].used)
3338 p_vf->shadow_config.vlans[i].used = true;
3339 p_vf->shadow_config.vlans[
[all...]
/freebsd-11-stable/sys/net/
H A Dif_vlan.c96 struct ifvlan *vlans[VLAN_ARRAY_SIZE]; /* static table */ member in struct:ifvlantrunk
113 if (((_ifv) = (_trunk)->vlans[_i]) != NULL)
124 * also modifying the number of vlans on the trunk. The iteration continues
125 * until some condition is met or there are no more vlans on the trunk.
132 if (((_ifv) = (_trunk)->vlans[_i]))
136 * modified (i.e. vlans removed) while we are iterating over it. To allow for
199 * interfaces and (mostly) allow for vlans to be destroyed while they are being
218 * destruction of vlans since there's no guarantee that the ifnet hasn't been
385 * Grow the hash when the number of vlans exceeds half of the number of
509 return trunk->vlans[vi
[all...]
/freebsd-11-stable/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_flow_table.c458 u16 *vlans; local
471 "ifnet vlans list size (%d) > (%d) max vport list size, some vlans will be dropped\n",
476 vlans = kcalloc(list_size, sizeof(*vlans), GFP_KERNEL);
477 if (!vlans)
484 vlans[i++] = vlan;
487 err = mlx5_modify_nic_vport_vlans(priv->mdev, vlans, list_size);
489 mlx5_en_err(ifp, "Failed to modify vport vlans list err(%d)\n",
492 kfree(vlans);
[all...]
/freebsd-11-stable/sys/dev/mlx5/mlx5_core/
H A Dmlx5_vport.c829 u16 vlans[],
879 vlans[i] = MLX5_GET(vlan_layout, vlan_addr, vlan);
888 u16 vlans[],
928 MLX5_SET(vlan_layout, vlan_addr, vlan, vlans[i]);
827 mlx5_query_nic_vport_vlans(struct mlx5_core_dev *dev, u16 vport, u16 vlans[], int *size) argument
887 mlx5_modify_nic_vport_vlans(struct mlx5_core_dev *dev, u16 vlans[], int list_size) argument

Completed in 130 milliseconds