Home
last modified time | relevance | path

Searched refs:real_dev (Results 1 – 9 of 9) sorted by relevance

/net/8021q/
Dvlan_dev.c81 dev = vlan->real_dev; in vlan_dev_hard_header()
119 skb->dev = vlan->real_dev; in vlan_dev_hard_start_xmit()
143 struct net_device *real_dev = vlan_dev_priv(dev)->real_dev; in vlan_dev_change_mtu() local
144 unsigned int max_mtu = real_dev->mtu; in vlan_dev_change_mtu()
146 if (netif_reduces_vlan_mtu(real_dev)) in vlan_dev_change_mtu()
244 strscpy_pad(result, vlan_dev_priv(dev)->real_dev->name, size); in vlan_dev_get_realdev_name()
248 struct net_device *real_dev) in vlan_dev_inherit_address() argument
253 eth_hw_addr_set(dev, real_dev->dev_addr); in vlan_dev_inherit_address()
261 struct net_device *real_dev = vlan->real_dev; in vlan_dev_open() local
264 if (!(real_dev->flags & IFF_UP) && in vlan_dev_open()
[all …]
Dvlan.c92 struct net_device *real_dev = vlan->real_dev; in unregister_vlan_dev() local
99 vlan_info = rtnl_dereference(real_dev->vlan_info); in unregister_vlan_dev()
113 netdev_upper_dev_unlink(real_dev, dev); in unregister_vlan_dev()
121 vlan_mvrp_uninit_applicant(real_dev); in unregister_vlan_dev()
122 vlan_gvrp_uninit_applicant(real_dev); in unregister_vlan_dev()
125 vlan_vid_del(real_dev, vlan->vlan_proto, vlan_id); in unregister_vlan_dev()
128 int vlan_check_real_dev(struct net_device *real_dev, in vlan_check_real_dev() argument
132 const char *name = real_dev->name; in vlan_check_real_dev()
134 if (real_dev->features & NETIF_F_VLAN_CHALLENGED) { in vlan_check_real_dev()
140 if (vlan_find_dev(real_dev, protocol, vlan_id) != NULL) { in vlan_check_real_dev()
[all …]
Dvlan_netlink.c145 struct net_device *real_dev; in vlan_newlink() local
160 real_dev = __dev_get_by_index(src_net, nla_get_u32(tb[IFLA_LINK])); in vlan_newlink()
161 if (!real_dev) { in vlan_newlink()
173 vlan->real_dev = real_dev; in vlan_newlink()
174 dev->priv_flags |= (real_dev->priv_flags & IFF_XMIT_DST_RELEASE); in vlan_newlink()
177 err = vlan_check_real_dev(real_dev, vlan->vlan_proto, vlan->vlan_id, in vlan_newlink()
182 max_mtu = netif_reduces_vlan_mtu(real_dev) ? real_dev->mtu - VLAN_HLEN : in vlan_newlink()
183 real_dev->mtu; in vlan_newlink()
282 struct net_device *real_dev = vlan_dev_priv(dev)->real_dev; in vlan_get_link_net() local
284 return dev_net(real_dev); in vlan_get_link_net()
Dvlan.h30 struct net_device *real_dev; /* The ethernet(like) device member
94 static inline struct net_device *vlan_find_dev(struct net_device *real_dev, in vlan_find_dev() argument
97 struct vlan_info *vlan_info = rcu_dereference_rtnl(real_dev->vlan_info); in vlan_find_dev()
106 static inline netdev_features_t vlan_tnl_features(struct net_device *real_dev) in vlan_tnl_features() argument
110 ret = real_dev->hw_enc_features & in vlan_tnl_features()
137 int vlan_check_real_dev(struct net_device *real_dev,
144 struct net_device *real_dev);
Dvlan_core.c104 struct net_device *ret = vlan_dev_priv(dev)->real_dev; in vlan_dev_real_dev()
107 ret = vlan_dev_priv(ret)->real_dev; in vlan_dev_real_dev()
157 vlan_info->real_dev = dev; in vlan_info_alloc()
256 struct net_device *real_dev = vlan_info->real_dev; in vlan_filter_push_vids() local
262 err = vlan_add_rx_filter_info(real_dev, proto, in vlan_filter_push_vids()
275 vlan_kill_rx_filter_info(real_dev, proto, in vlan_filter_push_vids()
289 vlan_kill_rx_filter_info(vlan_info->real_dev, in vlan_filter_drop_vids()
298 struct net_device *dev = vlan_info->real_dev; in __vlan_vid_add()
357 struct net_device *dev = vlan_info->real_dev; in __vlan_vid_del()
Dvlan_gvrp.c34 return garp_request_join(vlan->real_dev, &vlan_gvrp_app, in vlan_gvrp_request_join()
45 garp_request_leave(vlan->real_dev, &vlan_gvrp_app, in vlan_gvrp_request_leave()
Dvlan_mvrp.c40 return mrp_request_join(vlan->real_dev, &vlan_mrp_app, in vlan_mvrp_request_join()
51 mrp_request_leave(vlan->real_dev, &vlan_mrp_app, in vlan_mvrp_request_leave()
Dvlanproc.c236 vlan->vlan_id, vlan->real_dev->name); in vlan_seq_show()
265 seq_printf(seq, "Device: %s", vlan->real_dev->name); in vlandev_seq_show()
/net/xfrm/
Dxfrm_device.c136 if ((x->xso.dev != dev) && (x->xso.real_dev == dev)) in validate_xmit_xfrm()
278 xso->real_dev = dev; in xfrm_dev_state_add()
288 xso->real_dev = NULL; in xfrm_dev_state_add()