Home
last modified time | relevance | path

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

123

/net/core/
Ddev_ioctl.c116 if (!dev->netdev_ops->ndo_set_config) in dev_setifmap()
129 return dev->netdev_ops->ndo_set_config(dev, &ifmap); in dev_setifmap()
132 return dev->netdev_ops->ndo_set_config(dev, &ifr->ifr_map); in dev_setifmap()
245 const struct net_device_ops *ops = dev->netdev_ops; in dev_eth_ioctl()
277 return dev->netdev_ops->ndo_hwtstamp_get(dev, cfg); in dev_get_hwtstamp_phylib()
282 const struct net_device_ops *ops = dev->netdev_ops; in dev_get_hwtstamp()
329 const struct net_device_ops *ops = dev->netdev_ops; in dev_set_hwtstamp_phylib()
369 const struct net_device_ops *ops = dev->netdev_ops; in dev_set_hwtstamp()
437 const struct net_device_ops *ops = dev->netdev_ops; in generic_hwtstamp_get_lower()
454 const struct net_device_ops *ops = dev->netdev_ops; in generic_hwtstamp_set_lower()
[all …]
Drtnetlink.c1005 if (!dev->netdev_ops->ndo_get_vf_port || !dev->dev.parent || in rtnl_port_size()
1134 err = dev->netdev_ops->ndo_get_vf_port(dev, vf, skb); in rtnl_vf_ports_fill()
1162 err = dev->netdev_ops->ndo_get_vf_port(dev, PORT_SELF_VF, skb); in rtnl_port_self_fill()
1178 if (!dev->netdev_ops->ndo_get_vf_port || !dev->dev.parent || in rtnl_port_fill()
1310 if (dev->netdev_ops->ndo_get_vf_config(dev, vfs_num, &ivi)) in rtnl_fill_vfinfo()
1364 if (dev->netdev_ops->ndo_get_vf_guid && in rtnl_fill_vfinfo()
1365 !dev->netdev_ops->ndo_get_vf_guid(dev, vfs_num, &node_guid, in rtnl_fill_vfinfo()
1384 if (dev->netdev_ops->ndo_get_vf_stats) in rtnl_fill_vfinfo()
1385 dev->netdev_ops->ndo_get_vf_stats(dev, vfs_num, in rtnl_fill_vfinfo()
1433 if (!dev->netdev_ops->ndo_get_vf_config) in rtnl_fill_vf()
[all …]
Ddev.c661 if (dev->netdev_ops && dev->netdev_ops->ndo_get_iflink) in dev_get_iflink()
662 return dev->netdev_ops->ndo_get_iflink(dev); in dev_get_iflink()
681 if (!dev->netdev_ops || !dev->netdev_ops->ndo_fill_metadata_dst) in dev_fill_metadata_dst()
690 return dev->netdev_ops->ndo_fill_metadata_dst(dev, skb); in dev_fill_metadata_dst()
716 while (ctx.dev && ctx.dev->netdev_ops->ndo_fill_forward_path) { in dev_fill_forward_path()
723 ret = ctx.dev->netdev_ops->ndo_fill_forward_path(&ctx, path); in dev_fill_forward_path()
1452 const struct net_device_ops *ops = dev->netdev_ops; in __dev_open()
1557 const struct net_device_ops *ops = dev->netdev_ops; in __dev_close_many()
3563 if (dev->netdev_ops->ndo_features_check) in netif_skb_features()
3564 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()
834 ops = np->dev->netdev_ops; in __netpoll_cleanup()
Dnet-sysfs.c186 if (!netdev->netdev_ops->ndo_change_carrier) in carrier_store()
505 if (!netdev->netdev_ops->ndo_get_phys_port_id) in phys_port_id_show()
533 if (!netdev->netdev_ops->ndo_get_phys_port_name && in phys_port_name_show()
563 if (!netdev->netdev_ops->ndo_get_port_parent_id && in phys_switch_id_show()
1305 if (!dev->netdev_ops->ndo_set_tx_maxrate) in tx_maxrate_store()
1316 if (dev->netdev_ops->ndo_set_tx_maxrate) in tx_maxrate_store()
1317 err = dev->netdev_ops->ndo_set_tx_maxrate(dev, index, rate); in tx_maxrate_store()
/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.c148 if (!tc_can_offload(dev) || !dev->netdev_ops->ndo_setup_tc) in tbf_offload_change()
158 dev->netdev_ops->ndo_setup_tc(dev, TC_SETUP_QDISC_TBF, &qopt); in tbf_offload_change()
166 if (!tc_can_offload(dev) || !dev->netdev_ops->ndo_setup_tc) in tbf_offload_destroy()
172 dev->netdev_ops->ndo_setup_tc(dev, TC_SETUP_QDISC_TBF, &qopt); in tbf_offload_destroy()
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_mqprio.c70 err = dev->netdev_ops->ndo_setup_tc(dev, TC_SETUP_QDISC_MQPRIO, in mqprio_enable_offload()
89 dev->netdev_ops->ndo_setup_tc(dev, TC_SETUP_QDISC_MQPRIO, in mqprio_disable_offload()
109 if (priv->hw_offload && dev->netdev_ops->ndo_setup_tc) in mqprio_destroy()
143 if (qopt->hw && !dev->netdev_ops->ndo_setup_tc) { in mqprio_parse_opt()
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_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/8021q/
Dvlan_dev.c380 const struct net_device_ops *ops = real_dev->netdev_ops; in vlan_dev_ioctl()
405 const struct net_device_ops *ops = real_dev->netdev_ops; in vlan_dev_neigh_setup()
419 const struct net_device_ops *ops = real_dev->netdev_ops; in vlan_dev_fcoe_ddp_setup()
431 const struct net_device_ops *ops = real_dev->netdev_ops; in vlan_dev_fcoe_ddp_done()
443 const struct net_device_ops *ops = real_dev->netdev_ops; in vlan_dev_fcoe_enable()
454 const struct net_device_ops *ops = real_dev->netdev_ops; in vlan_dev_fcoe_disable()
466 const struct net_device_ops *ops = real_dev->netdev_ops; in vlan_dev_fcoe_ddp_target()
480 const struct net_device_ops *ops = real_dev->netdev_ops; in vlan_dev_fcoe_get_wwn()
626 dev->netdev_ops = &vlan_netdev_ops; in vlan_dev_init()
1123 dev->netdev_ops = &vlan_netdev_ops; in vlan_setup()
Dvlan_core.c211 return dev->netdev_ops->ndo_vlan_rx_add_vid(dev, proto, vid); in vlan_add_rx_filter_info()
222 return dev->netdev_ops->ndo_vlan_rx_kill_vid(dev, proto, vid); in vlan_kill_rx_filter_info()
/net/openvswitch/
Dvport-internal_dev.c101 netdev->netdev_ops = &internal_dev_netdev_ops; in do_setup()
225 return netdev->netdev_ops == &internal_dev_netdev_ops; in ovs_is_internal_dev()
/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()
678 netdev->netdev_ops = &netdev_ops; in setup_netdev()
/net/mctp/test/
Dutils.c31 ndev->netdev_ops = &mctp_test_netdev_ops; in mctp_test_dev_setup()
/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.c235 if (!dev->netdev_ops->ndo_setup_tc && !flow_indr_dev_exists()) in nft_chain_offload_support()
393 err = dev->netdev_ops->ndo_setup_tc(dev, TC_SETUP_BLOCK, &bo); in nft_block_offload_cmd()
446 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.c442 dev->netdev_ops = &hsr_device_ops; in hsr_dev_setup()
470 return (dev->netdev_ops->ndo_start_xmit == hsr_dev_xmit); in is_hsr_master()

123