/openbmc/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | sch_red_core.sh | 164 local vlan 180 ip link set dev $intf.$vlan master br1_$vlan 188 ip link set dev $intf.$vlan master br2_$vlan 356 -A $(ipaddr 2 $vlan) -B $(ipaddr 3 $vlan) \ 450 start_tcp_traffic $h1.$vlan $(ipaddr 1 $vlan) $(ipaddr 3 $vlan) \ 491 start_tcp_traffic $h1.$vlan $(ipaddr 1 $vlan) $(ipaddr 3 $vlan) \ 518 start_tcp_traffic $h1.$vlan $(ipaddr 1 $vlan) $(ipaddr 3 $vlan) \ 554 start_tcp_traffic $h1.$vlan $(ipaddr 1 $vlan) $(ipaddr 3 $vlan) bc 555 start_tcp_traffic $h2.$vlan $(ipaddr 2 $vlan) $(ipaddr 3 $vlan) bc 587 start_tcp_traffic $h1.$vlan $(ipaddr 1 $vlan) $(ipaddr 3 $vlan) \ [all …]
|
H 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
|
/openbmc/linux/drivers/net/ |
H A D | macvlan.c | 148 entry->vlan == vlan) in macvlan_hash_lookup_source() 170 entry->vlan = vlan; in macvlan_hash_add_source() 278 if (vlan->dev == src || !(vlan->mode & mode)) in macvlan_broadcast() 392 if (entry->vlan == vlan) in macvlan_flush_sources() 503 if (!vlan || vlan->mode == MACVLAN_MODE_SOURCE) in macvlan_handle_frame() 1216 netdev_put(vlan->lowerdev, &vlan->dev_tracker); in macvlan_dev_free() 1423 macvlan_flush_sources(vlan->port, vlan); in macvlan_changelink_sources() 1425 macvlan_flush_sources(vlan->port, vlan); in macvlan_changelink_sources() 1589 macvlan_flush_sources(vlan->port, vlan); in macvlan_dellink() 1617 macvlan_flush_sources(vlan->port, vlan); in macvlan_changelink() [all …]
|
/openbmc/linux/net/bridge/ |
H 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 …]
|
/openbmc/linux/tools/testing/selftests/net/forwarding/ |
H 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 …]
|
H A 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 130 local goutput=`bridge -j vlan global show` 223 local goutput=`bridge -j vlan global show` 253 local goutput=`bridge -j vlan global show` 417 bridge vlan add vid 10 dev $h1 master 481 local goutput=`bridge -j -d vlan show` 509 bridge vlan add vid 10 dev br0 self [all …]
|
H A D | bridge_locked_port.sh | 127 bridge vlan add vid 100 dev $swp1 128 bridge vlan add vid 100 dev $swp2 148 bridge vlan del vid 100 dev $swp1 149 bridge vlan del vid 100 dev $swp2 192 bridge fdb get `mac_get $h1` br br0 vlan 1 &> /dev/null 233 bridge fdb get $mac br br0 vlan 1 | grep -q "dev $swp2" 236 bridge fdb get $mac br br0 vlan 1 | grep -q "locked" 243 bridge fdb del $mac vlan 1 dev $swp2 master 308 bridge fdb get $locked_mac1 br br0 vlan 1 &> /dev/null 311 bridge fdb get $locked_mac2 br br0 vlan 1 &> /dev/null [all …]
|
H 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 …]
|
H A D | vxlan_symmetric_ipv6.sh | 232 type vlan id 4001 234 bridge vlan add vid 10 dev br1 self 235 bridge vlan add vid 20 dev br1 self 264 bridge vlan del vid 20 dev $swp2 268 bridge vlan del vid 10 dev $swp1 278 bridge vlan del vid 20 dev vx20 284 bridge vlan del vid 10 dev vx10 404 type vlan id 4001 450 dst $dst vlan 10 452 dst $dst vlan 20 [all …]
|
H 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 …]
|
/openbmc/linux/tools/testing/selftests/drivers/net/dsa/ |
H A 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 130 local goutput=`bridge -j vlan global show` 223 local goutput=`bridge -j vlan global show` 253 local goutput=`bridge -j vlan global show` 417 bridge vlan add vid 10 dev $h1 master 481 local goutput=`bridge -j -d vlan show` 509 bridge vlan add vid 10 dev br0 self [all …]
|
H A D | bridge_locked_port.sh | 127 bridge vlan add vid 100 dev $swp1 128 bridge vlan add vid 100 dev $swp2 148 bridge vlan del vid 100 dev $swp1 149 bridge vlan del vid 100 dev $swp2 192 bridge fdb get `mac_get $h1` br br0 vlan 1 &> /dev/null 233 bridge fdb get $mac br br0 vlan 1 | grep -q "dev $swp2" 236 bridge fdb get $mac br br0 vlan 1 | grep -q "locked" 243 bridge fdb del $mac vlan 1 dev $swp2 master 308 bridge fdb get $locked_mac1 br br0 vlan 1 &> /dev/null 311 bridge fdb get $locked_mac2 br br0 vlan 1 &> /dev/null [all …]
|
/openbmc/linux/net/8021q/ |
H A D | vlan_dev.c | 59 vlan_tci = vlan->vlan_id; in vlan_dev_hard_header() 82 dev = vlan->real_dev; in vlan_dev_hard_header() 115 vlan_tci = vlan->vlan_id; in vlan_dev_hard_start_xmit() 120 skb->dev = vlan->real_dev; in vlan_dev_hard_start_xmit() 208 vlan->nr_egress_mappings++; in vlan_dev_set_egress_priority() 218 u32 old_flags = vlan->flags; in vlan_dev_change_flags() 779 vlan->netpoll = netpoll; in vlan_dev_netpoll_setup() 793 vlan->netpoll = NULL; in vlan_dev_netpoll_cleanup() 818 ctx->vlan[ctx->num_vlans].id = vlan->vlan_id; in vlan_dev_fill_forward_path() 819 ctx->vlan[ctx->num_vlans].proto = vlan->vlan_proto; in vlan_dev_fill_forward_path() [all …]
|
H 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 …]
|
H 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 …]
|
H A D | vlan_netlink.c | 171 vlan->vlan_proto = proto; in vlan_newlink() 173 vlan->real_dev = real_dev; in vlan_newlink() 175 vlan->flags = VLAN_FLAG_REORDER_HDR; in vlan_newlink() 177 err = vlan_check_real_dev(real_dev, vlan->vlan_proto, vlan->vlan_id, in vlan_newlink() 234 if (vlan->flags) { in vlan_fill_info() 235 f.flags = vlan->flags; in vlan_fill_info() 240 if (vlan->nr_ingress_mappings) { in vlan_fill_info() 246 if (!vlan->ingress_priority_map[i]) in vlan_fill_info() 250 m.to = vlan->ingress_priority_map[i]; in vlan_fill_info() 258 if (vlan->nr_egress_mappings) { in vlan_fill_info() [all …]
|
H 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()
|
H 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()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
H A D | bridge.c | 605 if (vlan && vlan->pkt_reformat_push) { in mlx5_esw_bridge_ingress_flow_with_esw_create() 769 if (vlan) { in mlx5_esw_bridge_egress_flow_create() 1178 vlan = kvzalloc(sizeof(*vlan), GFP_KERNEL); in mlx5_esw_bridge_vlan_create() 1179 if (!vlan) in mlx5_esw_bridge_vlan_create() 1195 return vlan; in mlx5_esw_bridge_vlan_create() 1207 kvfree(vlan); in mlx5_esw_bridge_vlan_create() 1319 if (!vlan) { in mlx5_esw_bridge_port_vlan_lookup() 1328 return vlan; in mlx5_esw_bridge_port_vlan_lookup() 1427 if (vlan) in mlx5_esw_bridge_fdb_entry_init() 1698 if (vlan) { in mlx5_esw_bridge_port_vlan_add() [all …]
|
/openbmc/linux/drivers/scsi/qedf/ |
H 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 …]
|
/openbmc/linux/net/batman-adv/ |
H A D | soft-interface.c | 516 kfree_rcu(vlan, rcu); in batadv_softif_vlan_release() 540 vlan = vlan_tmp; in batadv_softif_vlan_get() 545 return vlan; in batadv_softif_vlan_get() 562 if (vlan) { in batadv_softif_create_vlan() 568 vlan = kzalloc(sizeof(*vlan), GFP_ATOMIC); in batadv_softif_create_vlan() 569 if (!vlan) { in batadv_softif_create_vlan() 574 vlan->bat_priv = bat_priv; in batadv_softif_create_vlan() 575 vlan->vid = vid; in batadv_softif_create_vlan() 646 if (!vlan) in batadv_interface_add_vid() 685 if (!vlan) in batadv_interface_kill_vid() [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_vsi_vlan_lib.c | 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() 44 if (!validate_vlan(vsi, vlan)) in ice_vsi_add_vlan() 47 err = ice_fltr_add_vlan(vsi, vlan); in ice_vsi_add_vlan() 54 vlan->vid, vsi->vsi_num, err); in ice_vsi_add_vlan() 70 if (!validate_vlan(vsi, vlan)) in ice_vsi_del_vlan() 82 vlan->vid, vsi->vsi_num, err); in ice_vsi_del_vlan() 277 if (vlan->tpid != ETH_P_8021Q) in ice_vsi_set_inner_port_vlan() 280 if (vlan->prio > 7) in ice_vsi_set_inner_port_vlan() 283 port_vlan_info = vlan->vid | (vlan->prio << VLAN_PRIO_SHIFT); in ice_vsi_set_inner_port_vlan() [all …]
|
H A D | ice_eswitch_br.c | 319 if (!vlan) { in ice_esw_br_port_vlan_lookup() 325 return vlan; in ice_esw_br_port_vlan_lookup() 642 kfree(vlan); in ice_eswitch_br_vlan_cleanup() 663 if (port->pvid == vlan->vid || vlan->vid == 1) in ice_eswitch_br_set_pvid() 701 vlan = kzalloc(sizeof(*vlan), GFP_KERNEL); in ice_eswitch_br_vlan_create() 702 if (!vlan) in ice_eswitch_br_vlan_create() 719 err = xa_insert(&port->vlans, vlan->vid, vlan, GFP_KERNEL); in ice_eswitch_br_vlan_create() 725 return vlan; in ice_eswitch_br_vlan_create() 731 kfree(vlan); in ice_eswitch_br_vlan_create() 754 if (vlan) { in ice_eswitch_br_port_vlan_add() [all …]
|
/openbmc/linux/drivers/net/ipvlan/ |
H A D | ipvtap.c | 46 struct ipvl_dev vlan; member 53 struct ipvl_dev *vlan = &vlantap->vlan; in ipvtap_count_tx_dropped() local 55 this_cpu_inc(vlan->pcpu_stats->tx_drps); in ipvtap_count_tx_dropped() 61 struct ipvl_dev *vlan = &vlantap->vlan; in ipvtap_count_rx_dropped() local 63 ipvlan_count_rx(vlan, 0, 0, 0); in ipvtap_count_rx_dropped() 70 struct ipvl_dev *vlan = &vlantap->vlan; in ipvtap_update_features() local 72 vlan->sfeatures = features; in ipvtap_update_features() 73 netdev_update_features(vlan->dev); in ipvtap_update_features() 106 vlantap->tap.dev = vlantap->vlan.dev; in ipvtap_newlink() 114 struct ipvtap_dev *vlan = netdev_priv(dev); in ipvtap_dellink() local [all …]
|
/openbmc/linux/drivers/scsi/fnic/ |
H A D | fnic_fcs.c | 382 memset(vlan, 0, sizeof(*vlan)); in fnic_fcoe_send_vlan_req() 390 vlan->fip.fip_dl_len = htons(sizeof(vlan->desc) / FIP_BPW); in fnic_fcoe_send_vlan_req() 393 vlan->desc.mac.fd_desc.fip_dlen = sizeof(vlan->desc.mac) / FIP_BPW; in fnic_fcoe_send_vlan_req() 445 vlan = kzalloc(sizeof(*vlan), GFP_ATOMIC); in fnic_fcoe_process_vlan_resp() 446 if (!vlan) { in fnic_fcoe_process_vlan_resp() 852 &vlan); in fnic_rq_cmpl_frame_recv() 1307 kfree(vlan); in fnic_fcoe_reset_vlans() 1345 vlan->vid, vlan->state, vlan->sol_count); in fnic_handle_fip_timer() 1369 vlan->vid); in fnic_handle_fip_timer() 1371 kfree(vlan); in fnic_handle_fip_timer() [all …]
|