Home
last modified time | relevance | path

Searched refs:vlandev (Results 1 – 5 of 5) sorted by relevance

/linux-6.12.1/net/8021q/
Dvlan.c289 struct net_device *vlandev) in vlan_sync_address() argument
291 struct vlan_dev_priv *vlan = vlan_dev_priv(vlandev); in vlan_sync_address()
298 if (vlan_dev_inherit_address(vlandev, dev)) in vlan_sync_address()
303 if (!ether_addr_equal(vlandev->dev_addr, vlan->real_dev_addr) && in vlan_sync_address()
304 ether_addr_equal(vlandev->dev_addr, dev->dev_addr)) in vlan_sync_address()
305 dev_uc_del(dev, vlandev->dev_addr); in vlan_sync_address()
309 if (ether_addr_equal(vlandev->dev_addr, vlan->real_dev_addr) && in vlan_sync_address()
310 !ether_addr_equal(vlandev->dev_addr, dev->dev_addr)) in vlan_sync_address()
311 dev_uc_add(dev, vlandev->dev_addr); in vlan_sync_address()
318 struct net_device *vlandev) in vlan_transfer_features() argument
[all …]
Dvlanproc.c136 int vlan_proc_add_dev(struct net_device *vlandev) in vlan_proc_add_dev() argument
138 struct vlan_dev_priv *vlan = vlan_dev_priv(vlandev); in vlan_proc_add_dev()
139 struct vlan_net *vn = net_generic(dev_net(vlandev), vlan_net_id); in vlan_proc_add_dev()
141 if (!strcmp(vlandev->name, name_conf)) in vlan_proc_add_dev()
143 vlan->dent = proc_create_single_data(vlandev->name, S_IFREG | 0600, in vlan_proc_add_dev()
144 vn->proc_vlan_dir, vlandev_seq_show, vlandev); in vlan_proc_add_dev()
153 void vlan_proc_rem_dev(struct net_device *vlandev) in vlan_proc_rem_dev() argument
156 proc_remove(vlan_dev_priv(vlandev)->dent); in vlan_proc_rem_dev()
157 vlan_dev_priv(vlandev)->dent = NULL; in vlan_proc_rem_dev()
218 const struct net_device *vlandev = v; in vlan_seq_show() local
[all …]
Dvlanproc.h9 void vlan_proc_rem_dev(struct net_device *vlandev);
10 int vlan_proc_add_dev(struct net_device *vlandev);
/linux-6.12.1/net/bridge/
Dbr_arp_nd_proxy.c129 struct net_device *vlandev = dev; in br_do_proxy_suppress_arp() local
176 vlandev = __vlan_find_dev_deep_rcu(br->dev, skb->vlan_proto, in br_do_proxy_suppress_arp()
178 if (!vlandev) in br_do_proxy_suppress_arp()
183 br_is_local_ip(vlandev, tip)) { in br_do_proxy_suppress_arp()
191 n = neigh_lookup(&arp_tbl, &tip, vlandev); in br_do_proxy_suppress_arp()
403 struct net_device *vlandev = NULL; in br_do_suppress_nd() local
435 vlandev = __vlan_find_dev_deep_rcu(br->dev, skb->vlan_proto, in br_do_suppress_nd()
437 if (!vlandev) in br_do_suppress_nd()
440 vlandev = dev; in br_do_suppress_nd()
443 if (br_is_local_ip6(vlandev, &msg->target)) { in br_do_suppress_nd()
[all …]
/linux-6.12.1/tools/testing/selftests/net/
Drtnetlink.sh162 vlandev="testbr-vlan1"
168 run_cmd ip link add link "$devbr" name "$vlandev" type vlan id 1
169 run_cmd ip addr add dev "$vlandev" 10.200.7.23/30
170 run_cmd ip -6 addr add dev "$vlandev" dead:42::1234/64
174 for name in "$devbr" "$vlandev" "$devdummy" ; do
177 run_cmd ip -6 addr del dev "$vlandev" dead:42::1234/64
178 run_cmd ip link del dev "$vlandev"