Lines Matching full:peer

33 	struct net_device __rcu	*peer;  member
39 struct net_device *peer; in vxcan_xmit() local
47 peer = rcu_dereference(priv->peer); in vxcan_xmit()
48 if (unlikely(!peer)) { in vxcan_xmit()
61 skb->dev = peer; in vxcan_xmit()
67 peerstats = &peer->stats; in vxcan_xmit()
81 struct net_device *peer = rtnl_dereference(priv->peer); in vxcan_open() local
83 if (!peer) in vxcan_open()
86 if (peer->flags & IFF_UP) { in vxcan_open()
88 netif_carrier_on(peer); in vxcan_open()
96 struct net_device *peer = rtnl_dereference(priv->peer); in vxcan_close() local
99 if (peer) in vxcan_close()
100 netif_carrier_off(peer); in vxcan_close()
108 struct net_device *peer; in vxcan_get_iflink() local
112 peer = rcu_dereference(priv->peer); in vxcan_get_iflink()
113 iflink = peer ? peer->ifindex : 0; in vxcan_get_iflink()
161 struct net_device *peer; in vxcan_newlink() local
170 /* register peer device */ in vxcan_newlink()
200 peer = rtnl_create_link(peer_net, ifname, name_assign_type, in vxcan_newlink()
202 if (IS_ERR(peer)) { in vxcan_newlink()
204 return PTR_ERR(peer); in vxcan_newlink()
208 peer->ifindex = ifmp->ifi_index; in vxcan_newlink()
210 err = register_netdevice(peer); in vxcan_newlink()
214 free_netdev(peer); in vxcan_newlink()
218 netif_carrier_off(peer); in vxcan_newlink()
220 err = rtnl_configure_link(peer, ifmp); in vxcan_newlink()
238 rcu_assign_pointer(priv->peer, peer); in vxcan_newlink()
240 priv = netdev_priv(peer); in vxcan_newlink()
241 rcu_assign_pointer(priv->peer, dev); in vxcan_newlink()
246 unregister_netdevice(peer); in vxcan_newlink()
253 struct net_device *peer; in vxcan_dellink() local
256 peer = rtnl_dereference(priv->peer); in vxcan_dellink()
262 RCU_INIT_POINTER(priv->peer, NULL); in vxcan_dellink()
265 if (peer) { in vxcan_dellink()
266 priv = netdev_priv(peer); in vxcan_dellink()
267 RCU_INIT_POINTER(priv->peer, NULL); in vxcan_dellink()
268 unregister_netdevice_queue(peer, head); in vxcan_dellink()
279 struct net_device *peer = rtnl_dereference(priv->peer); in vxcan_get_link_net() local
281 return peer ? dev_net(peer) : dev_net(dev); in vxcan_get_link_net()