Home
last modified time | relevance | path

Searched full:vlan (Results 1 – 25 of 892) sorted by relevance

12345678910>>...36

/Linux-v5.10/tools/testing/selftests/tc-testing/tc-tests/actions/
Dvlan.json4 "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.10/drivers/net/
Dmacvlan.c58 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 …]
/Linux-v5.10/tools/testing/selftests/drivers/net/mlxsw/
Dsch_red_core.sh81 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 …]
Drtnetlink.sh203 # 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 …]
Dvxlan.sh91 log_test "vxlan device with a vlan-aware bridge"
750 bridge vlan del dev vxlan0 vid $vid
753 log_test "offload indication - delete VLAN"
756 bridge vlan add dev vxlan0 vid $vid
759 log_test "offload indication - add tagged VLAN"
762 bridge vlan add dev vxlan0 vid $vid pvid untagged
765 log_test "offload indication - add pvid/untagged VLAN"
845 # Test that when each VNI is mapped to a different VLAN we can enslave
847 bridge vlan add vid 10 dev vxlan10 pvid untagged
848 bridge vlan add vid 20 dev vxlan20 pvid untagged
[all …]
/Linux-v5.10/net/bridge/
Dbr_vlan_tunnel.c3 * Bridge per vlan tunnel port dst_metadata handling code
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()
[all …]
/Linux-v5.10/net/8021q/
Dvlan_dev.c3 * 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 …]
Dvlan.c3 * 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 …]
Dvlan_netlink.c3 * 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 …]
Dvlanproc.c3 * 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 …]
Dvlan_gvrp.c3 * IEEE 802.1Q GARP VLAN Registration Protocol (GVRP)
10 #include "vlan.h"
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()
Dvlan_mvrp.c3 * IEEE 802.1Q Multiple VLAN Registration Protocol (MVRP)
14 #include "vlan.h"
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/include/linux/
Dif_vlan.h3 * 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.10/tools/testing/selftests/net/forwarding/
Dsch_tbf_core.sh52 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 …]
Dtc_vlan_modify.sh48 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.10/drivers/net/dsa/
Drtl8366.c40 * 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.10/drivers/scsi/qedf/
Dqedf_fip.c12 * 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.10/net/batman-adv/
Dsoft-interface.c131 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()
508 * batadv_softif_vlan_release() - release vlan from lists and queue for free
510 * @ref: kref pointer of the vlan object
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()
[all …]
/Linux-v5.10/Documentation/networking/dsa/
Db53.rst48 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 …]
Dsja1105.rst39 VLAN Lookup yes yes
81 Depending on VLAN awareness state, the following operating modes are possible
84 - Mode 1 (VLAN-unaware): a port is in this mode when it is used as a standalone
86 - Mode 2 (fully VLAN-aware): a port is in this mode when it is enslaved to a
87 bridge with ``vlan_filtering=1``. Access to the entire VLAN range is given to
88 the user through ``bridge vlan`` commands, but general-purpose (anything
92 - Mode 3 (best-effort VLAN-aware): a port is in this mode when enslaved to a
97 port*), and shared VLAN learning is performed (FDB lookup is done only by
122 [ 61.204770] sja1105 spi0.1: Reset switch and programmed static config. Reason: VLAN filtering
126 [ 64.682927] sja1105 spi0.1: Reset switch and programmed static config. Reason: VLAN filtering
[all …]
Dconfiguration.rst79 without using a VLAN based configuration.
155 .. _dsa-vlan-configuration:
161 (DSA_TAG_PROTO_NONE). These switches can be configured by a VLAN based
166 The configuration can only be set up via VLAN tagging and bridge setup.
171 ip link add link eth0 name eth0.1 type vlan id 1
172 ip link add link eth0 name eth0.2 type vlan id 2
173 ip link add link eth0 name eth0.3 type vlan id 3
189 # activate VLAN filtering
198 bridge vlan add dev lan1 vid 1 pvid untagged
199 bridge vlan add dev lan2 vid 2 pvid untagged
[all …]
/Linux-v5.10/tools/testing/selftests/bpf/
Dtest_xdp_vlan.sh14 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.10/drivers/scsi/fnic/
Dfnic_fcs.c130 /* start FCoE VLAN discovery */ in fnic_handle_link()
157 /* start FCoE VLAN discovery */ in fnic_handle_link()
375 struct fip_vlan *vlan; in fnic_fcoe_send_vlan_req() local
383 "Sending VLAN request...\n"); in fnic_fcoe_send_vlan_req()
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()
[all …]
/Linux-v5.10/tools/testing/selftests/bpf/progs/
Dtest_xdp_vlan.c4 * 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 …]
/Linux-v5.10/Documentation/networking/
Dcdc_mbim.rst176 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 …]

12345678910>>...36