Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/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 strncpy(result, vlan_dev_priv(dev)->real_dev->name, 23); in vlan_dev_get_realdev_name()
248 struct net_device *real_dev) in vlan_dev_inherit_address() argument
253 ether_addr_copy(dev->dev_addr, 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.c89 struct net_device *real_dev = vlan->real_dev; in unregister_vlan_dev() local
96 vlan_info = rtnl_dereference(real_dev->vlan_info); in unregister_vlan_dev()
110 netdev_upper_dev_unlink(real_dev, dev); in unregister_vlan_dev()
118 vlan_mvrp_uninit_applicant(real_dev); in unregister_vlan_dev()
119 vlan_gvrp_uninit_applicant(real_dev); in unregister_vlan_dev()
122 vlan_vid_del(real_dev, vlan->vlan_proto, vlan_id); in unregister_vlan_dev()
125 int vlan_check_real_dev(struct net_device *real_dev, in vlan_check_real_dev() argument
129 const char *name = real_dev->name; in vlan_check_real_dev()
131 if (real_dev->features & NETIF_F_VLAN_CHALLENGED) { in vlan_check_real_dev()
137 if (vlan_find_dev(real_dev, protocol, vlan_id) != NULL) { in vlan_check_real_dev()
[all …]
Dvlan_netlink.c141 struct net_device *real_dev; in vlan_newlink() local
156 real_dev = __dev_get_by_index(src_net, nla_get_u32(tb[IFLA_LINK])); in vlan_newlink()
157 if (!real_dev) { in vlan_newlink()
169 vlan->real_dev = real_dev; in vlan_newlink()
170 dev->priv_flags |= (real_dev->priv_flags & IFF_XMIT_DST_RELEASE); in vlan_newlink()
173 err = vlan_check_real_dev(real_dev, vlan->vlan_proto, vlan->vlan_id, in vlan_newlink()
178 max_mtu = netif_reduces_vlan_mtu(real_dev) ? real_dev->mtu - VLAN_HLEN : in vlan_newlink()
179 real_dev->mtu; in vlan_newlink()
277 struct net_device *real_dev = vlan_dev_priv(dev)->real_dev; in vlan_get_link_net() local
279 return dev_net(real_dev); in vlan_get_link_net()
Dvlan.h30 struct net_device *real_dev; /* The ethernet(like) device member
90 static inline struct net_device *vlan_find_dev(struct net_device *real_dev, in vlan_find_dev() argument
93 struct vlan_info *vlan_info = rcu_dereference_rtnl(real_dev->vlan_info); in vlan_find_dev()
102 static inline netdev_features_t vlan_tnl_features(struct net_device *real_dev) in vlan_tnl_features() argument
106 ret = real_dev->hw_enc_features & in vlan_tnl_features()
130 int vlan_check_real_dev(struct net_device *real_dev,
138 struct net_device *real_dev);
Dvlan_core.c103 struct net_device *ret = vlan_dev_priv(dev)->real_dev; in vlan_dev_real_dev()
106 ret = vlan_dev_priv(ret)->real_dev; in vlan_dev_real_dev()
156 vlan_info->real_dev = dev; in vlan_info_alloc()
255 struct net_device *real_dev = vlan_info->real_dev; in vlan_filter_push_vids() local
261 err = vlan_add_rx_filter_info(real_dev, proto, in vlan_filter_push_vids()
274 vlan_kill_rx_filter_info(real_dev, proto, in vlan_filter_push_vids()
288 vlan_kill_rx_filter_info(vlan_info->real_dev, in vlan_filter_drop_vids()
297 struct net_device *dev = vlan_info->real_dev; in __vlan_vid_add()
356 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()
/kernel/linux/linux-5.10/drivers/net/ethernet/qualcomm/rmnet/
Drmnet_config.c23 static int rmnet_is_real_dev_registered(const struct net_device *real_dev) in rmnet_is_real_dev_registered() argument
25 return rcu_access_pointer(real_dev->rx_handler) == rmnet_rx_handler; in rmnet_is_real_dev_registered()
30 rmnet_get_port_rtnl(const struct net_device *real_dev) in rmnet_get_port_rtnl() argument
32 return rtnl_dereference(real_dev->rx_handler_data); in rmnet_get_port_rtnl()
35 static int rmnet_unregister_real_device(struct net_device *real_dev) in rmnet_unregister_real_device() argument
37 struct rmnet_port *port = rmnet_get_port_rtnl(real_dev); in rmnet_unregister_real_device()
42 netdev_rx_handler_unregister(real_dev); in rmnet_unregister_real_device()
46 netdev_dbg(real_dev, "Removed from rmnet\n"); in rmnet_unregister_real_device()
50 static int rmnet_register_real_device(struct net_device *real_dev, in rmnet_register_real_device() argument
58 if (rmnet_is_real_dev_registered(real_dev)) { in rmnet_register_real_device()
[all …]
Drmnet_vnd.c52 if (priv->real_dev) { in rmnet_vnd_start_xmit()
79 port = rmnet_get_port_rtnl(priv->real_dev); in rmnet_vnd_change_mtu()
84 new_mtu > (priv->real_dev->mtu - headroom)) in rmnet_vnd_change_mtu()
95 return priv->real_dev->ifindex; in rmnet_vnd_get_iflink()
247 struct net_device *real_dev, in rmnet_vnd_newlink() argument
265 priv->real_dev = real_dev; in rmnet_vnd_newlink()
269 if (rmnet_vnd_change_mtu(rmnet_dev, real_dev->mtu - headroom)) { in rmnet_vnd_newlink()
316 int rmnet_vnd_validate_real_dev_mtu(struct net_device *real_dev) in rmnet_vnd_validate_real_dev_mtu() argument
324 port = rmnet_get_port_rtnl(real_dev); in rmnet_vnd_validate_real_dev_mtu()
329 if (ep->egress_dev->mtu > (real_dev->mtu - headroom)) in rmnet_vnd_validate_real_dev_mtu()
[all …]
Drmnet_vnd.h13 struct net_device *real_dev,
21 int rmnet_vnd_validate_real_dev_mtu(struct net_device *real_dev);
23 struct net_device *real_dev);
Drmnet_config.h63 struct net_device *real_dev; member
69 struct rmnet_port *rmnet_get_port_rcu(struct net_device *real_dev);
77 rmnet_get_port_rtnl(const struct net_device *real_dev);
/kernel/linux/linux-5.10/drivers/net/
Dmacsec.c108 struct net_device *real_dev; member
343 if (!macsec || !macsec->real_dev) in macsec_check_offload()
347 return macsec->real_dev->phydev && in macsec_check_offload()
348 macsec->real_dev->phydev->macsec_ops; in macsec_check_offload()
350 return macsec->real_dev->features & NETIF_F_HW_MACSEC && in macsec_check_offload()
351 macsec->real_dev->macsec_ops; in macsec_check_offload()
365 ctx->phydev = macsec->real_dev->phydev; in __macsec_get_ops()
367 ctx->netdev = macsec->real_dev; in __macsec_get_ops()
371 return macsec->real_dev->phydev->macsec_ops; in __macsec_get_ops()
373 return macsec->real_dev->macsec_ops; in __macsec_get_ops()
[all …]
Dmacvlan.c833 struct net_device *real_dev = macvlan_dev_real_dev(dev); in macvlan_do_ioctl() local
834 const struct net_device_ops *ops = real_dev->netdev_ops; in macvlan_do_ioctl()
838 strscpy(ifrr.ifr_name, real_dev->name, IFNAMSIZ); in macvlan_do_ioctl()
847 if (netif_device_present(real_dev) && ops->ndo_do_ioctl) in macvlan_do_ioctl()
848 err = ops->ndo_do_ioctl(real_dev, &ifrr, cmd); in macvlan_do_ioctl()
1052 struct net_device *real_dev = macvlan_dev_real_dev(dev); in macvlan_ethtool_get_ts_info() local
1053 const struct ethtool_ops *ops = real_dev->ethtool_ops; in macvlan_ethtool_get_ts_info()
1054 struct phy_device *phydev = real_dev->phydev; in macvlan_ethtool_get_ts_info()
1059 return ops->get_ts_info(real_dev, info); in macvlan_ethtool_get_ts_info()
1097 struct net_device *real_dev = vlan->lowerdev; in macvlan_dev_netpoll_setup() local
[all …]
/kernel/linux/linux-5.10/drivers/net/usb/
Dqmi_wwan.c73 struct net_device *real_dev; member
81 struct net_device *real_dev = priv->real_dev; in qmimux_open() local
83 if (!(priv->real_dev->flags & IFF_UP)) in qmimux_open()
86 if (netif_carrier_ok(real_dev)) in qmimux_open()
108 skb->dev = priv->real_dev; in qmimux_start_xmit()
243 static int qmimux_register_device(struct net_device *real_dev, u8 mux_id) in qmimux_register_device() argument
254 dev_net_set(new_dev, dev_net(real_dev)); in qmimux_register_device()
257 priv->real_dev = real_dev; in qmimux_register_device()
270 dev_hold(real_dev); in qmimux_register_device()
272 err = netdev_upper_dev_link(real_dev, new_dev, NULL); in qmimux_register_device()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/core/
Droce_gid_mgmt.c150 struct net_device *real_dev; in is_eth_port_of_netdev_filter() local
157 real_dev = rdma_vlan_dev_real_dev(cookie); in is_eth_port_of_netdev_filter()
158 if (!real_dev) in is_eth_port_of_netdev_filter()
159 real_dev = cookie; in is_eth_port_of_netdev_filter()
162 (is_eth_active_slave_of_bonding_rcu(rdma_ndev, real_dev) & in is_eth_port_of_netdev_filter()
164 real_dev == rdma_ndev); in is_eth_port_of_netdev_filter()
301 struct net_device *real_dev = rdma_vlan_dev_real_dev(event_ndev); in bond_delete_netdev_default_gids() local
307 if (!real_dev) in bond_delete_netdev_default_gids()
308 real_dev = event_ndev; in bond_delete_netdev_default_gids()
314 is_eth_active_slave_of_bonding_rcu(rdma_ndev, real_dev) in bond_delete_netdev_default_gids()
/kernel/linux/linux-5.10/drivers/net/netdevsim/
Dipsec.c88 struct net_device *dev = xs->xso.real_dev; in nsim_ipsec_parse_proto_keys()
137 dev = xs->xso.real_dev; in nsim_ipsec_add_sa()
197 struct netdevsim *ns = netdev_priv(xs->xso.real_dev); in nsim_ipsec_del_sa()
214 struct netdevsim *ns = netdev_priv(xs->xso.real_dev); in nsim_ipsec_offload_ok()
/kernel/linux/linux-5.10/drivers/hwtracing/coresight/
Dcoresight-tmc-etr.c165 struct device *real_dev = dev->parent; in tmc_pages_free() local
169 dma_unmap_page(real_dev, tmc_pages->daddrs[i], in tmc_pages_free()
197 struct device *real_dev = dev->parent; in tmc_pages_alloc() local
223 paddr = dma_map_page(real_dev, page, 0, PAGE_SIZE, dir); in tmc_pages_alloc()
224 if (dma_mapping_error(real_dev, paddr)) in tmc_pages_alloc()
357 struct device *real_dev = table->dev->parent; in tmc_sg_table_sync_data_range() local
363 dma_sync_single_for_cpu(real_dev, data->daddrs[index], in tmc_sg_table_sync_data_range()
373 struct device *real_dev = sg_table->dev->parent; in tmc_sg_table_sync_table() local
377 dma_sync_single_for_device(real_dev, table_pages->daddrs[i], in tmc_sg_table_sync_table()
602 struct device *real_dev = drvdata->csdev->dev.parent; in tmc_etr_alloc_flat_buf() local
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/microchip/wilc1000/
Dmon.c219 struct net_device *real_dev) in wilc_wfi_init_mon_interface() argument
237 netdev_err(real_dev, "register_netdevice failed\n"); in wilc_wfi_init_mon_interface()
243 priv->real_ndev = real_dev; in wilc_wfi_init_mon_interface()
Dcfg80211.h23 struct net_device *real_dev);
/kernel/linux/linux-5.10/include/linux/
Dif_vlan.h131 extern struct net_device *__vlan_find_dev_deep_rcu(struct net_device *real_dev,
179 struct net_device *real_dev; member
227 __vlan_find_dev_deep_rcu(struct net_device *real_dev, in __vlan_find_dev_deep_rcu() argument
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun.c33 struct net_device *uplink_dev, *uplink_upper, *real_dev; in get_route_and_out_devs() local
37 real_dev = is_vlan_dev(dev) ? vlan_dev_real_dev(dev) : dev; in get_route_and_out_devs()
52 real_dev == uplink_upper && in get_route_and_out_devs()
61 if (!netdev_port_same_parent_id(priv->netdev, real_dev) || in get_route_and_out_devs()
/kernel/linux/linux-5.10/drivers/infiniband/hw/bnxt_re/
Dmain.c1702 struct net_device *real_dev, *netdev = netdev_notifier_info_to_dev(ptr); in bnxt_re_netdev_event() local
1709 real_dev = rdma_vlan_dev_real_dev(netdev); in bnxt_re_netdev_event()
1710 if (!real_dev) in bnxt_re_netdev_event()
1711 real_dev = netdev; in bnxt_re_netdev_event()
1713 rdev = bnxt_re_from_netdev(real_dev); in bnxt_re_netdev_event()
1717 if (real_dev != netdev) in bnxt_re_netdev_event()
1724 rc = bnxt_re_add_device(&rdev, real_dev, in bnxt_re_netdev_event()
1746 re_work->vlan_dev = (real_dev == netdev ? in bnxt_re_netdev_event()
/kernel/linux/linux-5.10/drivers/scsi/fcoe/
Dfcoe.c295 struct net_device *real_dev; in fcoe_interface_setup() local
317 real_dev = is_vlan_dev(netdev) ? vlan_dev_real_dev(netdev) : netdev; in fcoe_interface_setup()
318 fcoe->realdev = real_dev; in fcoe_interface_setup()
320 for_each_dev_addr(real_dev, ha) { in fcoe_interface_setup()
363 if (netdev != real_dev) { in fcoe_interface_setup()
366 fcoe->fip_vlan_packet_type.dev = real_dev; in fcoe_interface_setup()
1778 struct net_device *real_dev; in fcoe_hostlist_lookup_realdev_port() local
1782 real_dev = vlan_dev_real_dev(fcoe->netdev); in fcoe_hostlist_lookup_realdev_port()
1784 real_dev = fcoe->netdev; in fcoe_hostlist_lookup_realdev_port()
1786 if (netdev == real_dev) in fcoe_hostlist_lookup_realdev_port()

12