Lines Matching defs:vlan_idx
40 u8 vlan_idx = attr->total_vlan;
42 if (vlan_idx >= MLX5_FS_VLAN_DEPTH) {
47 if (!mlx5_eswitch_vlan_actions_supported(priv->mdev, vlan_idx)) {
54 if (vlan_idx)
60 attr->vlan_vid[vlan_idx] = act->vlan.vid;
61 attr->vlan_prio[vlan_idx] = act->vlan.prio;
62 attr->vlan_proto[vlan_idx] = act->vlan.proto;
63 if (!attr->vlan_proto[vlan_idx])
64 attr->vlan_proto[vlan_idx] = htons(ETH_P_8021Q);
66 if (vlan_idx)
86 attr->total_vlan = vlan_idx + 1;