Home
last modified time | relevance | path

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

12345678910>>...65

/kernel/linux/linux-5.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 …]
/kernel/linux/linux-4.19/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 …]
/kernel/linux/linux-4.19/drivers/net/
Dmacvlan.c60 struct macvlan_dev *vlan; member
127 struct macvlan_dev *vlan; in macvlan_hash_lookup() local
130 hlist_for_each_entry_rcu(vlan, &port->vlan_hash[idx], hlist) { in macvlan_hash_lookup()
131 if (ether_addr_equal_64bits(vlan->dev->dev_addr, addr)) in macvlan_hash_lookup()
132 return vlan; in macvlan_hash_lookup()
138 const struct macvlan_dev *vlan, in macvlan_hash_lookup_source() argument
143 struct hlist_head *h = &vlan->port->vlan_source_hash[idx]; in macvlan_hash_lookup_source()
147 entry->vlan == vlan) in macvlan_hash_lookup_source()
153 static int macvlan_hash_add_source(struct macvlan_dev *vlan, in macvlan_hash_add_source() argument
156 struct macvlan_port *port = vlan->port; in macvlan_hash_add_source()
[all …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-4.19/net/bridge/
Dbr_vlan_tunnel.c2 * Bridge per vlan tunnel port dst_metadata handling code
50 struct net_bridge_vlan *vlan) in vlan_tunnel_info_del() argument
52 if (!vlan->tinfo.tunnel_dst) in vlan_tunnel_info_del()
54 rhashtable_remove_fast(&vg->tunnel_hash, &vlan->tnode, in vlan_tunnel_info_del()
56 vlan->tinfo.tunnel_id = 0; in vlan_tunnel_info_del()
57 dst_release(&vlan->tinfo.tunnel_dst->dst); in vlan_tunnel_info_del()
58 vlan->tinfo.tunnel_dst = NULL; in vlan_tunnel_info_del()
62 struct net_bridge_vlan *vlan, u32 tun_id) in __vlan_tunnel_info_add() argument
68 if (vlan->tinfo.tunnel_dst) in __vlan_tunnel_info_add()
77 vlan->tinfo.tunnel_dst = metadata; in __vlan_tunnel_info_add()
[all …]
/kernel/linux/linux-5.10/net/bridge/
Dbr_vlan_tunnel.c3 * 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 …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-4.19/net/8021q/
Dvlan_dev.c2 * INET 802.1Q VLAN
7 * VLAN Home Page: http://www.candelatech.com/~greear/vlan.html
14 * - Flush MC-list on VLAN destroy.
36 #include "vlan.h"
42 * Create the VLAN header for an arbitrary protocol layer
55 struct vlan_dev_priv *vlan = vlan_dev_priv(dev); in vlan_dev_hard_header() local
61 if (!(vlan->flags & VLAN_FLAG_REORDER_HDR)) { in vlan_dev_hard_header()
64 vlan_tci = vlan->vlan_id; in vlan_dev_hard_header()
77 skb->protocol = vlan->vlan_proto; in vlan_dev_hard_header()
78 type = ntohs(vlan->vlan_proto); in vlan_dev_hard_header()
[all …]
Dvlan_netlink.c2 * VLAN netlink control interface
18 #include "vlan.h"
61 NL_SET_ERR_MSG_MOD(extack, "VLAN properties not specified"); in vlan_validate()
71 NL_SET_ERR_MSG_MOD(extack, "Invalid VLAN protocol"); in vlan_validate()
79 NL_SET_ERR_MSG_MOD(extack, "Invalid VLAN id"); in vlan_validate()
88 NL_SET_ERR_MSG_MOD(extack, "Invalid VLAN flags"); in vlan_validate()
142 struct vlan_dev_priv *vlan = vlan_dev_priv(dev); in vlan_newlink() local
149 NL_SET_ERR_MSG_MOD(extack, "VLAN id not specified"); in vlan_newlink()
169 vlan->vlan_proto = proto; in vlan_newlink()
170 vlan->vlan_id = nla_get_u16(data[IFLA_VLAN_ID]); in vlan_newlink()
[all …]
Dvlan.c2 * INET 802.1Q VLAN
7 * VLAN Home Page: http://www.candelatech.com/~greear/vlan.html
13 * Use hash table for VLAN groups - David S. Miller <davem@redhat.com>
40 #include "vlan.h"
45 /* Global VLAN variables */
49 const char vlan_fullname[] = "802.1Q VLAN Support";
80 struct vlan_dev_priv *vlan = vlan_dev_priv(dev); in unregister_vlan_dev() local
81 struct net_device *real_dev = vlan->real_dev; in unregister_vlan_dev()
84 u16 vlan_id = vlan->vlan_id; in unregister_vlan_dev()
95 if (vlan->flags & VLAN_FLAG_MVRP) in unregister_vlan_dev()
[all …]
Dvlanproc.c2 * vlanproc.c VLAN Module. /proc filesystem interface.
34 #include "vlan.h"
54 static const char name_root[] = "vlan";
59 * VLAN creates its own directory /proc/net/vlan with the following
66 * Generic /proc/net/vlan/<file> file and inode operations
92 * Clean up /proc/net/vlan entries
111 * Create /proc/net/vlan entries
136 * Add directory entry for VLAN device.
141 struct vlan_dev_priv *vlan = vlan_dev_priv(vlandev); in vlan_proc_add_dev() local
146 vlan->dent = proc_create_single_data(vlandev->name, S_IFREG | 0600, in vlan_proc_add_dev()
[all …]
/kernel/linux/linux-4.19/include/linux/
Dif_vlan.h2 * VLAN An implementation of 802.1Q VLAN tagging.
21 #define VLAN_HLEN 4 /* The additional bytes required by VLAN
33 #define VLAN_MAX_DEPTH 8 /* Max. number of nested VLAN tags parsed */
36 * struct vlan_hdr - vlan header
37 * @h_vlan_TCI: priority and VLAN ID
46 * struct vlan_ethhdr - vlan ethernet header (ethhdr + vlan_hdr)
50 * @h_vlan_TCI: priority and VLAN ID
72 #define VLAN_VID_MASK 0x0fff /* VLAN Identifier */
113 * struct vlan_pcpu_stats - VLAN percpu rx/tx stats
143 * struct vlan_priority_tci_mapping - vlan egress priority mappings
[all …]
/kernel/linux/linux-4.19/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 …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-4.19/drivers/scsi/qedf/
Dqedf_fip.c15 * FIP VLAN functions that will eventually move to libfcoe.
23 struct fip_vlan *vlan; in qedf_fcoe_send_vlan_req() local
32 fr_len = sizeof(*vlan); in qedf_fcoe_send_vlan_req()
34 vlan = (struct fip_vlan *)eth_fr; in qedf_fcoe_send_vlan_req()
36 memset(vlan, 0, sizeof(*vlan)); in qedf_fcoe_send_vlan_req()
37 ether_addr_copy(vlan->eth.h_source, qedf->mac); in qedf_fcoe_send_vlan_req()
38 ether_addr_copy(vlan->eth.h_dest, my_fcoe_all_fcfs); in qedf_fcoe_send_vlan_req()
39 vlan->eth.h_proto = htons(ETH_P_FIP); in qedf_fcoe_send_vlan_req()
41 vlan->fip.fip_ver = FIP_VER_ENCAPS(FIP_VER); in qedf_fcoe_send_vlan_req()
42 vlan->fip.fip_op = htons(FIP_OP_VLAN); in qedf_fcoe_send_vlan_req()
[all …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-4.19/net/batman-adv/
Dsoft-interface.c142 struct batadv_softif_vlan *vlan; in batadv_interface_set_mac_addr() local
157 hlist_for_each_entry_rcu(vlan, &bat_priv->softif_vlan_list, list) { in batadv_interface_set_mac_addr()
158 batadv_tt_local_remove(bat_priv, old_addr, vlan->vid, in batadv_interface_set_mac_addr()
160 batadv_tt_local_add(dev, addr->sa_data, vlan->vid, in batadv_interface_set_mac_addr()
510 * batadv_softif_vlan_release() - release vlan from lists and queue for free
512 * @ref: kref pointer of the vlan object
516 struct batadv_softif_vlan *vlan; in batadv_softif_vlan_release() local
518 vlan = container_of(ref, struct batadv_softif_vlan, refcount); in batadv_softif_vlan_release()
520 spin_lock_bh(&vlan->bat_priv->softif_vlan_list_lock); in batadv_softif_vlan_release()
521 hlist_del_rcu(&vlan->list); in batadv_softif_vlan_release()
[all …]

12345678910>>...65