Home
last modified time | relevance | path

Searched refs:netdev_ops (Results 1 – 25 of 67) sorted by relevance

123

/net/core/
Ddev_ioctl.c113 if (!dev->netdev_ops->ndo_set_config) in dev_setifmap()
126 return dev->netdev_ops->ndo_set_config(dev, &ifmap); in dev_setifmap()
129 return dev->netdev_ops->ndo_set_config(dev, &ifr->ifr_map); in dev_setifmap()
246 const struct net_device_ops *ops = dev->netdev_ops; in dev_eth_ioctl()
266 const struct net_device_ops *ops = dev->netdev_ops; in dev_siocbond()
281 const struct net_device_ops *ops = dev->netdev_ops; in dev_siocdevprivate()
295 const struct net_device_ops *ops = dev->netdev_ops; in dev_siocwandev()
320 ops = dev->netdev_ops; in dev_ifsioc()
Drtnetlink.c966 if (!dev->netdev_ops->ndo_get_vf_port || !dev->dev.parent || in rtnl_port_size()
1078 err = dev->netdev_ops->ndo_get_vf_port(dev, vf, skb); in rtnl_vf_ports_fill()
1106 err = dev->netdev_ops->ndo_get_vf_port(dev, PORT_SELF_VF, skb); in rtnl_port_self_fill()
1122 if (!dev->netdev_ops->ndo_get_vf_port || !dev->dev.parent || in rtnl_port_fill()
1255 if (dev->netdev_ops->ndo_get_vf_config(dev, vfs_num, &ivi)) in rtnl_fill_vfinfo()
1309 if (dev->netdev_ops->ndo_get_vf_guid && in rtnl_fill_vfinfo()
1310 !dev->netdev_ops->ndo_get_vf_guid(dev, vfs_num, &node_guid, in rtnl_fill_vfinfo()
1329 if (dev->netdev_ops->ndo_get_vf_stats) in rtnl_fill_vfinfo()
1330 dev->netdev_ops->ndo_get_vf_stats(dev, vfs_num, in rtnl_fill_vfinfo()
1380 if (!dev->netdev_ops->ndo_get_vf_config) in rtnl_fill_vf()
[all …]
Dnet-sysfs.c184 if (!netdev->netdev_ops->ndo_change_carrier) in carrier_store()
497 if (!netdev->netdev_ops->ndo_change_proto_down) in proto_down_store()
513 if (!netdev->netdev_ops->ndo_get_phys_port_id) in phys_port_id_show()
541 if (!netdev->netdev_ops->ndo_get_phys_port_name && in phys_port_name_show()
542 !netdev->netdev_ops->ndo_get_devlink_port) in phys_port_name_show()
571 if (!netdev->netdev_ops->ndo_get_port_parent_id && in phys_switch_id_show()
572 !netdev->netdev_ops->ndo_get_devlink_port) in phys_switch_id_show()
1282 if (!dev->netdev_ops->ndo_set_tx_maxrate) in tx_maxrate_store()
1293 if (dev->netdev_ops->ndo_set_tx_maxrate) in tx_maxrate_store()
1294 err = dev->netdev_ops->ndo_set_tx_maxrate(dev, index, rate); in tx_maxrate_store()
Ddev.c710 if (dev->netdev_ops && dev->netdev_ops->ndo_get_iflink) in dev_get_iflink()
711 return dev->netdev_ops->ndo_get_iflink(dev); in dev_get_iflink()
730 if (!dev->netdev_ops || !dev->netdev_ops->ndo_fill_metadata_dst) in dev_fill_metadata_dst()
739 return dev->netdev_ops->ndo_fill_metadata_dst(dev, skb); in dev_fill_metadata_dst()
765 while (ctx.dev && ctx.dev->netdev_ops->ndo_fill_forward_path) { in dev_fill_forward_path()
772 ret = ctx.dev->netdev_ops->ndo_fill_forward_path(&ctx, path); in dev_fill_forward_path()
1483 const struct net_device_ops *ops = dev->netdev_ops; in __dev_open()
1587 const struct net_device_ops *ops = dev->netdev_ops; in __dev_close_many()
3602 if (dev->netdev_ops->ndo_features_check) in netif_skb_features()
3603 features &= dev->netdev_ops->ndo_features_check(skb, dev, in netif_skb_features()
[all …]
Dnetpoll.c208 ops = dev->netdev_ops; in netpoll_poll_dev()
372 dev->name, dev->netdev_ops->ndo_start_xmit); in __netpoll_send_skb()
652 ops = np->dev->netdev_ops; in __netpoll_setup()
845 ops = np->dev->netdev_ops; in __netpoll_cleanup()
/net/8021q/
Dvlan_dev.c359 const struct net_device_ops *ops = real_dev->netdev_ops; in vlan_dev_ioctl()
389 const struct net_device_ops *ops = real_dev->netdev_ops; in vlan_dev_neigh_setup()
403 const struct net_device_ops *ops = real_dev->netdev_ops; in vlan_dev_fcoe_ddp_setup()
415 const struct net_device_ops *ops = real_dev->netdev_ops; in vlan_dev_fcoe_ddp_done()
427 const struct net_device_ops *ops = real_dev->netdev_ops; in vlan_dev_fcoe_enable()
438 const struct net_device_ops *ops = real_dev->netdev_ops; in vlan_dev_fcoe_disable()
450 const struct net_device_ops *ops = real_dev->netdev_ops; in vlan_dev_fcoe_ddp_target()
464 const struct net_device_ops *ops = real_dev->netdev_ops; in vlan_dev_fcoe_get_wwn()
608 dev->netdev_ops = &vlan_netdev_ops; in vlan_dev_init()
870 dev->netdev_ops = &vlan_netdev_ops; in vlan_setup()
/net/sched/
Dsch_fifo.c60 if (!tc_can_offload(dev) || !dev->netdev_ops->ndo_setup_tc) in fifo_offload_init()
66 dev->netdev_ops->ndo_setup_tc(dev, TC_SETUP_QDISC_FIFO, &qopt); in fifo_offload_init()
74 if (!tc_can_offload(dev) || !dev->netdev_ops->ndo_setup_tc) in fifo_offload_destroy()
80 dev->netdev_ops->ndo_setup_tc(dev, TC_SETUP_QDISC_FIFO, &qopt); in fifo_offload_destroy()
Dsch_tbf.c147 if (!tc_can_offload(dev) || !dev->netdev_ops->ndo_setup_tc) in tbf_offload_change()
157 dev->netdev_ops->ndo_setup_tc(dev, TC_SETUP_QDISC_TBF, &qopt); in tbf_offload_change()
165 if (!tc_can_offload(dev) || !dev->netdev_ops->ndo_setup_tc) in tbf_offload_destroy()
171 dev->netdev_ops->ndo_setup_tc(dev, TC_SETUP_QDISC_TBF, &qopt); in tbf_offload_destroy()
Dsch_mqprio.c44 if (priv->hw_offload && dev->netdev_ops->ndo_setup_tc) { in mqprio_destroy()
50 dev->netdev_ops->ndo_setup_tc(dev, in mqprio_destroy()
89 return dev->netdev_ops->ndo_setup_tc ? 0 : -EINVAL; in mqprio_parse_opt()
309 err = dev->netdev_ops->ndo_setup_tc(dev, in mqprio_init()
Dsch_ets.c118 if (!tc_can_offload(dev) || !dev->netdev_ops->ndo_setup_tc) in ets_offload_change()
143 dev->netdev_ops->ndo_setup_tc(dev, TC_SETUP_QDISC_ETS, &qopt); in ets_offload_change()
151 if (!tc_can_offload(dev) || !dev->netdev_ops->ndo_setup_tc) in ets_offload_destroy()
157 dev->netdev_ops->ndo_setup_tc(dev, TC_SETUP_QDISC_ETS, &qopt); in ets_offload_destroy()
Dsch_red.c193 if (!tc_can_offload(dev) || !dev->netdev_ops->ndo_setup_tc) in red_offload()
210 return dev->netdev_ops->ndo_setup_tc(dev, TC_SETUP_QDISC_RED, &opt); in red_offload()
461 dev->netdev_ops->ndo_setup_tc(dev, TC_SETUP_QDISC_RED, in red_dump_stats()
Dsch_mq.c32 if (!tc_can_offload(dev) || !dev->netdev_ops->ndo_setup_tc) in mq_offload()
35 return dev->netdev_ops->ndo_setup_tc(dev, TC_SETUP_QDISC_MQ, &opt); in mq_offload()
Dsch_prio.c148 if (!tc_can_offload(dev) || !dev->netdev_ops->ndo_setup_tc) in prio_offload()
161 return dev->netdev_ops->ndo_setup_tc(dev, TC_SETUP_QDISC_PRIO, &opt); in prio_offload()
Dsch_etf.c306 ops = dev->netdev_ops; in etf_disable_offload()
322 const struct net_device_ops *ops = dev->netdev_ops; in etf_enable_offload()
/net/xdp/
Dxsk_buff_pool.c115 err = pool->netdev->netdev_ops->ndo_bpf(pool->netdev, &bpf); in xp_disable_drv_zc()
160 if (!netdev->netdev_ops->ndo_bpf || in xp_assign_dev()
161 !netdev->netdev_ops->ndo_xsk_wakeup) { in xp_assign_dev()
170 err = netdev->netdev_ops->ndo_bpf(netdev, &bpf); in xp_assign_dev()
/net/openvswitch/
Dvport-internal_dev.c101 netdev->netdev_ops = &internal_dev_netdev_ops; in do_setup()
224 return netdev->netdev_ops == &internal_dev_netdev_ops; in ovs_is_internal_dev()
/net/dsa/
Dmaster.c212 if (dev->netdev_ops->ndo_eth_ioctl) in dsa_master_ioctl()
213 err = dev->netdev_ops->ndo_eth_ioctl(dev, ifr, cmd); in dsa_master_ioctl()
259 dev->dsa_ptr->netdev_ops = ops; in dsa_netdev_ops_set()
/net/caif/
Dchnl_net.c362 static const struct net_device_ops netdev_ops = { variable
379 dev->netdev_ops = &netdev_ops; in ipcaif_net_setup()
/net/bluetooth/
D6lowpan.c553 static const struct net_device_ops netdev_ops = { variable
570 dev->netdev_ops = &netdev_ops; in netdev_setup()
677 netdev->netdev_ops = &netdev_ops; in setup_netdev()
/net/rose/
Drose_dev.c132 dev->netdev_ops = &rose_netdev_ops; in rose_setup()
/net/phonet/
Dpn_dev.c235 if (!dev->netdev_ops->ndo_siocdevprivate) in phonet_device_autoconf()
238 ret = dev->netdev_ops->ndo_siocdevprivate(dev, (struct ifreq *)&req, in phonet_device_autoconf()
/net/netfilter/
Dnf_tables_offload.c234 if (!dev->netdev_ops->ndo_setup_tc && !flow_indr_dev_exists()) in nft_chain_offload_support()
392 err = dev->netdev_ops->ndo_setup_tc(dev, TC_SETUP_BLOCK, &bo); in nft_block_offload_cmd()
445 if (dev->netdev_ops->ndo_setup_tc) in nft_chain_offload_cmd()
/net/atm/
Dmpc.c316 if (!dev->netdev_ops) in start_mpc()
319 mpc->old_ops = dev->netdev_ops; in start_mpc()
322 dev->netdev_ops = &mpc->new_ops; in start_mpc()
332 if (dev->netdev_ops != &mpc->new_ops) { in stop_mpc()
338 dev->netdev_ops = mpc->old_ops; in stop_mpc()
/net/netrom/
Dnr_dev.c170 dev->netdev_ops = &nr_netdev_ops; in nr_setup()
/net/hsr/
Dhsr_device.c445 dev->netdev_ops = &hsr_device_ops; in hsr_dev_setup()
473 return (dev->netdev_ops->ndo_start_xmit == hsr_dev_xmit); in is_hsr_master()

123