/Linux-v5.4/net/8021q/ |
D | vlan_dev.c | 81 dev = vlan->real_dev; in vlan_dev_hard_header() 120 skb->dev = vlan->real_dev; in vlan_dev_hard_start_xmit() 144 struct net_device *real_dev = vlan_dev_priv(dev)->real_dev; in vlan_dev_change_mtu() local 145 unsigned int max_mtu = real_dev->mtu; in vlan_dev_change_mtu() 147 if (netif_reduces_vlan_mtu(real_dev)) in vlan_dev_change_mtu() 245 strncpy(result, vlan_dev_priv(dev)->real_dev->name, 23); in vlan_dev_get_realdev_name() 249 struct net_device *real_dev) in vlan_dev_inherit_address() argument 254 ether_addr_copy(dev->dev_addr, real_dev->dev_addr); in vlan_dev_inherit_address() 262 struct net_device *real_dev = vlan->real_dev; in vlan_dev_open() local 265 if (!(real_dev->flags & IFF_UP) && in vlan_dev_open() [all …]
|
D | vlan.c | 85 struct net_device *real_dev = vlan->real_dev; in unregister_vlan_dev() local 92 vlan_info = rtnl_dereference(real_dev->vlan_info); in unregister_vlan_dev() 106 netdev_upper_dev_unlink(real_dev, dev); in unregister_vlan_dev() 114 vlan_mvrp_uninit_applicant(real_dev); in unregister_vlan_dev() 115 vlan_gvrp_uninit_applicant(real_dev); in unregister_vlan_dev() 118 vlan_vid_del(real_dev, vlan->vlan_proto, vlan_id); in unregister_vlan_dev() 121 dev_put(real_dev); in unregister_vlan_dev() 124 int vlan_check_real_dev(struct net_device *real_dev, in vlan_check_real_dev() argument 128 const char *name = real_dev->name; in vlan_check_real_dev() 130 if (real_dev->features & NETIF_F_VLAN_CHALLENGED) { in vlan_check_real_dev() [all …]
|
D | vlan_netlink.c | 137 struct net_device *real_dev; in vlan_newlink() local 152 real_dev = __dev_get_by_index(src_net, nla_get_u32(tb[IFLA_LINK])); in vlan_newlink() 153 if (!real_dev) { in vlan_newlink() 165 vlan->real_dev = real_dev; in vlan_newlink() 166 dev->priv_flags |= (real_dev->priv_flags & IFF_XMIT_DST_RELEASE); in vlan_newlink() 169 err = vlan_check_real_dev(real_dev, vlan->vlan_proto, vlan->vlan_id, in vlan_newlink() 174 max_mtu = netif_reduces_vlan_mtu(real_dev) ? real_dev->mtu - VLAN_HLEN : in vlan_newlink() 175 real_dev->mtu; in vlan_newlink() 272 struct net_device *real_dev = vlan_dev_priv(dev)->real_dev; in vlan_get_link_net() local 274 return dev_net(real_dev); in vlan_get_link_net()
|
D | vlan.h | 30 struct net_device *real_dev; /* The ethernet(like) device member 83 static inline struct net_device *vlan_find_dev(struct net_device *real_dev, in vlan_find_dev() argument 86 struct vlan_info *vlan_info = rcu_dereference_rtnl(real_dev->vlan_info); in vlan_find_dev() 95 static inline netdev_features_t vlan_tnl_features(struct net_device *real_dev) in vlan_tnl_features() argument 99 ret = real_dev->hw_enc_features & in vlan_tnl_features() 123 int vlan_check_real_dev(struct net_device *real_dev, 130 struct net_device *real_dev);
|
D | vlan_core.c | 103 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()
|
D | vlan_gvrp.c | 34 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()
|
D | vlan_mvrp.c | 40 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()
|
D | vlanproc.c | 236 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()
|
/Linux-v5.4/drivers/net/ethernet/qualcomm/rmnet/ |
D | rmnet_config.c | 42 static int rmnet_is_real_dev_registered(const struct net_device *real_dev) in rmnet_is_real_dev_registered() argument 44 return rcu_access_pointer(real_dev->rx_handler) == rmnet_rx_handler; in rmnet_is_real_dev_registered() 49 rmnet_get_port_rtnl(const struct net_device *real_dev) in rmnet_get_port_rtnl() argument 51 return rtnl_dereference(real_dev->rx_handler_data); in rmnet_get_port_rtnl() 54 static int rmnet_unregister_real_device(struct net_device *real_dev, in rmnet_unregister_real_device() argument 60 netdev_rx_handler_unregister(real_dev); in rmnet_unregister_real_device() 65 dev_put(real_dev); in rmnet_unregister_real_device() 67 netdev_dbg(real_dev, "Removed from rmnet\n"); in rmnet_unregister_real_device() 71 static int rmnet_register_real_device(struct net_device *real_dev) in rmnet_register_real_device() argument 78 if (rmnet_is_real_dev_registered(real_dev)) in rmnet_register_real_device() [all …]
|
D | rmnet_vnd.c | 52 if (priv->real_dev) { in rmnet_vnd_start_xmit() 74 return priv->real_dev->ifindex; in rmnet_vnd_get_iflink() 224 struct net_device *real_dev, in rmnet_vnd_newlink() argument 240 priv->real_dev = real_dev; in rmnet_vnd_newlink()
|
D | rmnet_config.h | 62 struct net_device *real_dev; member 68 struct rmnet_port *rmnet_get_port(struct net_device *real_dev);
|
D | rmnet_vnd.h | 13 struct net_device *real_dev,
|
D | rmnet_handlers.c | 217 skb->dev = priv->real_dev; in rmnet_egress_handler()
|
/Linux-v5.4/drivers/net/ |
D | macsec.c | 266 struct net_device *real_dev; member 558 skb->dev = macsec->real_dev; in macsec_encrypt_finish() 713 if (skb->len - ETH_HLEN > macsec_priv(dev)->real_dev->mtu) { in macsec_encrypt() 1395 struct net_device *real_dev = macsec_priv(dev)->real_dev; in create_rx_sc() local 1396 struct macsec_rxh_data *rxd = macsec_data_rtnl(real_dev); in create_rx_sc() 2721 skb->dev = macsec->real_dev; in macsec_start_xmit() 2756 struct net_device *real_dev = macsec->real_dev; in macsec_dev_init() local 2769 dev->features = real_dev->features & MACSEC_FEATURES; in macsec_dev_init() 2772 dev->needed_headroom = real_dev->needed_headroom + in macsec_dev_init() 2774 dev->needed_tailroom = real_dev->needed_tailroom + in macsec_dev_init() [all …]
|
D | macvlan.c | 825 struct net_device *real_dev = macvlan_dev_real_dev(dev); in macvlan_do_ioctl() local 826 const struct net_device_ops *ops = real_dev->netdev_ops; in macvlan_do_ioctl() 830 strscpy(ifrr.ifr_name, real_dev->name, IFNAMSIZ); in macvlan_do_ioctl() 839 if (netif_device_present(real_dev) && ops->ndo_do_ioctl) in macvlan_do_ioctl() 840 err = ops->ndo_do_ioctl(real_dev, &ifrr, cmd); in macvlan_do_ioctl() 1034 struct net_device *real_dev = macvlan_dev_real_dev(dev); in macvlan_ethtool_get_ts_info() local 1035 const struct ethtool_ops *ops = real_dev->ethtool_ops; in macvlan_ethtool_get_ts_info() 1036 struct phy_device *phydev = real_dev->phydev; in macvlan_ethtool_get_ts_info() 1041 return ops->get_ts_info(real_dev, info); in macvlan_ethtool_get_ts_info() 1079 struct net_device *real_dev = vlan->lowerdev; in macvlan_dev_netpoll_setup() local [all …]
|
/Linux-v5.4/drivers/net/usb/ |
D | qmi_wwan.c | 74 struct net_device *real_dev; member 82 struct net_device *real_dev = priv->real_dev; in qmimux_open() local 84 if (!(priv->real_dev->flags & IFF_UP)) in qmimux_open() 87 if (netif_carrier_ok(real_dev)) in qmimux_open() 109 skb->dev = priv->real_dev; in qmimux_start_xmit() 266 static int qmimux_register_device(struct net_device *real_dev, u8 mux_id) in qmimux_register_device() argument 277 dev_net_set(new_dev, dev_net(real_dev)); in qmimux_register_device() 280 priv->real_dev = real_dev; in qmimux_register_device() 293 dev_hold(real_dev); in qmimux_register_device() 295 err = netdev_upper_dev_link(real_dev, new_dev, NULL); in qmimux_register_device() [all …]
|
/Linux-v5.4/drivers/infiniband/core/ |
D | roce_gid_mgmt.c | 150 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()
|
/Linux-v5.4/drivers/hwtracing/coresight/ |
D | coresight-tmc-etr.c | 165 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 221 paddr = dma_map_page(real_dev, page, 0, PAGE_SIZE, dir); in tmc_pages_alloc() 222 if (dma_mapping_error(real_dev, paddr)) in tmc_pages_alloc() 353 struct device *real_dev = table->dev->parent; in tmc_sg_table_sync_data_range() local 359 dma_sync_single_for_cpu(real_dev, data->daddrs[index], in tmc_sg_table_sync_data_range() 368 struct device *real_dev = sg_table->dev->parent; in tmc_sg_table_sync_table() local 372 dma_sync_single_for_device(real_dev, table_pages->daddrs[i], in tmc_sg_table_sync_table() 595 struct device *real_dev = drvdata->csdev->dev.parent; in tmc_etr_alloc_flat_buf() local [all …]
|
/Linux-v5.4/drivers/staging/wilc1000/ |
D | wilc_mon.c | 219 struct net_device *real_dev) in wilc_wfi_init_mon_interface() argument 238 netdev_err(real_dev, "register_netdevice failed\n"); in wilc_wfi_init_mon_interface() 245 priv->real_ndev = real_dev; in wilc_wfi_init_mon_interface()
|
D | wilc_wfi_cfgoperations.h | 23 struct net_device *real_dev);
|
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | tc_tun.c | 28 struct net_device *uplink_dev, *uplink_upper, *real_dev; in get_route_and_out_devs() local 32 real_dev = is_vlan_dev(dev) ? vlan_dev_real_dev(dev) : dev; in get_route_and_out_devs() 47 real_dev == uplink_upper && in get_route_and_out_devs() 56 if (!netdev_port_same_parent_id(priv->netdev, real_dev) || in get_route_and_out_devs()
|
/Linux-v5.4/include/linux/ |
D | if_vlan.h | 129 extern struct net_device *__vlan_find_dev_deep_rcu(struct net_device *real_dev, 177 struct net_device *real_dev; member 225 __vlan_find_dev_deep_rcu(struct net_device *real_dev, in __vlan_find_dev_deep_rcu() argument
|
/Linux-v5.4/drivers/infiniband/hw/bnxt_re/ |
D | main.c | 1611 struct net_device *real_dev, *netdev = netdev_notifier_info_to_dev(ptr); in bnxt_re_netdev_event() local 1617 real_dev = rdma_vlan_dev_real_dev(netdev); in bnxt_re_netdev_event() 1618 if (!real_dev) in bnxt_re_netdev_event() 1619 real_dev = netdev; in bnxt_re_netdev_event() 1621 rdev = bnxt_re_from_netdev(real_dev); in bnxt_re_netdev_event() 1624 if (real_dev != netdev) in bnxt_re_netdev_event() 1631 rc = bnxt_re_dev_reg(&rdev, real_dev); in bnxt_re_netdev_event() 1636 real_dev->name, rc); in bnxt_re_netdev_event() 1664 re_work->vlan_dev = (real_dev == netdev ? in bnxt_re_netdev_event()
|
/Linux-v5.4/drivers/scsi/fcoe/ |
D | fcoe.c | 295 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()
|
/Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_span.c | 509 struct net_device *real_dev; in mlxsw_sp_span_entry_vlan_parms() local 515 real_dev = mlxsw_sp_span_entry_vlan(to_dev, &vid); in mlxsw_sp_span_entry_vlan_parms() 516 sparmsp->dest_port = netdev_priv(real_dev); in mlxsw_sp_span_entry_vlan_parms()
|