| /Linux-v5.15/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 …]
|
| /Linux-v5.15/drivers/net/ |
| D | macvlan.c | 59 struct macvlan_dev *vlan; member 125 struct macvlan_dev *vlan; in macvlan_hash_lookup() local 128 hlist_for_each_entry_rcu(vlan, &port->vlan_hash[idx], hlist, in macvlan_hash_lookup() 130 if (ether_addr_equal_64bits(vlan->dev->dev_addr, addr)) in macvlan_hash_lookup() 131 return vlan; in macvlan_hash_lookup() 137 const struct macvlan_dev *vlan, in macvlan_hash_lookup_source() argument 142 struct hlist_head *h = &vlan->port->vlan_source_hash[idx]; in macvlan_hash_lookup_source() 146 entry->vlan == vlan) in macvlan_hash_lookup_source() 152 static int macvlan_hash_add_source(struct macvlan_dev *vlan, in macvlan_hash_add_source() argument 155 struct macvlan_port *port = vlan->port; in macvlan_hash_add_source() [all …]
|
| /Linux-v5.15/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 | 55 ip link add name br0.100 link br0 type vlan \ 57 check_fail $? "$netdev_proto vlan upper creation on top of an $bridge_proto bridge not rejected" 59 ip link add name br0.100 link br0 type vlan \ 62 …check_err $? "$netdev_proto vlan upper creation on top of an $bridge_proto bridge rejected without… 64 log_test "create $netdev_proto vlan upper on top $bridge_proto bridge" 73 ip link add name $swp1.100 link $swp1 type vlan \ 75 check_fail $? "802.1ad vlan upper creation on top of a front panel not rejected" 77 ip link add name $swp1.100 link $swp1 type vlan \ 80 check_err $? "802.1ad vlan upper creation on top of a front panel rejected without extack" 82 log_test "create 802.1ad vlan upper on top of a front panel" [all …]
|
| D | rtnetlink.sh | 210 # Test that when a VLAN interface is deleted, its associated router 212 # c360867ec46a ("mlxsw: spectrum: Delete RIF when VLAN device is 219 ip link add link br0 name br0.10 type vlan id 10 224 ip link add link br0 name br0.20 type vlan id 20 228 log_test "vlan interface deletion" 235 # Test that when a bridge with VLAN interfaces is deleted, we correctly 245 ip link add link br0 name br0.10 type vlan id 10 248 ip link add link br0 name br0.20 type vlan id 20 262 # Test that when bridge VLAN flags are toggled, we do not take 271 bridge vlan add vid 10 dev $swp1 pvid untagged [all …]
|
| /Linux-v5.15/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"; 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 …]
|
| 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() 140 struct vlan_dev_priv *vlan = vlan_dev_priv(dev); in vlan_newlink() local 147 NL_SET_ERR_MSG_MOD(extack, "VLAN id not specified"); in vlan_newlink() 167 vlan->vlan_proto = proto; in vlan_newlink() 168 vlan->vlan_id = nla_get_u16(data[IFLA_VLAN_ID]); in vlan_newlink() [all …]
|
| D | vlanproc.c | 3 * vlanproc.c VLAN Module. /proc filesystem interface. 31 #include "vlan.h" 51 static const char name_root[] = "vlan"; 56 * VLAN creates its own directory /proc/net/vlan with the following 63 * Generic /proc/net/vlan/<file> file and inode operations 89 * Clean up /proc/net/vlan entries 108 * Create /proc/net/vlan entries 133 * Add directory entry for VLAN device. 138 struct vlan_dev_priv *vlan = vlan_dev_priv(vlandev); in vlan_proc_add_dev() local 143 vlan->dent = proc_create_single_data(vlandev->name, S_IFREG | 0600, in vlan_proc_add_dev() [all …]
|
| /Linux-v5.15/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 …]
|
| D | br_vlan.c | 141 /* Returns a master vlan, if it didn't exist it gets created. In all cases 142 * a reference is taken to the master vlan before returning. 212 /* This is the shared VLAN add function which works for both ports and bridge 214 * vlan entry type: 215 * 1. vlan is being added on a port (no master flags, global entry exists) 216 * 2. vlan is being added on a bridge (both master and brentry flags) 217 * 3. vlan is being added on a port, but a global entry didn't exist which 219 * global entry is used for global per-vlan features, but not for filtering 245 /* Add VLAN to the device filter if it is supported. in __vlan_add() 253 /* need to work on the master vlan too */ in __vlan_add() [all …]
|
| /Linux-v5.15/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 66 #define VLAN_VID_MASK 0x0fff /* VLAN Identifier */ 108 * struct vlan_pcpu_stats - VLAN percpu rx/tx stats 141 * struct vlan_priority_tci_mapping - vlan egress priority mappings [all …]
|
| /Linux-v5.15/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 …]
|
| D | tc_vlan_modify.sh | 48 bridge vlan add dev $swp1 vid 85 49 bridge vlan add dev $swp2 vid 65 51 bridge vlan add dev $swp2 vid 85 52 bridge vlan add dev $swp1 vid 65 63 bridge vlan del vid 65 dev $swp1 64 bridge vlan del vid 85 dev $swp2 66 bridge vlan del vid 65 dev $swp2 67 bridge vlan del vid 85 dev $swp1 114 flower action vlan modify id 65 116 flower action vlan modify id 85 [all …]
|
| /Linux-v5.15/drivers/net/dsa/ |
| D | rtl8366.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(smi->dev, "error searching for VLAN MC %d for VID %d\n", in rtl8366_obtain_mc() 71 dev_err(smi->dev, "error searching for VLAN MC %d for VID %d\n", in rtl8366_obtain_mc() 80 dev_err(smi->dev, "error looking for 4K VLAN MC %d for VID %d\n", in rtl8366_obtain_mc() 91 dev_err(smi->dev, "unable to set/update VLAN MC %d for VID %d\n", in rtl8366_obtain_mc() 122 dev_err(smi->dev, "unable to set/update VLAN MC %d for VID %d\n", in rtl8366_obtain_mc() 132 dev_err(smi->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 …]
|
| /Linux-v5.15/drivers/scsi/qedf/ |
| D | qedf_fip.c | 12 * FIP VLAN functions that will eventually move to libfcoe. 19 struct fip_vlan *vlan; in qedf_fcoe_send_vlan_req() local 33 vlan = (struct fip_vlan *)eth_fr; in qedf_fcoe_send_vlan_req() 35 memset(vlan, 0, sizeof(*vlan)); in qedf_fcoe_send_vlan_req() 36 ether_addr_copy(vlan->eth.h_source, qedf->mac); in qedf_fcoe_send_vlan_req() 37 ether_addr_copy(vlan->eth.h_dest, my_fcoe_all_fcfs); in qedf_fcoe_send_vlan_req() 38 vlan->eth.h_proto = htons(ETH_P_FIP); in qedf_fcoe_send_vlan_req() 40 vlan->fip.fip_ver = FIP_VER_ENCAPS(FIP_VER); in qedf_fcoe_send_vlan_req() 41 vlan->fip.fip_op = htons(FIP_OP_VLAN); in qedf_fcoe_send_vlan_req() 42 vlan->fip.fip_subcode = FIP_SC_VL_REQ; in qedf_fcoe_send_vlan_req() [all …]
|
| /Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
| D | bridge.c | 146 "Failed to create VLAN flow group for bridge ingress table (err=%ld)\n", in mlx5_esw_bridge_ingress_vlan_fg_create() 183 "Failed to create bridge ingress table VLAN filter flow group (err=%ld)\n", in mlx5_esw_bridge_ingress_filter_fg_create() 253 "Failed to create VLAN flow group for bridge egress table (err=%ld)\n", in mlx5_esw_bridge_egress_vlan_fg_create() 413 struct mlx5_esw_bridge_vlan *vlan, u32 counter_id, in mlx5_esw_bridge_ingress_flow_with_esw_create() argument 445 if (vlan && vlan->pkt_reformat_push) { in mlx5_esw_bridge_ingress_flow_with_esw_create() 447 flow_act.pkt_reformat = vlan->pkt_reformat_push; in mlx5_esw_bridge_ingress_flow_with_esw_create() 448 } else if (vlan) { in mlx5_esw_bridge_ingress_flow_with_esw_create() 456 vlan->vid); in mlx5_esw_bridge_ingress_flow_with_esw_create() 473 struct mlx5_esw_bridge_vlan *vlan, u32 counter_id, in mlx5_esw_bridge_ingress_flow_create() argument 476 return mlx5_esw_bridge_ingress_flow_with_esw_create(vport_num, addr, vlan, counter_id, in mlx5_esw_bridge_ingress_flow_create() [all …]
|
| /Linux-v5.15/Documentation/networking/dsa/ |
| D | b53.rst | 48 The configuration slightly differ from the :ref:`dsa-vlan-configuration`. 51 VLAN programming would basically change the CPU port's default PVID and make 54 In difference to the configuration described in :ref:`dsa-vlan-configuration` 55 the default VLAN 1 has to be removed from the slave interface configuration in 57 VLAN configuration in the bridge showcase. 61 The configuration can only be set up via VLAN tagging and bridge setup. 67 ip link add link eth0 name eth0.1 type vlan id 1 68 ip link add link eth0 name eth0.2 type vlan id 2 69 ip link add link eth0 name eth0.3 type vlan id 3 85 # activate VLAN filtering [all …]
|
| /Linux-v5.15/Documentation/networking/ |
| D | switchdev.rst | 172 FDB entry is the {port, MAC, VLAN} tuple forwarding destination. 179 - VLAN flooding of multicast/broadcast and unknown unicast packets 188 bridge fdb add dev DEV ADDRESS [vlan VID] [self] static 201 bridge fdb add dev DEV ADDRESS [vlan VID] master static 220 Note: by default, the bridge does not filter on VLAN and only bridges untagged 221 traffic. To enable VLAN support, turn on VLAN filtering:: 228 The switch device will learn/forget source MAC address/VLAN on ingress packets 229 and notify the switch driver of the mac/vlan/port tuples. The switch driver, 309 For a given L2 VLAN domain, the switch device should flood multicast/broadcast 312 vlan L2 domain, can program the switch device for flooding. The packet may [all …]
|
| D | cdc_mbim.rst | 176 channel. The cdc_mbim driver models such IP sessions as 802.1q VLAN 178 VLAN ID Z for all values of Z greater than 0. 184 VLAN links prior to establishing MBIM IP sessions where the SessionId 185 is greater than 0. These links can be added by using the normal VLAN 190 ip link add link wwan0 name wwan0.3 type vlan id 3 200 sessions as another set of 802.1q VLAN subdevices of the master wwanY 201 device, mapping MBIM DSS session A to VLAN ID (256 + A) for all values 207 The DSS VLAN subdevices are used as a practical interface between the 231 ip link add link wwan0 name wwan0.dss5 type vlan id 261 240 Note that adding VLAN links for DSS sessions is entirely optional. A [all …]
|
| /Linux-v5.15/tools/testing/selftests/bpf/ |
| D | test_xdp_vlan.sh | 14 echo "Testing XDP + TC eBPF VLAN manipulations: $TESTNAME" 157 # NOTICE: XDP require VLAN header inside packet payload 158 # - Thus, disable VLAN offloading driver features 159 # - For veth REMEMBER TX side VLAN-offload 161 # Disable rx-vlan-offload (mostly needed on ns1) 165 # Disable tx-vlan-offload (mostly needed on ns2) 176 # In ns2/veth2 create VLAN device 177 export VLAN=4011 179 ip netns exec ns2 ip link add link $DEVNS2 name $DEVNS2.$VLAN type vlan id $VLAN 180 ip netns exec ns2 ip addr add ${IPADDR2}/24 dev $DEVNS2.$VLAN [all …]
|
| /Linux-v5.15/net/batman-adv/ |
| D | soft-interface.c | 129 struct batadv_softif_vlan *vlan; in batadv_interface_set_mac_addr() local 144 hlist_for_each_entry_rcu(vlan, &bat_priv->softif_vlan_list, list) { in batadv_interface_set_mac_addr() 145 batadv_tt_local_remove(bat_priv, old_addr, vlan->vid, in batadv_interface_set_mac_addr() 147 batadv_tt_local_add(dev, addr->sa_data, vlan->vid, in batadv_interface_set_mac_addr() 498 * batadv_softif_vlan_release() - release vlan from lists and queue for free 500 * @ref: kref pointer of the vlan object 504 struct batadv_softif_vlan *vlan; in batadv_softif_vlan_release() local 506 vlan = container_of(ref, struct batadv_softif_vlan, refcount); in batadv_softif_vlan_release() 508 spin_lock_bh(&vlan->bat_priv->softif_vlan_list_lock); in batadv_softif_vlan_release() 509 hlist_del_rcu(&vlan->list); in batadv_softif_vlan_release() [all …]
|
| /Linux-v5.15/drivers/scsi/fnic/ |
| D | fnic_fcs.c | 132 /* start FCoE VLAN discovery */ in fnic_handle_link() 159 /* start FCoE VLAN discovery */ in fnic_handle_link() 377 struct fip_vlan *vlan; in fnic_fcoe_send_vlan_req() local 385 "Sending VLAN request...\n"); in fnic_fcoe_send_vlan_req() 392 vlan = (struct fip_vlan *)eth_fr; in fnic_fcoe_send_vlan_req() 394 memset(vlan, 0, sizeof(*vlan)); in fnic_fcoe_send_vlan_req() 395 memcpy(vlan->eth.h_source, fip->ctl_src_addr, ETH_ALEN); in fnic_fcoe_send_vlan_req() 396 memcpy(vlan->eth.h_dest, fcoe_all_fcfs, ETH_ALEN); in fnic_fcoe_send_vlan_req() 397 vlan->eth.h_proto = htons(ETH_P_FIP); in fnic_fcoe_send_vlan_req() 399 vlan->fip.fip_ver = FIP_VER_ENCAPS(FIP_VER); in fnic_fcoe_send_vlan_req() [all …]
|
| /Linux-v5.15/Documentation/networking/device_drivers/ethernet/ti/ |
| D | am65_nuss_cpsw_switchdev.rst | 65 [*] bridge vlan add dev br0 vid 1 pvid untagged self 79 VLAN configuration 84 bridge vlan add dev br0 vid 1 pvid untagged self <---- add cpu port to VLAN 1 93 bridge vlan add dev sw0p1 vid 100 pvid untagged master 94 bridge vlan add dev sw0p2 vid 100 pvid untagged master 95 bridge vlan add dev br0 vid 100 pvid untagged self <---- Add cpu port to VLAN100 99 bridge vlan add dev sw0p1 vid 100 master 100 bridge vlan add dev sw0p2 vid 100 master 101 bridge vlan add dev br0 vid 100 pvid tagged self <---- Add cpu port to VLAN100 110 bridge fdb add aa:bb:cc:dd:ee:ff dev sw0p1 master vlan 100 [all …]
|
| /Linux-v5.15/tools/testing/selftests/bpf/progs/ |
| D | test_xdp_vlan.c | 4 * XDP/TC VLAN manipulation example 7 * else the VLAN tags are NOT inlined in the packet payload: 12 * # ethtool -k ixgbe2 | grep rx-vlan-offload 13 * rx-vlan-offload: off 30 * struct vlan_hdr - vlan header 31 * @h_vlan_TCI: priority and VLAN ID 42 #define VLAN_VID_MASK 0x0fff /* VLAN Identifier */ 63 /* Make sure packet is large enough for parsing eth + 2 VLAN headers */ in parse_eth_frame() 69 /* Handle outer VLAN tag */ in parse_eth_frame() 82 /* Handle inner (double) VLAN tag */ in parse_eth_frame() [all …]
|