/linux/tools/testing/selftests/drivers/net/mlxsw/ |
A D | sch_red_core.sh | 165 local vlan 181 ip link set dev $intf.$vlan master br1_$vlan 189 ip link set dev $intf.$vlan master br2_$vlan 358 -A $(ipaddr 2 $vlan) -B $(ipaddr 3 $vlan) \ 452 start_tcp_traffic $h1.$vlan $(ipaddr 1 $vlan) $(ipaddr 3 $vlan) \ 493 start_tcp_traffic $h1.$vlan $(ipaddr 1 $vlan) $(ipaddr 3 $vlan) \ 520 start_tcp_traffic $h1.$vlan $(ipaddr 1 $vlan) $(ipaddr 3 $vlan) \ 556 start_tcp_traffic $h1.$vlan $(ipaddr 1 $vlan) $(ipaddr 3 $vlan) bc 557 start_tcp_traffic $h2.$vlan $(ipaddr 2 $vlan) $(ipaddr 3 $vlan) bc 589 start_tcp_traffic $h1.$vlan $(ipaddr 1 $vlan) $(ipaddr 3 $vlan) \ [all …]
|
A D | rif_mac_profiles_occ.sh | 47 vlan=$(( i*10 )) 51 link add link $h1 name $h1.$vlan \ 52 address 00:$m:$m:$m:$m:$m type vlan id $vlan 53 address add 192.0.$m.1/24 dev $h1.$vlan 108 local vlan=$(( i*10 )) 114 ip link add link $h1 name $h1.$vlan address 00:$m:$m:$m:$m:$m \ 115 type vlan id $vlan 116 ip address add 192.0.$m.1/24 dev $h1.$vlan 121 ip link set $h1.$vlan address 00:$m:$m:$m:$m:$m &> /dev/null 126 ip link del dev $h1.$vlan
|
/linux/drivers/net/ |
A D | macvlan.c | 146 entry->vlan == vlan) in macvlan_hash_lookup_source() 168 entry->vlan = vlan; in macvlan_hash_add_source() 276 if (vlan->dev == src || !(vlan->mode & mode)) in macvlan_broadcast() 385 if (entry->vlan == vlan) in macvlan_flush_sources() 490 if (!vlan || vlan->mode == MACVLAN_MODE_SOURCE) in macvlan_handle_frame() 802 macvlan_compute_filter(vlan->mc_filter, dev, vlan); in macvlan_set_mac_lists() 1379 macvlan_flush_sources(vlan->port, vlan); in macvlan_changelink_sources() 1381 macvlan_flush_sources(vlan->port, vlan); in macvlan_changelink_sources() 1539 macvlan_flush_sources(vlan->port, vlan); in macvlan_dellink() 1567 macvlan_flush_sources(vlan->port, vlan); in macvlan_changelink() [all …]
|
A 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/net/bridge/ |
A D | br_vlan_tunnel.c | 54 struct net_bridge_vlan *vlan) in vlan_tunnel_info_del() argument 60 vlan_tunnel_info_release(vlan); in vlan_tunnel_info_del() 89 vlan_tunnel_info_release(vlan); in __vlan_tunnel_info_add() 101 struct net_bridge_vlan *vlan; in nbp_vlan_tunnel_info_add() local 106 vlan = br_vlan_find(vg, vid); in nbp_vlan_tunnel_info_add() 107 if (!vlan) in nbp_vlan_tunnel_info_add() 138 vlan_tunnel_info_del(vg, vlan); in __vlan_tunnel_info_flush() 166 struct net_bridge_vlan *vlan; in br_handle_ingress_vlan_tunnel() local 177 if (!vlan) in br_handle_ingress_vlan_tunnel() 186 struct net_bridge_vlan *vlan) in br_handle_egress_vlan_tunnel() argument [all …]
|
A D | br_vlan.c | 587 *vlan = v; in __allowed_ingress() 604 *vlan = NULL; in br_allowed_ingress() 726 if (vlan) in br_vlan_add() 730 vlan = kzalloc(sizeof(*vlan), GFP_KERNEL); in br_vlan_add() 731 if (!vlan) in br_vlan_add() 736 kfree(vlan); in br_vlan_add() 748 kfree(vlan); in br_vlan_add() 1249 if (vlan) { in nbp_vlan_add() 1259 vlan = kzalloc(sizeof(*vlan), GFP_KERNEL); in nbp_vlan_add() 1260 if (!vlan) in nbp_vlan_add() [all …]
|
/linux/net/8021q/ |
A D | vlan_dev.c | 58 vlan_tci = vlan->vlan_id; in vlan_dev_hard_header() 81 dev = vlan->real_dev; in vlan_dev_hard_header() 114 vlan_tci = vlan->vlan_id; in vlan_dev_hard_start_xmit() 119 skb->dev = vlan->real_dev; in vlan_dev_hard_start_xmit() 207 vlan->nr_egress_mappings++; in vlan_dev_set_egress_priority() 217 u32 old_flags = vlan->flags; in vlan_dev_change_flags() 756 vlan->netpoll = netpoll; in vlan_dev_netpoll_setup() 770 vlan->netpoll = NULL; in vlan_dev_netpoll_cleanup() 795 ctx->vlan[ctx->num_vlans].id = vlan->vlan_id; in vlan_dev_fill_forward_path() 796 ctx->vlan[ctx->num_vlans].proto = vlan->vlan_proto; in vlan_dev_fill_forward_path() [all …]
|
A D | vlan.c | 83 struct vlan_dev_priv *vlan) in vlan_stacked_transfer_operstate() argument 95 u16 vlan_id = vlan->vlan_id; in unregister_vlan_dev() 106 if (vlan->flags & VLAN_FLAG_MVRP) in unregister_vlan_dev() 108 if (vlan->flags & VLAN_FLAG_GVRP) in unregister_vlan_dev() 152 u16 vlan_id = vlan->vlan_id; in register_vlan_dev() 217 struct vlan_dev_priv *vlan; in register_vlan_device() local 269 vlan = vlan_dev_priv(new_dev); in register_vlan_device() 271 vlan->vlan_id = vlan_id; in register_vlan_device() 272 vlan->real_dev = real_dev; in register_vlan_device() 273 vlan->dent = NULL; in register_vlan_device() [all …]
|
A D | vlanproc.c | 145 if (!vlan->dent) in vlan_proc_add_dev() 236 vlan->vlan_id, vlan->real_dev->name); in vlan_seq_show() 256 vlandev->name, vlan->vlan_id, in vlandev_seq_show() 269 vlan->ingress_priority_map[0], in vlandev_seq_show() 270 vlan->ingress_priority_map[1], in vlandev_seq_show() 271 vlan->ingress_priority_map[2], in vlandev_seq_show() 272 vlan->ingress_priority_map[3], in vlandev_seq_show() 273 vlan->ingress_priority_map[4], in vlandev_seq_show() 274 vlan->ingress_priority_map[5], in vlandev_seq_show() 275 vlan->ingress_priority_map[6], in vlandev_seq_show() [all …]
|
A D | vlan_netlink.c | 167 vlan->vlan_proto = proto; 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() 225 if (vlan->flags) { in vlan_fill_info() 226 f.flags = vlan->flags; in vlan_fill_info() 231 if (vlan->nr_ingress_mappings) { in vlan_fill_info() 237 if (!vlan->ingress_priority_map[i]) in vlan_fill_info() 241 m.to = vlan->ingress_priority_map[i]; in vlan_fill_info() 249 if (vlan->nr_egress_mappings) { in vlan_fill_info() [all …]
|
A 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()
|
A 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/tools/testing/selftests/net/forwarding/ |
A D | sch_tbf_core.sh | 52 local vlan=$1; shift 112 local vlan 121 for vlan in 10 11; do 123 ip link set dev $intf.$vlan master br$vlan 128 for vlan in 10 11; do 129 ip link set dev $swp1.$vlan type vlan ingress 0:0 1:1 139 local vlan 149 for vlan in 11 10; do 205 local vlan=$1; shift 212 local vlan=$1; shift [all …]
|
A D | vxlan_symmetric.sh | 232 type vlan id 4001 234 bridge vlan add vid 10 dev br1 self 235 bridge vlan add vid 20 dev br1 self 267 bridge vlan del vid 20 dev $swp2 271 bridge vlan del vid 10 dev $swp1 281 bridge vlan del vid 20 dev vx20 287 bridge vlan del vid 10 dev vx10 403 type vlan id 4001 453 dst $dst vlan 10 455 dst $dst vlan 20 [all …]
|
A D | vxlan_asymmetric.sh | 213 bridge vlan add vid 10 dev br1 self 214 bridge vlan add vid 20 dev br1 self 231 bridge vlan del vid 20 dev br1 self 232 bridge vlan del vid 10 dev br1 self 242 bridge vlan del vid 20 dev $swp2 246 bridge vlan del vid 10 dev $swp1 250 bridge vlan del vid 20 dev vx20 256 bridge vlan del vid 10 dev vx10 363 bridge vlan add vid 10 dev br1 self 410 dst $dst vlan 10 [all …]
|
A 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 …]
|
A 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 232 bridge vlan add dev $swp3 vid 555 pvid untagged 240 bridge vlan add dev $swp3 vid 555 275 bridge fdb add dev $swp2 $h3mac vlan 555 master static [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
A D | bridge.c | 556 if (vlan && vlan->pkt_reformat_push) { in mlx5_esw_bridge_ingress_flow_with_esw_create() 693 if (vlan) { in mlx5_esw_bridge_egress_flow_create() 1018 vlan = kvzalloc(sizeof(*vlan), GFP_KERNEL); in mlx5_esw_bridge_vlan_create() 1019 if (!vlan) in mlx5_esw_bridge_vlan_create() 1046 return vlan; in mlx5_esw_bridge_vlan_create() 1058 kvfree(vlan); in mlx5_esw_bridge_vlan_create() 1122 if (!vlan) { in mlx5_esw_bridge_port_vlan_lookup() 1131 return vlan; in mlx5_esw_bridge_port_vlan_lookup() 1229 if (vlan) in mlx5_esw_bridge_fdb_entry_init() 1431 if (vlan) { in mlx5_esw_bridge_port_vlan_add() [all …]
|
/linux/net/batman-adv/ |
A D | soft-interface.c | 515 kfree_rcu(vlan, rcu); in batadv_softif_vlan_release() 539 vlan = vlan_tmp; in batadv_softif_vlan_get() 544 return vlan; in batadv_softif_vlan_get() 561 if (vlan) { in batadv_softif_create_vlan() 567 vlan = kzalloc(sizeof(*vlan), GFP_ATOMIC); in batadv_softif_create_vlan() 568 if (!vlan) { in batadv_softif_create_vlan() 573 vlan->bat_priv = bat_priv; in batadv_softif_create_vlan() 574 vlan->vid = vid; in batadv_softif_create_vlan() 645 if (!vlan) in batadv_interface_add_vid() 684 if (!vlan) in batadv_interface_kill_vid() [all …]
|
/linux/drivers/scsi/qedf/ |
A 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() 38 vlan->eth.h_proto = htons(ETH_P_FIP); in qedf_fcoe_send_vlan_req() 41 vlan->fip.fip_op = htons(FIP_OP_VLAN); in qedf_fcoe_send_vlan_req() 43 vlan->fip.fip_dl_len = htons(sizeof(vlan->desc) / FIP_BPW); in qedf_fcoe_send_vlan_req() 46 vlan->desc.mac.fd_desc.fip_dlen = sizeof(vlan->desc.mac) / FIP_BPW; in qedf_fcoe_send_vlan_req() 50 vlan->desc.wwnn.fd_desc.fip_dlen = sizeof(vlan->desc.wwnn) / FIP_BPW; in qedf_fcoe_send_vlan_req() 53 skb_put(skb, sizeof(*vlan)); in qedf_fcoe_send_vlan_req() 184 u16 vlan = 0; in qedf_fip_recv() local [all …]
|
/linux/drivers/net/ethernet/sfc/ |
A D | mcdi_filters.c | 756 ids = vlan->mc; in efx_mcdi_filter_insert_addr_list() 760 ids = vlan->uc; in efx_mcdi_filter_insert_addr_list() 1579 if (WARN_ON(vlan)) { in efx_mcdi_filter_add_vlan() 1585 vlan = kzalloc(sizeof(*vlan), GFP_KERNEL); in efx_mcdi_filter_add_vlan() 1586 if (!vlan) in efx_mcdi_filter_add_vlan() 1589 vlan->vid = vid; in efx_mcdi_filter_add_vlan() 1615 list_del(&vlan->list); in efx_mcdi_filter_del_vlan_internal() 1628 kfree(vlan); in efx_mcdi_filter_del_vlan_internal() 1640 if (!vlan) { in efx_mcdi_filter_del_vlan() 1658 if (vlan->vid == vid) in efx_mcdi_filter_find_vlan() [all …]
|
/linux/drivers/scsi/fnic/ |
A D | fnic_fcs.c | 394 memset(vlan, 0, sizeof(*vlan)); in fnic_fcoe_send_vlan_req() 402 vlan->fip.fip_dl_len = htons(sizeof(vlan->desc) / FIP_BPW); in fnic_fcoe_send_vlan_req() 405 vlan->desc.mac.fd_desc.fip_dlen = sizeof(vlan->desc.mac) / FIP_BPW; in fnic_fcoe_send_vlan_req() 457 vlan = kzalloc(sizeof(*vlan), GFP_ATOMIC); in fnic_fcoe_process_vlan_resp() 458 if (!vlan) { in fnic_fcoe_process_vlan_resp() 864 &vlan); in fnic_rq_cmpl_frame_recv() 1319 kfree(vlan); in fnic_fcoe_reset_vlans() 1357 vlan->vid, vlan->state, vlan->sol_count); in fnic_handle_fip_timer() 1381 vlan->vid); in fnic_handle_fip_timer() 1383 kfree(vlan); in fnic_handle_fip_timer() [all …]
|
/linux/drivers/net/ipvlan/ |
A 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/drivers/net/ethernet/mellanox/mlx5/core/ |
A D | en_fs.c | 127 return vlan->active_svlans; in mlx5e_vlan_get_active_svlans() 132 return vlan->ft.t; in mlx5e_vlan_get_flowtable() 141 int vlan; in mlx5e_vport_context_update_vlans() local 146 for_each_set_bit(vlan, priv->fs.vlan->active_cvlans, VLAN_N_VID) in mlx5e_vport_context_update_vlans() 163 for_each_set_bit(vlan, priv->fs.vlan->active_cvlans, VLAN_N_VID) { in mlx5e_vport_context_update_vlans() 166 vlans[i++] = vlan; in mlx5e_vport_context_update_vlans() 1189 ft = &priv->fs.vlan->ft; in mlx5e_create_vlan_table() 1347 priv->fs.vlan = kvzalloc(sizeof(*priv->fs.vlan), GFP_KERNEL); in mlx5e_fs_init() 1348 if (!priv->fs.vlan) in mlx5e_fs_init() 1355 kvfree(priv->fs.vlan); in mlx5e_fs_cleanup() [all …]
|
/linux/tools/testing/selftests/drivers/net/ocelot/ |
A D | tc_flower_chains.sh | 179 action vlan pop \ 255 bridge vlan add dev $eth0 vid 200 256 bridge vlan add dev $eth0 vid 300 257 bridge vlan add dev $eth1 vid 300 261 action vlan modify id 300 \ 282 bridge vlan del dev $eth0 vid 200 283 bridge vlan del dev $eth0 vid 300 284 bridge vlan del dev $eth1 vid 300 295 bridge vlan add dev $eth0 vid 200 296 bridge vlan add dev $eth1 vid 200 [all …]
|