| /kernel/linux/linux-6.6/tools/testing/selftests/tc-testing/tc-tests/actions/ |
| D | vlan.json | 4 "name": "Add vlan pop action with pipe opcode", 7 "vlan" 11 "$TC actions flush action vlan", 17 "cmdUnderTest": "$TC actions add action vlan pop pipe index 8", 19 "verifyCmd": "$TC actions list action vlan", 20 "matchPattern": "action order [0-9]+: vlan.*pop.*pipe.*index 8 ref", 23 "$TC actions flush action vlan" 28 "name": "Add vlan pop action with pass opcode", 31 "vlan" 35 "$TC actions flush action vlan", [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/tc-testing/tc-tests/actions/ |
| D | vlan.json | 4 "name": "Add vlan pop action with pipe opcode", 7 "vlan" 11 "$TC actions flush action vlan", 17 "cmdUnderTest": "$TC actions add action vlan pop pipe index 8", 19 "verifyCmd": "$TC actions list action vlan", 20 "matchPattern": "action order [0-9]+: vlan.*pop.*pipe.*index 8 ref", 23 "$TC actions flush action vlan" 28 "name": "Add vlan pop action with pass opcode", 31 "vlan" 35 "$TC actions flush action vlan", [all …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/net/forwarding/ |
| D | bridge_vlan_mcast.sh | 17 ip link add l $h1 $h1.10 up type vlan id 10 29 ip link add l $h2 $h2.10 up type vlan id 10 52 bridge vlan add vid 10-11 dev $swp1 master 53 bridge vlan add vid 10-11 dev $swp2 master 56 check_err $? "Could not enable global vlan multicast snooping" 57 log_test "Vlan multicast snooping enable" 130 local goutput=`bridge -j vlan global show` 132 jq -e ".[].vlans[] | select(.vlan == 10)" &>/dev/null 133 check_err $? "Could not find vlan 10's global options" 134 log_test "Vlan global options existence" [all …]
|
| D | sch_tbf_core.sh | 52 local vlan=$1; shift 54 echo 192.0.2.$((16 * (vlan - 10) + host)) 66 ip link set dev $dev.10 type vlan egress 0:0 69 ip link set dev $dev.11 type vlan egress 0:1 112 local vlan 121 for vlan in 10 11; do 122 vlan_create $intf $vlan 123 ip link set dev $intf.$vlan master br$vlan 124 ip link set dev $intf.$vlan up 128 for vlan in 10 11; do [all …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/dsa/ |
| D | bridge_vlan_mcast.sh | 17 ip link add l $h1 $h1.10 up type vlan id 10 29 ip link add l $h2 $h2.10 up type vlan id 10 52 bridge vlan add vid 10-11 dev $swp1 master 53 bridge vlan add vid 10-11 dev $swp2 master 56 check_err $? "Could not enable global vlan multicast snooping" 57 log_test "Vlan multicast snooping enable" 130 local goutput=`bridge -j vlan global show` 132 jq -e ".[].vlans[] | select(.vlan == 10)" &>/dev/null 133 check_err $? "Could not find vlan 10's global options" 134 log_test "Vlan global options existence" [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/intel/ice/ |
| D | ice_vsi_vlan_lib.c | 11 dev_err(ice_pf_to_dev(vsi->back), "%s %d specified invalid VLAN tpid 0x%04x\n", in print_invalid_tpid() 18 * @vlan: ice_vlan structure to validate 20 * Return true if the VLAN TPID is valid or if the VLAN TPID is 0 and the VLAN 21 * VID is 0, which allows for non-zero VLAN filters with the specified VLAN TPID 22 * and untagged VLAN 0 filters to be added to the prune list respectively. 24 static bool validate_vlan(struct ice_vsi *vsi, struct ice_vlan *vlan) in validate_vlan() argument 26 if (vlan->tpid != ETH_P_8021Q && vlan->tpid != ETH_P_8021AD && in validate_vlan() 27 vlan->tpid != ETH_P_QINQ1 && (vlan->tpid || vlan->vid)) { in validate_vlan() 28 print_invalid_tpid(vsi, vlan->tpid); in validate_vlan() 36 * ice_vsi_add_vlan - default add VLAN implementation for all VSI types [all …]
|
| D | ice_vf_vsi_vlan_ops.c | 13 struct ice_vlan __always_unused *vlan) in noop_vlan_arg() argument 29 /* setup inner VLAN ops */ in ice_port_vlan_on() 40 /* setup outer VLAN ops */ in ice_port_vlan_on() 49 /* all Rx traffic should be in the domain of the assigned port VLAN, in ice_port_vlan_on() 50 * so prevent disabling Rx VLAN filtering in ice_port_vlan_on() 62 /* setup inner VLAN ops */ in ice_port_vlan_off() 92 * ice_vf_vsi_enable_port_vlan - Set VSI VLAN ops to support port VLAN 95 * The function won't create port VLAN, it only allows to create port VLAN 96 * using VLAN ops on the VF VSI. 107 * ice_vf_vsi_disable_port_vlan - Clear VSI support for creating port VLAN [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ |
| D | macvlan.c | 61 struct macvlan_dev *vlan; member 127 struct macvlan_dev *vlan; in macvlan_hash_lookup() local 130 hlist_for_each_entry_rcu(vlan, &port->vlan_hash[idx], hlist, in macvlan_hash_lookup() 132 if (ether_addr_equal_64bits(vlan->dev->dev_addr, addr)) in macvlan_hash_lookup() 133 return vlan; in macvlan_hash_lookup() 139 const struct macvlan_dev *vlan, in macvlan_hash_lookup_source() argument 144 struct hlist_head *h = &vlan->port->vlan_source_hash[idx]; in macvlan_hash_lookup_source() 148 entry->vlan == vlan) in macvlan_hash_lookup_source() 154 static int macvlan_hash_add_source(struct macvlan_dev *vlan, in macvlan_hash_add_source() argument 157 struct macvlan_port *port = vlan->port; in macvlan_hash_add_source() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ |
| D | macvlan.c | 58 struct macvlan_dev *vlan; member 123 struct macvlan_dev *vlan; in macvlan_hash_lookup() local 126 hlist_for_each_entry_rcu(vlan, &port->vlan_hash[idx], hlist, in macvlan_hash_lookup() 128 if (ether_addr_equal_64bits(vlan->dev->dev_addr, addr)) in macvlan_hash_lookup() 129 return vlan; in macvlan_hash_lookup() 135 const struct macvlan_dev *vlan, in macvlan_hash_lookup_source() argument 140 struct hlist_head *h = &vlan->port->vlan_source_hash[idx]; in macvlan_hash_lookup_source() 144 entry->vlan == vlan) in macvlan_hash_lookup_source() 150 static int macvlan_hash_add_source(struct macvlan_dev *vlan, in macvlan_hash_add_source() argument 153 struct macvlan_port *port = vlan->port; in macvlan_hash_add_source() [all …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/mlxsw/ |
| D | sch_red_core.sh | 81 local vlan=$1; shift 83 echo 192.0.2.$((16 * (vlan - 10) + host)) 95 ip link set dev $dev.10 type vlan egress 0:0 98 ip link set dev $dev.11 type vlan egress 0:1 164 local vlan 178 for vlan in 10 11; do 179 vlan_create $intf $vlan 180 ip link set dev $intf.$vlan master br1_$vlan 181 ip link set dev $intf.$vlan up 186 for vlan in 10 11; do [all …]
|
| D | q_in_q_veto.sh | 56 ip link add name br0.100 link br0 type vlan \ 58 check_fail $? "$netdev_proto vlan upper creation on top of an $bridge_proto bridge not rejected" 60 ip link add name br0.100 link br0 type vlan \ 63 …check_err $? "$netdev_proto vlan upper creation on top of an $bridge_proto bridge rejected without… 65 log_test "create $netdev_proto vlan upper on top $bridge_proto bridge" 74 ip link add name $swp1.100 link $swp1 type vlan \ 76 check_fail $? "802.1ad vlan upper creation on top of a front panel not rejected" 78 ip link add name $swp1.100 link $swp1 type vlan \ 81 check_err $? "802.1ad vlan upper creation on top of a front panel rejected without extack" 83 log_test "create 802.1ad vlan upper on top of a front panel" [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/ |
| D | sch_red_core.sh | 81 local vlan=$1; shift 83 echo 192.0.2.$((16 * (vlan - 10) + host)) 95 ip link set dev $dev.10 type vlan egress 0:0 98 ip link set dev $dev.11 type vlan egress 0:1 164 local vlan 178 for vlan in 10 11; do 179 vlan_create $intf $vlan 180 ip link set dev $intf.$vlan master br1_$vlan 181 ip link set dev $intf.$vlan up 186 for vlan in 10 11; do [all …]
|
| D | rtnetlink.sh | 203 # Test that when a VLAN interface is deleted, its associated router 205 # c360867ec46a ("mlxsw: spectrum: Delete RIF when VLAN device is 212 ip link add link br0 name br0.10 type vlan id 10 217 ip link add link br0 name br0.20 type vlan id 20 221 log_test "vlan interface deletion" 228 # Test that when a bridge with VLAN interfaces is deleted, we correctly 238 ip link add link br0 name br0.10 type vlan id 10 241 ip link add link br0 name br0.20 type vlan id 20 255 # Test that when bridge VLAN flags are toggled, we do not take 264 bridge vlan add vid 10 dev $swp1 pvid untagged [all …]
|
| /kernel/linux/linux-5.10/net/8021q/ |
| D | vlan_dev.c | 3 * INET 802.1Q VLAN 8 * VLAN Home Page: http://www.candelatech.com/~greear/vlan.html 15 * - Flush MC-list on VLAN destroy. 30 #include "vlan.h" 36 * Create the VLAN header for an arbitrary protocol layer 49 struct vlan_dev_priv *vlan = vlan_dev_priv(dev); in vlan_dev_hard_header() local 55 if (!(vlan->flags & VLAN_FLAG_REORDER_HDR)) { in vlan_dev_hard_header() 58 vlan_tci = vlan->vlan_id; in vlan_dev_hard_header() 71 skb->protocol = vlan->vlan_proto; in vlan_dev_hard_header() 72 type = ntohs(vlan->vlan_proto); in vlan_dev_hard_header() [all …]
|
| D | vlan.c | 3 * INET 802.1Q VLAN 8 * VLAN Home Page: http://www.candelatech.com/~greear/vlan.html 14 * Use hash table for VLAN groups - David S. Miller <davem@redhat.com> 36 #include "vlan.h" 41 /* Global VLAN variables */ 45 const char vlan_fullname[] = "802.1Q VLAN Support"; 80 struct vlan_dev_priv *vlan) in vlan_stacked_transfer_operstate() argument 82 if (!(vlan->flags & VLAN_FLAG_BRIDGE_BINDING)) in vlan_stacked_transfer_operstate() 88 struct vlan_dev_priv *vlan = vlan_dev_priv(dev); in unregister_vlan_dev() local 89 struct net_device *real_dev = vlan->real_dev; in unregister_vlan_dev() [all …]
|
| D | vlan_netlink.c | 3 * VLAN netlink control interface 15 #include "vlan.h" 58 NL_SET_ERR_MSG_MOD(extack, "VLAN properties not specified"); in vlan_validate() 68 NL_SET_ERR_MSG_MOD(extack, "Invalid VLAN protocol"); in vlan_validate() 76 NL_SET_ERR_MSG_MOD(extack, "Invalid VLAN id"); in vlan_validate() 86 NL_SET_ERR_MSG_MOD(extack, "Invalid VLAN flags"); in vlan_validate() 144 struct vlan_dev_priv *vlan = vlan_dev_priv(dev); in vlan_newlink() local 151 NL_SET_ERR_MSG_MOD(extack, "VLAN id not specified"); in vlan_newlink() 171 vlan->vlan_proto = proto; in vlan_newlink() 172 vlan->vlan_id = nla_get_u16(data[IFLA_VLAN_ID]); in vlan_newlink() [all …]
|
| /kernel/linux/linux-5.10/net/bridge/ |
| D | br_vlan_tunnel.c | 3 * Bridge per vlan tunnel port dst_metadata handling code 44 static void vlan_tunnel_info_release(struct net_bridge_vlan *vlan) in vlan_tunnel_info_release() argument 46 struct metadata_dst *tdst = rtnl_dereference(vlan->tinfo.tunnel_dst); in vlan_tunnel_info_release() 48 WRITE_ONCE(vlan->tinfo.tunnel_id, 0); in vlan_tunnel_info_release() 49 RCU_INIT_POINTER(vlan->tinfo.tunnel_dst, NULL); in vlan_tunnel_info_release() 54 struct net_bridge_vlan *vlan) in vlan_tunnel_info_del() argument 56 if (!rcu_access_pointer(vlan->tinfo.tunnel_dst)) in vlan_tunnel_info_del() 58 rhashtable_remove_fast(&vg->tunnel_hash, &vlan->tnode, in vlan_tunnel_info_del() 60 vlan_tunnel_info_release(vlan); in vlan_tunnel_info_del() 64 struct net_bridge_vlan *vlan, u32 tun_id) in __vlan_tunnel_info_add() argument [all …]
|
| /kernel/linux/linux-6.6/net/bridge/ |
| D | br_vlan_tunnel.c | 3 * Bridge per vlan tunnel port dst_metadata handling code 44 static void vlan_tunnel_info_release(struct net_bridge_vlan *vlan) in vlan_tunnel_info_release() argument 46 struct metadata_dst *tdst = rtnl_dereference(vlan->tinfo.tunnel_dst); in vlan_tunnel_info_release() 48 WRITE_ONCE(vlan->tinfo.tunnel_id, 0); in vlan_tunnel_info_release() 49 RCU_INIT_POINTER(vlan->tinfo.tunnel_dst, NULL); in vlan_tunnel_info_release() 54 struct net_bridge_vlan *vlan) in vlan_tunnel_info_del() argument 56 if (!rcu_access_pointer(vlan->tinfo.tunnel_dst)) in vlan_tunnel_info_del() 58 rhashtable_remove_fast(&vg->tunnel_hash, &vlan->tnode, in vlan_tunnel_info_del() 60 vlan_tunnel_info_release(vlan); in vlan_tunnel_info_del() 64 struct net_bridge_vlan *vlan, u32 tun_id) in __vlan_tunnel_info_add() argument [all …]
|
| /kernel/linux/linux-6.6/net/8021q/ |
| D | vlan_dev.c | 3 * INET 802.1Q VLAN 8 * VLAN Home Page: http://www.candelatech.com/~greear/vlan.html 15 * - Flush MC-list on VLAN destroy. 31 #include "vlan.h" 37 * Create the VLAN header for an arbitrary protocol layer 50 struct vlan_dev_priv *vlan = vlan_dev_priv(dev); in vlan_dev_hard_header() local 56 if (!(vlan->flags & VLAN_FLAG_REORDER_HDR)) { in vlan_dev_hard_header() 59 vlan_tci = vlan->vlan_id; in vlan_dev_hard_header() 72 skb->protocol = vlan->vlan_proto; in vlan_dev_hard_header() 73 type = ntohs(vlan->vlan_proto); in vlan_dev_hard_header() [all …]
|
| D | vlan.c | 3 * INET 802.1Q VLAN 8 * VLAN Home Page: http://www.candelatech.com/~greear/vlan.html 14 * Use hash table for VLAN groups - David S. Miller <davem@redhat.com> 36 #include "vlan.h" 41 /* Global VLAN variables */ 45 const char vlan_fullname[] = "802.1Q VLAN Support"; 83 struct vlan_dev_priv *vlan) in vlan_stacked_transfer_operstate() argument 85 if (!(vlan->flags & VLAN_FLAG_BRIDGE_BINDING)) in vlan_stacked_transfer_operstate() 91 struct vlan_dev_priv *vlan = vlan_dev_priv(dev); in unregister_vlan_dev() local 92 struct net_device *real_dev = vlan->real_dev; in unregister_vlan_dev() [all …]
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | if_vlan.h | 3 * VLAN An implementation of 802.1Q VLAN tagging. 16 #define VLAN_HLEN 4 /* The additional bytes required by VLAN 28 #define VLAN_MAX_DEPTH 8 /* Max. number of nested VLAN tags parsed */ 31 * struct vlan_hdr - vlan header 32 * @h_vlan_TCI: priority and VLAN ID 41 * struct vlan_ethhdr - vlan ethernet header (ethhdr + vlan_hdr) 45 * @h_vlan_TCI: priority and VLAN ID 74 #define VLAN_VID_MASK 0x0fff /* VLAN Identifier */ 116 * struct vlan_pcpu_stats - VLAN percpu rx/tx stats 149 * struct vlan_priority_tci_mapping - vlan egress priority mappings [all …]
|
| /kernel/linux/linux-6.6/include/linux/ |
| D | if_vlan.h | 3 * VLAN An implementation of 802.1Q VLAN tagging. 16 #define VLAN_HLEN 4 /* The additional bytes required by VLAN 28 #define VLAN_MAX_DEPTH 8 /* Max. number of nested VLAN tags parsed */ 31 * struct vlan_hdr - vlan header 32 * @h_vlan_TCI: priority and VLAN ID 41 * struct vlan_ethhdr - vlan ethernet header (ethhdr + vlan_hdr) 45 * @h_vlan_TCI: priority and VLAN ID 76 #define VLAN_VID_MASK 0x0fff /* VLAN Identifier */ 118 * struct vlan_pcpu_stats - VLAN percpu rx/tx stats 151 * struct vlan_priority_tci_mapping - vlan egress priority mappings [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/net/forwarding/ |
| D | sch_tbf_core.sh | 52 local vlan=$1; shift 54 echo 192.0.2.$((16 * (vlan - 10) + host)) 66 ip link set dev $dev.10 type vlan egress 0:0 69 ip link set dev $dev.11 type vlan egress 0:1 112 local vlan 121 for vlan in 10 11; do 122 vlan_create $intf $vlan 123 ip link set dev $intf.$vlan master br$vlan 124 ip link set dev $intf.$vlan up 128 for vlan in 10 11; do [all …]
|
| /kernel/linux/linux-6.6/drivers/net/dsa/realtek/ |
| D | rtl8366-core.c | 40 * rtl8366_obtain_mc() - retrieve or allocate a VLAN member configuration 42 * @vid: the VLAN ID to look up or allocate 58 dev_err(priv->dev, "error searching for VLAN MC %d for VID %d\n", in rtl8366_obtain_mc() 71 dev_err(priv->dev, "error searching for VLAN MC %d for VID %d\n", in rtl8366_obtain_mc() 80 dev_err(priv->dev, "error looking for 4K VLAN MC %d for VID %d\n", in rtl8366_obtain_mc() 91 dev_err(priv->dev, "unable to set/update VLAN MC %d for VID %d\n", in rtl8366_obtain_mc() 122 dev_err(priv->dev, "unable to set/update VLAN MC %d for VID %d\n", in rtl8366_obtain_mc() 132 dev_err(priv->dev, "all VLAN member configurations are in use\n"); in rtl8366_obtain_mc() 148 "setting VLAN%d 4k members: 0x%02x, untagged: 0x%02x\n", in rtl8366_set_vlan() 164 "resulting VLAN%d 4k members: 0x%02x, untagged: 0x%02x\n", in rtl8366_set_vlan() [all …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/net/ |
| D | test_bridge_neigh_suppress.sh | 171 ip -n $ns link add link eth0 name eth0.10 up type vlan id 10 172 ip -n $ns link add link eth0 name eth0.20 up type vlan id 20 219 ip -n $ns link add link br0 name br0.10 up type vlan id 10 220 bridge -n $ns vlan add vid 10 dev br0 self 222 ip -n $ns link add link br0 name br0.20 up type vlan id 20 223 bridge -n $ns vlan add vid 20 dev br0 self 226 bridge -n $ns vlan add vid 10 dev swp1 227 bridge -n $ns vlan add vid 20 dev swp1 237 bridge -n $ns vlan add vid 10 dev vx0 238 bridge -n $ns vlan add vid 10 dev vx0 tunnel_info id 10010 [all …]
|