/Linux-v5.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 …]
|
/Linux-v5.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 …]
|
D | macvtap.c | 29 struct macvlan_dev vlan; member 58 struct macvlan_dev *vlan = &vlantap->vlan; in macvtap_count_tx_dropped() local 60 this_cpu_inc(vlan->pcpu_stats->tx_dropped); in macvtap_count_tx_dropped() 66 struct macvlan_dev *vlan = &vlantap->vlan; in macvtap_count_rx_dropped() local 68 macvlan_count_rx(vlan, 0, 0, 0); in macvtap_count_rx_dropped() 75 struct macvlan_dev *vlan = &vlantap->vlan; in macvtap_update_features() local 77 vlan->set_features = features; in macvtap_update_features() 78 netdev_update_features(vlan->dev); in macvtap_update_features() 115 vlantap->tap.dev = vlantap->vlan.dev; in macvtap_newlink()
|
/Linux-v5.10/net/bridge/ |
D | br_vlan_tunnel.c | 45 struct net_bridge_vlan *vlan) in vlan_tunnel_info_del() argument 47 if (!vlan->tinfo.tunnel_dst) in vlan_tunnel_info_del() 49 rhashtable_remove_fast(&vg->tunnel_hash, &vlan->tnode, in vlan_tunnel_info_del() 51 vlan->tinfo.tunnel_id = 0; in vlan_tunnel_info_del() 52 dst_release(&vlan->tinfo.tunnel_dst->dst); in vlan_tunnel_info_del() 53 vlan->tinfo.tunnel_dst = NULL; in vlan_tunnel_info_del() 57 struct net_bridge_vlan *vlan, u32 tun_id) in __vlan_tunnel_info_add() argument 63 if (vlan->tinfo.tunnel_dst) in __vlan_tunnel_info_add() 72 vlan->tinfo.tunnel_dst = metadata; in __vlan_tunnel_info_add() 73 vlan->tinfo.tunnel_id = key; in __vlan_tunnel_info_add() [all …]
|
D | br_vlan.c | 398 struct net_bridge_vlan *vlan, *tmp; in __vlan_flush() local 402 list_for_each_entry_safe(vlan, tmp, &vg->vlan_list, vlist) { in __vlan_flush() 405 v_start = vlan->vid; in __vlan_flush() 406 } else if (vlan->vid - v_end != 1) { in __vlan_flush() 409 v_start = vlan->vid; in __vlan_flush() 411 v_end = vlan->vid; in __vlan_flush() 413 __vlan_del(vlan); in __vlan_flush() 648 struct net_bridge_vlan *vlan, in br_vlan_add_existing() argument 654 err = br_switchdev_port_vlan_add(br->dev, vlan->vid, flags, extack); in br_vlan_add_existing() 658 if (!br_vlan_is_brentry(vlan)) { in br_vlan_add_existing() [all …]
|
/Linux-v5.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 …]
|
D | vxlan_symmetric.sh | 187 bridge vlan add vid 10 dev vx10 pvid untagged 195 bridge vlan add vid 20 dev vx20 pvid untagged 199 bridge vlan add vid 10 dev $swp1 pvid untagged 203 bridge vlan add vid 20 dev $swp2 pvid untagged 211 bridge vlan add vid 4001 dev vx4001 pvid untagged 219 ip link add link br1 name vlan10 up master vrf-green type vlan id 10 225 ip link add link br1 name vlan20 up master vrf-green type vlan id 20 232 type vlan id 4001 234 bridge vlan add vid 10 dev br1 self 235 bridge vlan add vid 20 dev br1 self [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 …]
|
D | vxlan_asymmetric.sh | 177 bridge vlan add vid 10 dev vx10 pvid untagged 185 bridge vlan add vid 20 dev vx20 pvid untagged 189 bridge vlan add vid 10 dev $swp1 pvid untagged 193 bridge vlan add vid 20 dev $swp2 pvid untagged 201 ip link add link br1 name vlan10 up master vrf-green type vlan id 10 207 ip link add link br1 name vlan20 up master vrf-green type vlan id 20 213 bridge vlan add vid 10 dev br1 self 214 bridge vlan add vid 20 dev br1 self 216 bridge fdb add 00:00:5e:00:01:01 dev br1 self local vlan 10 217 bridge fdb add 00:00:5e:00:01:01 dev br1 self local vlan 20 [all …]
|
D | mirror_gre_vlan_bridge_1q.sh | 96 bridge vlan add dev br1 vid 555 self 104 bridge vlan add dev $swp3 vid 555 105 bridge vlan add dev $swp2 vid 555 160 bridge vlan del dev br1 vid 555 self 164 bridge vlan add dev br1 vid 555 self 193 bridge vlan del dev $swp3 vid 555 197 bridge vlan add dev $swp3 vid 555 231 bridge vlan add dev $swp3 vid 555 pvid untagged 239 bridge vlan add dev $swp3 vid 555 273 bridge fdb del dev $swp3 $h3mac vlan 555 master 2>/dev/null [all …]
|
D | vxlan_bridge_1q.sh | 170 bridge vlan add vid 10 dev vx10 pvid untagged 178 bridge vlan add vid 20 dev vx20 pvid untagged 182 bridge vlan add vid 10 dev $swp1 183 bridge vlan add vid 20 dev $swp1 187 bridge vlan add vid 10 dev $swp2 188 bridge vlan add vid 20 dev $swp2 205 bridge vlan del vid 20 dev $swp2 206 bridge vlan del vid 10 dev $swp2 210 bridge vlan del vid 20 dev $swp1 211 bridge vlan del vid 10 dev $swp1 [all …]
|
/Linux-v5.10/net/8021q/ |
D | vlan_dev.c | 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() 81 dev = vlan->real_dev; in vlan_dev_hard_header() 88 static inline netdev_tx_t vlan_netpoll_send_skb(struct vlan_dev_priv *vlan, struct sk_buff *skb) in vlan_netpoll_send_skb() argument 91 return netpoll_send_skb(vlan->netpoll, skb); in vlan_netpoll_send_skb() 101 struct vlan_dev_priv *vlan = vlan_dev_priv(dev); in vlan_dev_hard_start_xmit() local 111 if (veth->h_vlan_proto != vlan->vlan_proto || in vlan_dev_hard_start_xmit() [all …]
|
D | vlanproc.c | 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() 145 if (!vlan->dent) in vlan_proc_add_dev() 233 const struct vlan_dev_priv *vlan = vlan_dev_priv(vlandev); in vlan_seq_show() local 236 vlan->vlan_id, vlan->real_dev->name); in vlan_seq_show() 244 const struct vlan_dev_priv *vlan = vlan_dev_priv(vlandev); in vlandev_seq_show() local 256 vlandev->name, vlan->vlan_id, in vlandev_seq_show() 257 (int)(vlan->flags & 1), vlandev->priv_flags); in vlandev_seq_show() 265 seq_printf(seq, "Device: %s", vlan->real_dev->name); in vlandev_seq_show() 269 vlan->ingress_priority_map[0], in vlandev_seq_show() [all …]
|
D | vlan.c | 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() 92 u16 vlan_id = vlan->vlan_id; in unregister_vlan_dev() 103 if (vlan->flags & VLAN_FLAG_MVRP) in unregister_vlan_dev() 105 if (vlan->flags & VLAN_FLAG_GVRP) in unregister_vlan_dev() 108 vlan_group_set_device(grp, vlan->vlan_proto, vlan_id, NULL); in unregister_vlan_dev() 122 vlan_vid_del(real_dev, vlan->vlan_proto, vlan_id); in unregister_vlan_dev() 150 struct vlan_dev_priv *vlan = vlan_dev_priv(dev); in register_vlan_dev() local [all …]
|
D | vlan_netlink.c | 140 struct vlan_dev_priv *vlan = vlan_dev_priv(dev); in vlan_newlink() local 167 vlan->vlan_proto = proto; in vlan_newlink() 168 vlan->vlan_id = nla_get_u16(data[IFLA_VLAN_ID]); in vlan_newlink() 169 vlan->real_dev = real_dev; in vlan_newlink() 171 vlan->flags = VLAN_FLAG_REORDER_HDR; in vlan_newlink() 173 err = vlan_check_real_dev(real_dev, vlan->vlan_proto, vlan->vlan_id, in vlan_newlink() 204 struct vlan_dev_priv *vlan = vlan_dev_priv(dev); in vlan_get_size() local 209 vlan_qos_map_size(vlan->nr_ingress_mappings) + in vlan_get_size() 210 vlan_qos_map_size(vlan->nr_egress_mappings); in vlan_get_size() 215 struct vlan_dev_priv *vlan = vlan_dev_priv(dev); in vlan_fill_info() local [all …]
|
D | vlan_gvrp.c | 29 const struct vlan_dev_priv *vlan = vlan_dev_priv(dev); in vlan_gvrp_request_join() local 30 __be16 vlan_id = htons(vlan->vlan_id); in vlan_gvrp_request_join() 32 if (vlan->vlan_proto != htons(ETH_P_8021Q)) in vlan_gvrp_request_join() 34 return garp_request_join(vlan->real_dev, &vlan_gvrp_app, in vlan_gvrp_request_join() 40 const struct vlan_dev_priv *vlan = vlan_dev_priv(dev); in vlan_gvrp_request_leave() local 41 __be16 vlan_id = htons(vlan->vlan_id); in vlan_gvrp_request_leave() 43 if (vlan->vlan_proto != htons(ETH_P_8021Q)) in vlan_gvrp_request_leave() 45 garp_request_leave(vlan->real_dev, &vlan_gvrp_app, in vlan_gvrp_request_leave()
|
D | vlan_mvrp.c | 35 const struct vlan_dev_priv *vlan = vlan_dev_priv(dev); in vlan_mvrp_request_join() local 36 __be16 vlan_id = htons(vlan->vlan_id); in vlan_mvrp_request_join() 38 if (vlan->vlan_proto != htons(ETH_P_8021Q)) in vlan_mvrp_request_join() 40 return mrp_request_join(vlan->real_dev, &vlan_mrp_app, in vlan_mvrp_request_join() 46 const struct vlan_dev_priv *vlan = vlan_dev_priv(dev); in vlan_mvrp_request_leave() local 47 __be16 vlan_id = htons(vlan->vlan_id); in vlan_mvrp_request_leave() 49 if (vlan->vlan_proto != htons(ETH_P_8021Q)) in vlan_mvrp_request_leave() 51 mrp_request_leave(vlan->real_dev, &vlan_mrp_app, in vlan_mvrp_request_leave()
|
/Linux-v5.10/net/batman-adv/ |
D | soft-interface.c | 131 struct batadv_softif_vlan *vlan; in batadv_interface_set_mac_addr() local 146 hlist_for_each_entry_rcu(vlan, &bat_priv->softif_vlan_list, list) { in batadv_interface_set_mac_addr() 147 batadv_tt_local_remove(bat_priv, old_addr, vlan->vid, in batadv_interface_set_mac_addr() 149 batadv_tt_local_add(dev, addr->sa_data, vlan->vid, in batadv_interface_set_mac_addr() 514 struct batadv_softif_vlan *vlan; in batadv_softif_vlan_release() local 516 vlan = container_of(ref, struct batadv_softif_vlan, refcount); in batadv_softif_vlan_release() 518 spin_lock_bh(&vlan->bat_priv->softif_vlan_list_lock); in batadv_softif_vlan_release() 519 hlist_del_rcu(&vlan->list); in batadv_softif_vlan_release() 520 spin_unlock_bh(&vlan->bat_priv->softif_vlan_list_lock); in batadv_softif_vlan_release() 522 kfree_rcu(vlan, rcu); in batadv_softif_vlan_release() [all …]
|
/Linux-v5.10/drivers/scsi/qedf/ |
D | qedf_fip.c | 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() 43 vlan->fip.fip_dl_len = htons(sizeof(vlan->desc) / FIP_BPW); in qedf_fcoe_send_vlan_req() [all …]
|
/Linux-v5.10/drivers/net/ipvlan/ |
D | ipvtap.c | 47 struct ipvl_dev vlan; member 54 struct ipvl_dev *vlan = &vlantap->vlan; in ipvtap_count_tx_dropped() local 56 this_cpu_inc(vlan->pcpu_stats->tx_drps); in ipvtap_count_tx_dropped() 62 struct ipvl_dev *vlan = &vlantap->vlan; in ipvtap_count_rx_dropped() local 64 ipvlan_count_rx(vlan, 0, 0, 0); in ipvtap_count_rx_dropped() 71 struct ipvl_dev *vlan = &vlantap->vlan; in ipvtap_update_features() local 73 vlan->sfeatures = features; in ipvtap_update_features() 74 netdev_update_features(vlan->dev); in ipvtap_update_features() 107 vlantap->tap.dev = vlantap->vlan.dev; in ipvtap_newlink() 115 struct ipvtap_dev *vlan = netdev_priv(dev); in ipvtap_dellink() local [all …]
|
/Linux-v5.10/drivers/scsi/fnic/ |
D | fnic_fcs.c | 375 struct fip_vlan *vlan; in fnic_fcoe_send_vlan_req() local 390 vlan = (struct fip_vlan *)eth_fr; in fnic_fcoe_send_vlan_req() 392 memset(vlan, 0, sizeof(*vlan)); in fnic_fcoe_send_vlan_req() 393 memcpy(vlan->eth.h_source, fip->ctl_src_addr, ETH_ALEN); in fnic_fcoe_send_vlan_req() 394 memcpy(vlan->eth.h_dest, fcoe_all_fcfs, ETH_ALEN); in fnic_fcoe_send_vlan_req() 395 vlan->eth.h_proto = htons(ETH_P_FIP); in fnic_fcoe_send_vlan_req() 397 vlan->fip.fip_ver = FIP_VER_ENCAPS(FIP_VER); in fnic_fcoe_send_vlan_req() 398 vlan->fip.fip_op = htons(FIP_OP_VLAN); in fnic_fcoe_send_vlan_req() 399 vlan->fip.fip_subcode = FIP_SC_VL_REQ; in fnic_fcoe_send_vlan_req() 400 vlan->fip.fip_dl_len = htons(sizeof(vlan->desc) / FIP_BPW); in fnic_fcoe_send_vlan_req() [all …]
|
/Linux-v5.10/drivers/net/ethernet/sfc/ |
D | mcdi_filters.c | 740 struct efx_mcdi_filter_vlan *vlan, in efx_mcdi_filter_insert_addr_list() argument 756 ids = vlan->mc; in efx_mcdi_filter_insert_addr_list() 760 ids = vlan->uc; in efx_mcdi_filter_insert_addr_list() 769 efx_filter_set_eth_local(&spec, vlan->vid, addr_list[i].addr); in efx_mcdi_filter_insert_addr_list() 794 EFX_WARN_ON_PARANOID(vlan->default_filters[EFX_EF10_BCAST] != in efx_mcdi_filter_insert_addr_list() 798 efx_filter_set_eth_local(&spec, vlan->vid, baddr); in efx_mcdi_filter_insert_addr_list() 812 vlan->default_filters[EFX_EF10_BCAST] = in efx_mcdi_filter_insert_addr_list() 821 struct efx_mcdi_filter_vlan *vlan, in efx_mcdi_filter_insert_def() argument 852 if (vlan->vid != EFX_FILTER_VID_UNSPEC) in efx_mcdi_filter_insert_def() 853 efx_filter_set_eth_local(&spec, vlan->vid, NULL); in efx_mcdi_filter_insert_def() [all …]
|
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
D | eswitch_offloads_termtbl.c | 27 hash = jhash((const void *)&flow_act->vlan, in mlx5_eswitch_termtbl_hash() 28 sizeof(flow_act->vlan), hash); in mlx5_eswitch_termtbl_hash() 51 memcmp(&flow_act1->vlan, &flow_act2->vlan, in mlx5_eswitch_termtbl_cmp() 52 sizeof(flow_act1->vlan)); in mlx5_eswitch_termtbl_cmp() 194 memcpy(&dst->vlan[0], &src->vlan[0], sizeof(src->vlan[0])); in mlx5_eswitch_termtbl_actions_move() 195 memset(&src->vlan[0], 0, sizeof(src->vlan[0])); in mlx5_eswitch_termtbl_actions_move() 200 memcpy(&dst->vlan[1], &src->vlan[1], sizeof(src->vlan[1])); in mlx5_eswitch_termtbl_actions_move() 201 memset(&src->vlan[1], 0, sizeof(src->vlan[1])); in mlx5_eswitch_termtbl_actions_move()
|
/Linux-v5.10/tools/testing/selftests/drivers/net/ocelot/ |
D | tc_flower_chains.sh | 166 ip link add link $eth3 name $eth3.100 type vlan id 100 169 ip link add link $eth3 name $eth3.200 type vlan id 200 174 action vlan pop \ 179 action vlan push protocol 802.1Q id 100 250 bridge vlan add dev $eth0 vid 200 251 bridge vlan add dev $eth0 vid 300 252 bridge vlan add dev $eth1 vid 300 256 action vlan modify id 300 \ 277 bridge vlan del dev $eth0 vid 200 278 bridge vlan del dev $eth0 vid 300 [all …]
|
/Linux-v5.10/tools/testing/selftests/bpf/progs/ |
D | bpf_flow.c | 391 struct vlan_hdr *vlan, _vlan; in PROG() local 395 vlan = bpf_flow_dissect_get_header(skb, sizeof(*vlan), &_vlan); in PROG() 396 if (!vlan) in PROG() 399 if (vlan->h_vlan_encapsulated_proto != bpf_htons(ETH_P_8021Q)) in PROG() 402 keys->nhoff += sizeof(*vlan); in PROG() 403 keys->thoff += sizeof(*vlan); in PROG() 406 vlan = bpf_flow_dissect_get_header(skb, sizeof(*vlan), &_vlan); in PROG() 407 if (!vlan) in PROG() 410 keys->nhoff += sizeof(*vlan); in PROG() 411 keys->thoff += sizeof(*vlan); in PROG() [all …]
|