Lines Matching refs:net_device

75 void netdev_set_default_ethtool_ops(struct net_device *dev,
272 int (*create) (struct sk_buff *skb, struct net_device *dev,
278 const struct net_device *dev,
345 struct net_device *dev;
597 struct net_device *dev;
614 struct net_device *sb_dev;
758 bool rps_may_expire_flow(struct net_device *dev, u16 rxq_index, u32 flow_id,
770 struct net_device *dev;
865 typedef u16 (*select_queue_fallback_t)(struct net_device *dev,
867 struct net_device *sb_dev);
979 struct net_device *dev;
983 int netdev_name_node_alt_create(struct net_device *dev, const char *name);
984 int netdev_name_node_alt_destroy(struct net_device *dev, const char *name);
1322 int (*ndo_init)(struct net_device *dev);
1323 void (*ndo_uninit)(struct net_device *dev);
1324 int (*ndo_open)(struct net_device *dev);
1325 int (*ndo_stop)(struct net_device *dev);
1327 struct net_device *dev);
1329 struct net_device *dev,
1331 u16 (*ndo_select_queue)(struct net_device *dev,
1333 struct net_device *sb_dev);
1334 void (*ndo_change_rx_flags)(struct net_device *dev,
1336 void (*ndo_set_rx_mode)(struct net_device *dev);
1337 int (*ndo_set_mac_address)(struct net_device *dev,
1339 int (*ndo_validate_addr)(struct net_device *dev);
1340 int (*ndo_do_ioctl)(struct net_device *dev,
1342 int (*ndo_set_config)(struct net_device *dev,
1344 int (*ndo_change_mtu)(struct net_device *dev,
1346 int (*ndo_neigh_setup)(struct net_device *dev,
1348 void (*ndo_tx_timeout) (struct net_device *dev,
1351 void (*ndo_get_stats64)(struct net_device *dev,
1353 bool (*ndo_has_offload_stats)(const struct net_device *dev, int attr_id);
1355 const struct net_device *dev,
1357 struct net_device_stats* (*ndo_get_stats)(struct net_device *dev);
1359 int (*ndo_vlan_rx_add_vid)(struct net_device *dev,
1361 int (*ndo_vlan_rx_kill_vid)(struct net_device *dev,
1364 void (*ndo_poll_controller)(struct net_device *dev);
1365 int (*ndo_netpoll_setup)(struct net_device *dev,
1367 void (*ndo_netpoll_cleanup)(struct net_device *dev);
1369 int (*ndo_set_vf_mac)(struct net_device *dev,
1371 int (*ndo_set_vf_vlan)(struct net_device *dev,
1374 int (*ndo_set_vf_rate)(struct net_device *dev,
1377 int (*ndo_set_vf_spoofchk)(struct net_device *dev,
1379 int (*ndo_set_vf_trust)(struct net_device *dev,
1381 int (*ndo_get_vf_config)(struct net_device *dev,
1384 int (*ndo_set_vf_link_state)(struct net_device *dev,
1386 int (*ndo_get_vf_stats)(struct net_device *dev,
1390 int (*ndo_set_vf_port)(struct net_device *dev,
1393 int (*ndo_get_vf_port)(struct net_device *dev,
1395 int (*ndo_get_vf_guid)(struct net_device *dev,
1399 int (*ndo_set_vf_guid)(struct net_device *dev,
1403 struct net_device *dev,
1405 int (*ndo_setup_tc)(struct net_device *dev,
1409 int (*ndo_fcoe_enable)(struct net_device *dev);
1410 int (*ndo_fcoe_disable)(struct net_device *dev);
1411 int (*ndo_fcoe_ddp_setup)(struct net_device *dev,
1415 int (*ndo_fcoe_ddp_done)(struct net_device *dev,
1417 int (*ndo_fcoe_ddp_target)(struct net_device *dev,
1421 int (*ndo_fcoe_get_hbainfo)(struct net_device *dev,
1428 int (*ndo_fcoe_get_wwn)(struct net_device *dev,
1433 int (*ndo_rx_flow_steer)(struct net_device *dev,
1438 int (*ndo_add_slave)(struct net_device *dev,
1439 struct net_device *slave_dev,
1441 int (*ndo_del_slave)(struct net_device *dev,
1442 struct net_device *slave_dev);
1443 struct net_device* (*ndo_get_xmit_slave)(struct net_device *dev,
1446 netdev_features_t (*ndo_fix_features)(struct net_device *dev,
1448 int (*ndo_set_features)(struct net_device *dev,
1450 int (*ndo_neigh_construct)(struct net_device *dev,
1452 void (*ndo_neigh_destroy)(struct net_device *dev,
1457 struct net_device *dev,
1464 struct net_device *dev,
1469 struct net_device *dev,
1470 struct net_device *filter_dev,
1474 struct net_device *dev,
1478 int (*ndo_bridge_setlink)(struct net_device *dev,
1484 struct net_device *dev,
1487 int (*ndo_bridge_dellink)(struct net_device *dev,
1490 int (*ndo_change_carrier)(struct net_device *dev,
1492 int (*ndo_get_phys_port_id)(struct net_device *dev,
1494 int (*ndo_get_port_parent_id)(struct net_device *dev,
1496 int (*ndo_get_phys_port_name)(struct net_device *dev,
1498 void (*ndo_udp_tunnel_add)(struct net_device *dev,
1500 void (*ndo_udp_tunnel_del)(struct net_device *dev,
1502 void* (*ndo_dfwd_add_station)(struct net_device *pdev,
1503 struct net_device *dev);
1504 void (*ndo_dfwd_del_station)(struct net_device *pdev,
1507 int (*ndo_set_tx_maxrate)(struct net_device *dev,
1510 int (*ndo_get_iflink)(const struct net_device *dev);
1511 int (*ndo_change_proto_down)(struct net_device *dev,
1513 int (*ndo_fill_metadata_dst)(struct net_device *dev,
1515 void (*ndo_set_rx_headroom)(struct net_device *dev,
1517 int (*ndo_bpf)(struct net_device *dev,
1519 int (*ndo_xdp_xmit)(struct net_device *dev, int n,
1522 int (*ndo_xsk_wakeup)(struct net_device *dev,
1524 struct devlink_port * (*ndo_get_devlink_port)(struct net_device *dev);
1525 int (*ndo_tunnel_ctl)(struct net_device *dev,
1527 struct net_device * (*ndo_get_peer_dev)(struct net_device *dev);
1912 struct net_device { struct
2155 void (*priv_destructor)(struct net_device *dev); argument
2233 #define to_net_dev(d) container_of(d, struct net_device, dev) argument
2235 static inline bool netif_elide_gro(const struct net_device *dev) in netif_elide_gro()
2245 int netdev_get_prio_tc_map(const struct net_device *dev, u32 prio) in netdev_get_prio_tc_map()
2251 int netdev_set_prio_tc_map(struct net_device *dev, u8 prio, u8 tc) in netdev_set_prio_tc_map()
2260 int netdev_txq_to_tc(struct net_device *dev, unsigned int txq);
2261 void netdev_reset_tc(struct net_device *dev);
2262 int netdev_set_tc_queue(struct net_device *dev, u8 tc, u16 count, u16 offset);
2263 int netdev_set_num_tc(struct net_device *dev, u8 num_tc);
2266 int netdev_get_num_tc(struct net_device *dev) in netdev_get_num_tc()
2287 void netdev_unbind_sb_channel(struct net_device *dev,
2288 struct net_device *sb_dev);
2289 int netdev_bind_sb_channel_queue(struct net_device *dev,
2290 struct net_device *sb_dev,
2292 int netdev_set_sb_channel(struct net_device *dev, u16 channel);
2293 static inline int netdev_get_sb_channel(struct net_device *dev) in netdev_get_sb_channel()
2299 struct netdev_queue *netdev_get_tx_queue(const struct net_device *dev, in netdev_get_tx_queue()
2305 static inline struct netdev_queue *skb_get_tx_queue(const struct net_device *dev, in skb_get_tx_queue()
2311 static inline void netdev_for_each_tx_queue(struct net_device *dev, in netdev_for_each_tx_queue()
2312 void (*f)(struct net_device *, in netdev_for_each_tx_queue() argument
2340 u16 netdev_pick_tx(struct net_device *dev, struct sk_buff *skb,
2341 struct net_device *sb_dev);
2342 struct netdev_queue *netdev_core_pick_tx(struct net_device *dev,
2344 struct net_device *sb_dev);
2349 static inline unsigned netdev_get_fwd_headroom(struct net_device *dev) in netdev_get_fwd_headroom()
2354 static inline void netdev_set_rx_headroom(struct net_device *dev, int new_hr) in netdev_set_rx_headroom()
2361 static inline void netdev_reset_rx_headroom(struct net_device *dev) in netdev_reset_rx_headroom()
2366 static inline void *netdev_get_ml_priv(struct net_device *dev, in netdev_get_ml_priv()
2375 static inline void netdev_set_ml_priv(struct net_device *dev, in netdev_set_ml_priv()
2393 struct net *dev_net(const struct net_device *dev) in dev_net()
2399 void dev_net_set(struct net_device *dev, struct net *net) in dev_net_set()
2410 static inline void *netdev_priv(const struct net_device *dev) in netdev_priv()
2412 return (char *)dev + ALIGN(sizeof(struct net_device), NETDEV_ALIGN); in netdev_priv()
2441 void netif_napi_add(struct net_device *dev, struct napi_struct *napi,
2455 static inline void netif_tx_napi_add(struct net_device *dev, in netif_tx_napi_add()
2592 struct net_device *dev; /* NULL is wildcarded here */
2594 struct net_device *,
2596 struct net_device *);
2599 struct net_device *);
2642 void dev_lstats_read(struct net_device *dev, u64 *packets, u64 *bytes);
2644 static inline void dev_sw_netstats_rx_add(struct net_device *dev, unsigned int len) in dev_sw_netstats_rx_add()
2654 static inline void dev_lstats_add(struct net_device *dev, unsigned int len) in dev_lstats_add()
2762 int register_netdevice_notifier_dev_net(struct net_device *dev,
2765 int unregister_netdevice_notifier_dev_net(struct net_device *dev,
2770 struct net_device *dev;
2788 struct net_device *upper_dev; /* new upper dev */
2805 struct net_device *dev) in netdev_notifier_info_init()
2811 static inline struct net_device *
2823 int call_netdevice_notifiers(unsigned long val, struct net_device *dev);
2846 #define net_device_entry(lh) list_entry(lh, struct net_device, dev_list)
2848 static inline struct net_device *next_net_device(struct net_device *dev) in next_net_device()
2858 static inline struct net_device *next_net_device_rcu(struct net_device *dev) in next_net_device_rcu()
2868 static inline struct net_device *first_net_device(struct net *net) in first_net_device()
2874 static inline struct net_device *first_net_device_rcu(struct net *net) in first_net_device_rcu()
2881 int netdev_boot_setup_check(struct net_device *dev);
2883 struct net_device *dev_getbyhwaddr_rcu(struct net *net, unsigned short type,
2885 struct net_device *dev_getfirstbyhwtype(struct net *net, unsigned short type);
2886 struct net_device *__dev_getfirstbyhwtype(struct net *net, unsigned short type);
2893 int dev_get_iflink(const struct net_device *dev);
2894 int dev_fill_metadata_dst(struct net_device *dev, struct sk_buff *skb);
2895 struct net_device *__dev_get_by_flags(struct net *net, unsigned short flags,
2897 struct net_device *dev_get_by_name(struct net *net, const char *name);
2898 struct net_device *dev_get_by_name_rcu(struct net *net, const char *name);
2899 struct net_device *__dev_get_by_name(struct net *net, const char *name);
2900 int dev_alloc_name(struct net_device *dev, const char *name);
2901 int dev_open(struct net_device *dev, struct netlink_ext_ack *extack);
2902 void dev_close(struct net_device *dev);
2904 void dev_disable_lro(struct net_device *dev);
2906 u16 dev_pick_tx_zero(struct net_device *dev, struct sk_buff *skb,
2907 struct net_device *sb_dev);
2908 u16 dev_pick_tx_cpu_id(struct net_device *dev, struct sk_buff *skb,
2909 struct net_device *sb_dev);
2912 int dev_queue_xmit_accel(struct sk_buff *skb, struct net_device *sb_dev);
2925 int register_netdevice(struct net_device *dev);
2926 void unregister_netdevice_queue(struct net_device *dev, struct list_head *head);
2928 static inline void unregister_netdevice(struct net_device *dev) in unregister_netdevice()
2933 int netdev_refcnt_read(const struct net_device *dev);
2934 void free_netdev(struct net_device *dev);
2935 void netdev_freemem(struct net_device *dev);
2936 int init_dummy_netdev(struct net_device *dev);
2938 struct net_device *netdev_get_xmit_slave(struct net_device *dev,
2941 struct net_device *dev_get_by_index(struct net *net, int ifindex);
2942 struct net_device *__dev_get_by_index(struct net *net, int ifindex);
2943 struct net_device *dev_get_by_index_rcu(struct net *net, int ifindex);
2944 struct net_device *dev_get_by_napi_id(unsigned int napi_id);
2946 int dev_restart(struct net_device *dev);
3196 static inline int dev_hard_header(struct sk_buff *skb, struct net_device *dev, in dev_hard_header()
3210 const struct net_device *dev = skb->dev; in dev_parse_header()
3219 const struct net_device *dev = skb->dev; in dev_parse_header_protocol()
3227 static inline bool dev_validate_header(const struct net_device *dev, in dev_validate_header()
3246 static inline bool dev_has_header(const struct net_device *dev) in dev_has_header()
3352 static inline void netif_tx_schedule_all(struct net_device *dev) in netif_tx_schedule_all()
3371 static inline void netif_start_queue(struct net_device *dev) in netif_start_queue()
3376 static inline void netif_tx_start_all_queues(struct net_device *dev) in netif_tx_start_all_queues()
3395 static inline void netif_wake_queue(struct net_device *dev) in netif_wake_queue()
3400 static inline void netif_tx_wake_all_queues(struct net_device *dev) in netif_tx_wake_all_queues()
3422 static inline void netif_stop_queue(struct net_device *dev) in netif_stop_queue()
3427 void netif_tx_stop_all_queues(struct net_device *dev);
3440 static inline bool netif_queue_stopped(const struct net_device *dev) in netif_queue_stopped()
3543 static inline void netdev_sent_queue(struct net_device *dev, unsigned int bytes) in netdev_sent_queue()
3548 static inline bool __netdev_sent_queue(struct net_device *dev, in __netdev_sent_queue()
3590 static inline void netdev_completed_queue(struct net_device *dev, in netdev_completed_queue()
3611 static inline void netdev_reset_queue(struct net_device *dev_queue) in netdev_reset_queue()
3624 static inline u16 netdev_cap_txqueue(struct net_device *dev, u16 queue_index) in netdev_cap_txqueue()
3642 static inline bool netif_running(const struct net_device *dev) in netif_running()
3661 static inline void netif_start_subqueue(struct net_device *dev, u16 queue_index) in netif_start_subqueue()
3675 static inline void netif_stop_subqueue(struct net_device *dev, u16 queue_index) in netif_stop_subqueue()
3688 static inline bool __netif_subqueue_stopped(const struct net_device *dev, in __netif_subqueue_stopped()
3696 static inline bool netif_subqueue_stopped(const struct net_device *dev, in netif_subqueue_stopped()
3709 static inline void netif_wake_subqueue(struct net_device *dev, u16 queue_index) in netif_wake_subqueue()
3717 int netif_set_xps_queue(struct net_device *dev, const struct cpumask *mask,
3719 int __netif_set_xps_queue(struct net_device *dev, const unsigned long *mask,
3806 static inline int netif_set_xps_queue(struct net_device *dev, in netif_set_xps_queue()
3813 static inline int __netif_set_xps_queue(struct net_device *dev, in __netif_set_xps_queue()
3827 static inline bool netif_is_multiqueue(const struct net_device *dev) in netif_is_multiqueue()
3832 int netif_set_real_num_tx_queues(struct net_device *dev, unsigned int txq);
3835 int netif_set_real_num_rx_queues(struct net_device *dev, unsigned int rxq);
3837 static inline int netif_set_real_num_rx_queues(struct net_device *dev, in netif_set_real_num_rx_queues()
3846 __netif_get_rx_queue(struct net_device *dev, unsigned int rxq) in __netif_get_rx_queue()
3855 struct net_device *dev = queue->dev; in get_netdev_rx_queue_index()
3934 bool netdev_is_rx_handler_busy(struct net_device *dev);
3935 int netdev_rx_handler_register(struct net_device *dev,
3938 void netdev_rx_handler_unregister(struct net_device *dev);
3949 unsigned int dev_get_flags(const struct net_device *);
3950 int __dev_change_flags(struct net_device *dev, unsigned int flags,
3952 int dev_change_flags(struct net_device *dev, unsigned int flags,
3954 void __dev_notify_flags(struct net_device *, unsigned int old_flags,
3956 int dev_change_name(struct net_device *, const char *);
3957 int dev_set_alias(struct net_device *, const char *, size_t);
3958 int dev_get_alias(const struct net_device *, char *, size_t);
3959 int dev_change_net_namespace(struct net_device *, struct net *, const char *);
3960 int __dev_set_mtu(struct net_device *, int);
3961 int dev_validate_mtu(struct net_device *dev, int mtu,
3963 int dev_set_mtu_ext(struct net_device *dev, int mtu,
3965 int dev_set_mtu(struct net_device *, int);
3966 int dev_change_tx_queue_len(struct net_device *, unsigned long);
3967 void dev_set_group(struct net_device *, int);
3968 int dev_pre_changeaddr_notify(struct net_device *dev, const char *addr,
3970 int dev_set_mac_address(struct net_device *dev, struct sockaddr *sa,
3972 int dev_set_mac_address_user(struct net_device *dev, struct sockaddr *sa,
3975 int dev_change_carrier(struct net_device *, bool new_carrier);
3976 int dev_get_phys_port_id(struct net_device *dev,
3978 int dev_get_phys_port_name(struct net_device *dev,
3980 int dev_get_port_parent_id(struct net_device *dev,
3982 bool netdev_port_same_parent_id(struct net_device *a, struct net_device *b);
3983 int dev_change_proto_down(struct net_device *dev, bool proto_down);
3984 int dev_change_proto_down_generic(struct net_device *dev, bool proto_down);
3985 void dev_change_proto_down_reason(struct net_device *dev, unsigned long mask,
3987 struct sk_buff *validate_xmit_skb_list(struct sk_buff *skb, struct net_device *dev, bool *again);
3988 struct sk_buff *dev_hard_start_xmit(struct sk_buff *skb, struct net_device *dev,
3991 typedef int (*bpf_op_t)(struct net_device *dev, struct netdev_bpf *bpf);
3992 int dev_change_xdp_fd(struct net_device *dev, struct netlink_ext_ack *extack,
3995 u32 dev_xdp_prog_id(struct net_device *dev, enum bpf_xdp_mode mode);
3997 int xdp_umem_query(struct net_device *dev, u16 queue_id);
3999 int __dev_forward_skb(struct net_device *dev, struct sk_buff *skb);
4000 int dev_forward_skb(struct net_device *dev, struct sk_buff *skb);
4001 bool is_skb_forwardable(const struct net_device *dev,
4004 static __always_inline int ____dev_forward_skb(struct net_device *dev, in ____dev_forward_skb()
4019 bool dev_nit_active(struct net_device *dev);
4020 void dev_queue_xmit_nit(struct sk_buff *skb, struct net_device *dev);
4034 static inline void dev_put(struct net_device *dev) in dev_put()
4046 static inline void dev_hold(struct net_device *dev) in dev_hold()
4061 void linkwatch_init_dev(struct net_device *dev);
4062 void linkwatch_fire_event(struct net_device *dev);
4063 void linkwatch_forget_dev(struct net_device *dev);
4071 static inline bool netif_carrier_ok(const struct net_device *dev) in netif_carrier_ok()
4076 unsigned long dev_trans_start(struct net_device *dev);
4078 void __netdev_watchdog_up(struct net_device *dev);
4080 void netif_carrier_on(struct net_device *dev);
4082 void netif_carrier_off(struct net_device *dev);
4096 static inline void netif_dormant_on(struct net_device *dev) in netif_dormant_on()
4108 static inline void netif_dormant_off(struct net_device *dev) in netif_dormant_off()
4120 static inline bool netif_dormant(const struct net_device *dev) in netif_dormant()
4136 static inline void netif_testing_on(struct net_device *dev) in netif_testing_on()
4148 static inline void netif_testing_off(struct net_device *dev) in netif_testing_off()
4160 static inline bool netif_testing(const struct net_device *dev) in netif_testing()
4172 static inline bool netif_oper_up(const struct net_device *dev) in netif_oper_up()
4184 static inline bool netif_device_present(struct net_device *dev) in netif_device_present()
4189 void netif_device_detach(struct net_device *dev);
4191 void netif_device_attach(struct net_device *dev);
4325 static inline void netif_trans_update(struct net_device *dev) in netif_trans_update()
4339 static inline void netif_tx_lock(struct net_device *dev) in netif_tx_lock()
4361 static inline void netif_tx_lock_bh(struct net_device *dev) in netif_tx_lock_bh()
4367 static inline void netif_tx_unlock(struct net_device *dev) in netif_tx_unlock()
4384 static inline void netif_tx_unlock_bh(struct net_device *dev) in netif_tx_unlock_bh()
4411 static inline void netif_tx_disable(struct net_device *dev) in netif_tx_disable()
4430 static inline void netif_addr_lock(struct net_device *dev) in netif_addr_lock()
4440 static inline void netif_addr_lock_bh(struct net_device *dev) in netif_addr_lock_bh()
4451 static inline void netif_addr_unlock(struct net_device *dev) in netif_addr_unlock()
4456 static inline void netif_addr_unlock_bh(struct net_device *dev) in netif_addr_unlock_bh()
4470 void ether_setup(struct net_device *dev);
4473 struct net_device *alloc_netdev_mqs(int sizeof_priv, const char *name,
4475 void (*setup)(struct net_device *),
4484 int register_netdev(struct net_device *dev);
4485 void unregister_netdev(struct net_device *dev);
4487 int devm_register_netdev(struct device *dev, struct net_device *ndev);
4495 struct net_device *dev,
4496 int (*sync)(struct net_device *, const unsigned char *),
4497 int (*unsync)(struct net_device *,
4500 struct net_device *dev,
4501 int (*sync)(struct net_device *,
4503 int (*unsync)(struct net_device *,
4506 struct net_device *dev,
4507 int (*unsync)(struct net_device *,
4510 struct net_device *dev,
4511 int (*unsync)(struct net_device *,
4516 int dev_addr_add(struct net_device *dev, const unsigned char *addr,
4518 int dev_addr_del(struct net_device *dev, const unsigned char *addr,
4520 void dev_addr_flush(struct net_device *dev);
4521 int dev_addr_init(struct net_device *dev);
4524 int dev_uc_add(struct net_device *dev, const unsigned char *addr);
4525 int dev_uc_add_excl(struct net_device *dev, const unsigned char *addr);
4526 int dev_uc_del(struct net_device *dev, const unsigned char *addr);
4527 int dev_uc_sync(struct net_device *to, struct net_device *from);
4528 int dev_uc_sync_multiple(struct net_device *to, struct net_device *from);
4529 void dev_uc_unsync(struct net_device *to, struct net_device *from);
4530 void dev_uc_flush(struct net_device *dev);
4531 void dev_uc_init(struct net_device *dev);
4542 static inline int __dev_uc_sync(struct net_device *dev, in __dev_uc_sync()
4543 int (*sync)(struct net_device *, in __dev_uc_sync() argument
4545 int (*unsync)(struct net_device *, in __dev_uc_sync() argument
4558 static inline void __dev_uc_unsync(struct net_device *dev, in __dev_uc_unsync()
4559 int (*unsync)(struct net_device *, in __dev_uc_unsync() argument
4566 int dev_mc_add(struct net_device *dev, const unsigned char *addr);
4567 int dev_mc_add_global(struct net_device *dev, const unsigned char *addr);
4568 int dev_mc_add_excl(struct net_device *dev, const unsigned char *addr);
4569 int dev_mc_del(struct net_device *dev, const unsigned char *addr);
4570 int dev_mc_del_global(struct net_device *dev, const unsigned char *addr);
4571 int dev_mc_sync(struct net_device *to, struct net_device *from);
4572 int dev_mc_sync_multiple(struct net_device *to, struct net_device *from);
4573 void dev_mc_unsync(struct net_device *to, struct net_device *from);
4574 void dev_mc_flush(struct net_device *dev);
4575 void dev_mc_init(struct net_device *dev);
4586 static inline int __dev_mc_sync(struct net_device *dev, in __dev_mc_sync()
4587 int (*sync)(struct net_device *, in __dev_mc_sync() argument
4589 int (*unsync)(struct net_device *, in __dev_mc_sync() argument
4602 static inline void __dev_mc_unsync(struct net_device *dev, in __dev_mc_unsync()
4603 int (*unsync)(struct net_device *, in __dev_mc_unsync() argument
4610 void dev_set_rx_mode(struct net_device *dev);
4611 void __dev_set_rx_mode(struct net_device *dev);
4612 int dev_set_promiscuity(struct net_device *dev, int inc);
4613 int dev_set_allmulti(struct net_device *dev, int inc);
4614 void netdev_state_change(struct net_device *dev);
4615 void netdev_notify_peers(struct net_device *dev);
4616 void netdev_features_change(struct net_device *dev);
4619 struct rtnl_link_stats64 *dev_get_stats(struct net_device *dev,
4651 bool netdev_has_upper_dev(struct net_device *dev, struct net_device *upper_dev);
4652 struct net_device *netdev_upper_get_next_dev_rcu(struct net_device *dev,
4654 struct net_device *netdev_all_upper_get_next_dev_rcu(struct net_device *dev,
4660 static inline void net_unlink_todo(struct net_device *dev) in net_unlink_todo()
4674 int netdev_walk_all_upper_dev_rcu(struct net_device *dev,
4675 int (*fn)(struct net_device *upper_dev,
4679 bool netdev_has_upper_dev_all_rcu(struct net_device *dev,
4680 struct net_device *upper_dev);
4682 bool netdev_has_any_upper_dev(struct net_device *dev);
4684 void *netdev_lower_get_next_private(struct net_device *dev,
4686 void *netdev_lower_get_next_private_rcu(struct net_device *dev,
4701 void *netdev_lower_get_next(struct net_device *dev,
4710 struct net_device *netdev_next_lower_dev_rcu(struct net_device *dev,
4712 int netdev_walk_all_lower_dev(struct net_device *dev,
4713 int (*fn)(struct net_device *lower_dev,
4716 int netdev_walk_all_lower_dev_rcu(struct net_device *dev,
4717 int (*fn)(struct net_device *lower_dev,
4722 void *netdev_lower_get_first_private_rcu(struct net_device *dev);
4723 struct net_device *netdev_master_upper_dev_get(struct net_device *dev);
4724 struct net_device *netdev_master_upper_dev_get_rcu(struct net_device *dev);
4725 int netdev_upper_dev_link(struct net_device *dev, struct net_device *upper_dev,
4727 int netdev_master_upper_dev_link(struct net_device *dev,
4728 struct net_device *upper_dev,
4731 void netdev_upper_dev_unlink(struct net_device *dev,
4732 struct net_device *upper_dev);
4733 int netdev_adjacent_change_prepare(struct net_device *old_dev,
4734 struct net_device *new_dev,
4735 struct net_device *dev,
4737 void netdev_adjacent_change_commit(struct net_device *old_dev,
4738 struct net_device *new_dev,
4739 struct net_device *dev);
4740 void netdev_adjacent_change_abort(struct net_device *old_dev,
4741 struct net_device *new_dev,
4742 struct net_device *dev);
4743 void netdev_adjacent_rename_links(struct net_device *dev, char *oldname);
4744 void *netdev_lower_dev_get_private(struct net_device *dev,
4745 struct net_device *lower_dev);
4746 void netdev_lower_state_changed(struct net_device *lower_dev,
4774 void netdev_bonding_info_change(struct net_device *dev,
4778 void ethtool_notify(struct net_device *dev, unsigned int cmd, const void *data);
4780 static inline void ethtool_notify(struct net_device *dev, unsigned int cmd, in ethtool_notify()
4817 void netdev_rx_csum_fault(struct net_device *dev, struct sk_buff *skb);
4819 static inline void netdev_rx_csum_fault(struct net_device *dev, in netdev_rx_csum_fault()
4835 struct sk_buff *skb, struct net_device *dev, in __netdev_start_xmit()
4847 static inline netdev_tx_t netdev_start_xmit(struct sk_buff *skb, struct net_device *dev, in netdev_start_xmit()
4867 const char *netdev_drivername(const struct net_device *dev);
4885 struct net_device *dev) in netdev_get_wanted_features()
4902 int __netdev_update_features(struct net_device *dev);
4903 void netdev_update_features(struct net_device *dev);
4904 void netdev_change_features(struct net_device *dev);
4906 void netif_stacked_transfer_operstate(const struct net_device *rootdev,
4907 struct net_device *dev);
4910 struct net_device *dev,
4956 static inline void netif_set_gso_max_size(struct net_device *dev, in netif_set_gso_max_size()
4975 static inline bool netif_is_macsec(const struct net_device *dev) in netif_is_macsec()
4980 static inline bool netif_is_macvlan(const struct net_device *dev) in netif_is_macvlan()
4985 static inline bool netif_is_macvlan_port(const struct net_device *dev) in netif_is_macvlan_port()
4990 static inline bool netif_is_bond_master(const struct net_device *dev) in netif_is_bond_master()
4995 static inline bool netif_is_bond_slave(const struct net_device *dev) in netif_is_bond_slave()
5000 static inline bool netif_supports_nofcs(struct net_device *dev) in netif_supports_nofcs()
5005 static inline bool netif_has_l3_rx_handler(const struct net_device *dev) in netif_has_l3_rx_handler()
5010 static inline bool netif_is_l3_master(const struct net_device *dev) in netif_is_l3_master()
5015 static inline bool netif_is_l3_slave(const struct net_device *dev) in netif_is_l3_slave()
5020 static inline bool netif_is_bridge_master(const struct net_device *dev) in netif_is_bridge_master()
5025 static inline bool netif_is_bridge_port(const struct net_device *dev) in netif_is_bridge_port()
5030 static inline bool netif_is_ovs_master(const struct net_device *dev) in netif_is_ovs_master()
5035 static inline bool netif_is_ovs_port(const struct net_device *dev) in netif_is_ovs_port()
5040 static inline bool netif_is_any_bridge_port(const struct net_device *dev) in netif_is_any_bridge_port()
5045 static inline bool netif_is_team_master(const struct net_device *dev) in netif_is_team_master()
5050 static inline bool netif_is_team_port(const struct net_device *dev) in netif_is_team_port()
5055 static inline bool netif_is_lag_master(const struct net_device *dev) in netif_is_lag_master()
5060 static inline bool netif_is_lag_port(const struct net_device *dev) in netif_is_lag_port()
5065 static inline bool netif_is_rxfh_configured(const struct net_device *dev) in netif_is_rxfh_configured()
5070 static inline bool netif_is_failover(const struct net_device *dev) in netif_is_failover()
5075 static inline bool netif_is_failover_slave(const struct net_device *dev) in netif_is_failover_slave()
5081 static inline void netif_keep_dst(struct net_device *dev) in netif_keep_dst()
5087 static inline bool netif_reduces_vlan_mtu(struct net_device *dev) in netif_reduces_vlan_mtu()
5099 static inline const char *netdev_name(const struct net_device *dev) in netdev_name()
5106 static inline bool netdev_unregistering(const struct net_device *dev) in netdev_unregistering()
5111 static inline const char *netdev_reg_state(const struct net_device *dev) in netdev_reg_state()
5127 void netdev_printk(const char *level, const struct net_device *dev,
5130 void netdev_emerg(const struct net_device *dev, const char *format, ...);
5132 void netdev_alert(const struct net_device *dev, const char *format, ...);
5134 void netdev_crit(const struct net_device *dev, const char *format, ...);
5136 void netdev_err(const struct net_device *dev, const char *format, ...);
5138 void netdev_warn(const struct net_device *dev, const char *format, ...);
5140 void netdev_notice(const struct net_device *dev, const char *format, ...);
5142 void netdev_info(const struct net_device *dev, const char *format, ...);
5304 extern struct net_device *blackhole_netdev;