Lines Matching refs:net_device
68 void netdev_set_default_ethtool_ops(struct net_device *dev,
264 int (*create) (struct sk_buff *skb, struct net_device *dev,
270 const struct net_device *dev,
332 struct net_device *dev;
593 struct net_device *dev;
610 struct net_device *sb_dev;
730 bool rps_may_expire_flow(struct net_device *dev, u16 rxq_index, u32 flow_id,
742 struct net_device *dev;
832 typedef u16 (*select_queue_fallback_t)(struct net_device *dev,
834 struct net_device *sb_dev);
1248 int (*ndo_init)(struct net_device *dev);
1249 void (*ndo_uninit)(struct net_device *dev);
1250 int (*ndo_open)(struct net_device *dev);
1251 int (*ndo_stop)(struct net_device *dev);
1253 struct net_device *dev);
1255 struct net_device *dev,
1257 u16 (*ndo_select_queue)(struct net_device *dev,
1259 struct net_device *sb_dev);
1260 void (*ndo_change_rx_flags)(struct net_device *dev,
1262 void (*ndo_set_rx_mode)(struct net_device *dev);
1263 int (*ndo_set_mac_address)(struct net_device *dev,
1265 int (*ndo_validate_addr)(struct net_device *dev);
1266 int (*ndo_do_ioctl)(struct net_device *dev,
1268 int (*ndo_set_config)(struct net_device *dev,
1270 int (*ndo_change_mtu)(struct net_device *dev,
1272 int (*ndo_neigh_setup)(struct net_device *dev,
1274 void (*ndo_tx_timeout) (struct net_device *dev);
1276 void (*ndo_get_stats64)(struct net_device *dev,
1278 bool (*ndo_has_offload_stats)(const struct net_device *dev, int attr_id);
1280 const struct net_device *dev,
1282 struct net_device_stats* (*ndo_get_stats)(struct net_device *dev);
1284 int (*ndo_vlan_rx_add_vid)(struct net_device *dev,
1286 int (*ndo_vlan_rx_kill_vid)(struct net_device *dev,
1289 void (*ndo_poll_controller)(struct net_device *dev);
1290 int (*ndo_netpoll_setup)(struct net_device *dev,
1292 void (*ndo_netpoll_cleanup)(struct net_device *dev);
1294 int (*ndo_set_vf_mac)(struct net_device *dev,
1296 int (*ndo_set_vf_vlan)(struct net_device *dev,
1299 int (*ndo_set_vf_rate)(struct net_device *dev,
1302 int (*ndo_set_vf_spoofchk)(struct net_device *dev,
1304 int (*ndo_set_vf_trust)(struct net_device *dev,
1306 int (*ndo_get_vf_config)(struct net_device *dev,
1309 int (*ndo_set_vf_link_state)(struct net_device *dev,
1311 int (*ndo_get_vf_stats)(struct net_device *dev,
1315 int (*ndo_set_vf_port)(struct net_device *dev,
1318 int (*ndo_get_vf_port)(struct net_device *dev,
1320 int (*ndo_set_vf_guid)(struct net_device *dev,
1324 struct net_device *dev,
1326 int (*ndo_setup_tc)(struct net_device *dev,
1330 int (*ndo_fcoe_enable)(struct net_device *dev);
1331 int (*ndo_fcoe_disable)(struct net_device *dev);
1332 int (*ndo_fcoe_ddp_setup)(struct net_device *dev,
1336 int (*ndo_fcoe_ddp_done)(struct net_device *dev,
1338 int (*ndo_fcoe_ddp_target)(struct net_device *dev,
1342 int (*ndo_fcoe_get_hbainfo)(struct net_device *dev,
1349 int (*ndo_fcoe_get_wwn)(struct net_device *dev,
1354 int (*ndo_rx_flow_steer)(struct net_device *dev,
1359 int (*ndo_add_slave)(struct net_device *dev,
1360 struct net_device *slave_dev,
1362 int (*ndo_del_slave)(struct net_device *dev,
1363 struct net_device *slave_dev);
1364 netdev_features_t (*ndo_fix_features)(struct net_device *dev,
1366 int (*ndo_set_features)(struct net_device *dev,
1368 int (*ndo_neigh_construct)(struct net_device *dev,
1370 void (*ndo_neigh_destroy)(struct net_device *dev,
1375 struct net_device *dev,
1382 struct net_device *dev,
1387 struct net_device *dev,
1388 struct net_device *filter_dev,
1392 struct net_device *dev,
1396 int (*ndo_bridge_setlink)(struct net_device *dev,
1402 struct net_device *dev,
1405 int (*ndo_bridge_dellink)(struct net_device *dev,
1408 int (*ndo_change_carrier)(struct net_device *dev,
1410 int (*ndo_get_phys_port_id)(struct net_device *dev,
1412 int (*ndo_get_port_parent_id)(struct net_device *dev,
1414 int (*ndo_get_phys_port_name)(struct net_device *dev,
1416 void (*ndo_udp_tunnel_add)(struct net_device *dev,
1418 void (*ndo_udp_tunnel_del)(struct net_device *dev,
1420 void* (*ndo_dfwd_add_station)(struct net_device *pdev,
1421 struct net_device *dev);
1422 void (*ndo_dfwd_del_station)(struct net_device *pdev,
1425 int (*ndo_set_tx_maxrate)(struct net_device *dev,
1428 int (*ndo_get_iflink)(const struct net_device *dev);
1429 int (*ndo_change_proto_down)(struct net_device *dev,
1431 int (*ndo_fill_metadata_dst)(struct net_device *dev,
1433 void (*ndo_set_rx_headroom)(struct net_device *dev,
1435 int (*ndo_bpf)(struct net_device *dev,
1437 int (*ndo_xdp_xmit)(struct net_device *dev, int n,
1440 int (*ndo_xsk_wakeup)(struct net_device *dev,
1442 struct devlink_port * (*ndo_get_devlink_port)(struct net_device *dev);
1781 struct net_device { struct
2006 void (*priv_destructor)(struct net_device *dev); argument
2063 #define to_net_dev(d) container_of(d, struct net_device, dev) argument
2065 static inline bool netif_elide_gro(const struct net_device *dev) in netif_elide_gro()
2075 int netdev_get_prio_tc_map(const struct net_device *dev, u32 prio) in netdev_get_prio_tc_map()
2081 int netdev_set_prio_tc_map(struct net_device *dev, u8 prio, u8 tc) in netdev_set_prio_tc_map()
2090 int netdev_txq_to_tc(struct net_device *dev, unsigned int txq);
2091 void netdev_reset_tc(struct net_device *dev);
2092 int netdev_set_tc_queue(struct net_device *dev, u8 tc, u16 count, u16 offset);
2093 int netdev_set_num_tc(struct net_device *dev, u8 num_tc);
2096 int netdev_get_num_tc(struct net_device *dev) in netdev_get_num_tc()
2101 void netdev_unbind_sb_channel(struct net_device *dev,
2102 struct net_device *sb_dev);
2103 int netdev_bind_sb_channel_queue(struct net_device *dev,
2104 struct net_device *sb_dev,
2106 int netdev_set_sb_channel(struct net_device *dev, u16 channel);
2107 static inline int netdev_get_sb_channel(struct net_device *dev) in netdev_get_sb_channel()
2113 struct netdev_queue *netdev_get_tx_queue(const struct net_device *dev, in netdev_get_tx_queue()
2119 static inline struct netdev_queue *skb_get_tx_queue(const struct net_device *dev, in skb_get_tx_queue()
2125 static inline void netdev_for_each_tx_queue(struct net_device *dev, in netdev_for_each_tx_queue()
2126 void (*f)(struct net_device *, in netdev_for_each_tx_queue() argument
2137 u16 netdev_pick_tx(struct net_device *dev, struct sk_buff *skb,
2138 struct net_device *sb_dev);
2139 struct netdev_queue *netdev_core_pick_tx(struct net_device *dev,
2141 struct net_device *sb_dev);
2146 static inline unsigned netdev_get_fwd_headroom(struct net_device *dev) in netdev_get_fwd_headroom()
2151 static inline void netdev_set_rx_headroom(struct net_device *dev, int new_hr) in netdev_set_rx_headroom()
2158 static inline void netdev_reset_rx_headroom(struct net_device *dev) in netdev_reset_rx_headroom()
2167 struct net *dev_net(const struct net_device *dev) in dev_net()
2173 void dev_net_set(struct net_device *dev, struct net *net) in dev_net_set()
2184 static inline void *netdev_priv(const struct net_device *dev) in netdev_priv()
2186 return (char *)dev + ALIGN(sizeof(struct net_device), NETDEV_ALIGN); in netdev_priv()
2215 void netif_napi_add(struct net_device *dev, struct napi_struct *napi,
2229 static inline void netif_tx_napi_add(struct net_device *dev, in netif_tx_napi_add()
2351 struct net_device *dev; /* NULL is wildcarded here */
2353 struct net_device *,
2355 struct net_device *);
2358 struct net_device *);
2492 struct net_device *dev;
2510 struct net_device *upper_dev; /* new upper dev */
2527 struct net_device *dev) in netdev_notifier_info_init()
2533 static inline struct net_device *
2545 int call_netdevice_notifiers(unsigned long val, struct net_device *dev);
2565 #define net_device_entry(lh) list_entry(lh, struct net_device, dev_list)
2567 static inline struct net_device *next_net_device(struct net_device *dev) in next_net_device()
2577 static inline struct net_device *next_net_device_rcu(struct net_device *dev) in next_net_device_rcu()
2587 static inline struct net_device *first_net_device(struct net *net) in first_net_device()
2593 static inline struct net_device *first_net_device_rcu(struct net *net) in first_net_device_rcu()
2600 int netdev_boot_setup_check(struct net_device *dev);
2602 struct net_device *dev_getbyhwaddr_rcu(struct net *net, unsigned short type,
2604 struct net_device *dev_getfirstbyhwtype(struct net *net, unsigned short type);
2605 struct net_device *__dev_getfirstbyhwtype(struct net *net, unsigned short type);
2612 int dev_get_iflink(const struct net_device *dev);
2613 int dev_fill_metadata_dst(struct net_device *dev, struct sk_buff *skb);
2614 struct net_device *__dev_get_by_flags(struct net *net, unsigned short flags,
2616 struct net_device *dev_get_by_name(struct net *net, const char *name);
2617 struct net_device *dev_get_by_name_rcu(struct net *net, const char *name);
2618 struct net_device *__dev_get_by_name(struct net *net, const char *name);
2619 int dev_alloc_name(struct net_device *dev, const char *name);
2620 int dev_open(struct net_device *dev, struct netlink_ext_ack *extack);
2621 void dev_close(struct net_device *dev);
2623 void dev_disable_lro(struct net_device *dev);
2625 u16 dev_pick_tx_zero(struct net_device *dev, struct sk_buff *skb,
2626 struct net_device *sb_dev);
2627 u16 dev_pick_tx_cpu_id(struct net_device *dev, struct sk_buff *skb,
2628 struct net_device *sb_dev);
2630 int dev_queue_xmit_accel(struct sk_buff *skb, struct net_device *sb_dev);
2632 int register_netdevice(struct net_device *dev);
2633 void unregister_netdevice_queue(struct net_device *dev, struct list_head *head);
2635 static inline void unregister_netdevice(struct net_device *dev) in unregister_netdevice()
2640 int netdev_refcnt_read(const struct net_device *dev);
2641 void free_netdev(struct net_device *dev);
2642 void netdev_freemem(struct net_device *dev);
2644 int init_dummy_netdev(struct net_device *dev);
2646 struct net_device *dev_get_by_index(struct net *net, int ifindex);
2647 struct net_device *__dev_get_by_index(struct net *net, int ifindex);
2648 struct net_device *dev_get_by_index_rcu(struct net *net, int ifindex);
2649 struct net_device *dev_get_by_napi_id(unsigned int napi_id);
2651 int dev_restart(struct net_device *dev);
2900 static inline int dev_hard_header(struct sk_buff *skb, struct net_device *dev, in dev_hard_header()
2914 const struct net_device *dev = skb->dev; in dev_parse_header()
2923 const struct net_device *dev = skb->dev; in dev_parse_header_protocol()
2931 static inline bool dev_validate_header(const struct net_device *dev, in dev_validate_header()
2950 typedef int gifconf_func_t(struct net_device * dev, char __user * bufptr,
3059 static inline void netif_tx_schedule_all(struct net_device *dev) in netif_tx_schedule_all()
3078 static inline void netif_start_queue(struct net_device *dev) in netif_start_queue()
3083 static inline void netif_tx_start_all_queues(struct net_device *dev) in netif_tx_start_all_queues()
3102 static inline void netif_wake_queue(struct net_device *dev) in netif_wake_queue()
3107 static inline void netif_tx_wake_all_queues(struct net_device *dev) in netif_tx_wake_all_queues()
3129 static inline void netif_stop_queue(struct net_device *dev) in netif_stop_queue()
3134 void netif_tx_stop_all_queues(struct net_device *dev);
3135 void netdev_update_lockdep_key(struct net_device *dev);
3148 static inline bool netif_queue_stopped(const struct net_device *dev) in netif_queue_stopped()
3251 static inline void netdev_sent_queue(struct net_device *dev, unsigned int bytes) in netdev_sent_queue()
3256 static inline bool __netdev_sent_queue(struct net_device *dev, in __netdev_sent_queue()
3298 static inline void netdev_completed_queue(struct net_device *dev, in netdev_completed_queue()
3319 static inline void netdev_reset_queue(struct net_device *dev_queue) in netdev_reset_queue()
3332 static inline u16 netdev_cap_txqueue(struct net_device *dev, u16 queue_index) in netdev_cap_txqueue()
3350 static inline bool netif_running(const struct net_device *dev) in netif_running()
3369 static inline void netif_start_subqueue(struct net_device *dev, u16 queue_index) in netif_start_subqueue()
3383 static inline void netif_stop_subqueue(struct net_device *dev, u16 queue_index) in netif_stop_subqueue()
3396 static inline bool __netif_subqueue_stopped(const struct net_device *dev, in __netif_subqueue_stopped()
3404 static inline bool netif_subqueue_stopped(const struct net_device *dev, in netif_subqueue_stopped()
3417 static inline void netif_wake_subqueue(struct net_device *dev, u16 queue_index) in netif_wake_subqueue()
3425 int netif_set_xps_queue(struct net_device *dev, const struct cpumask *mask,
3427 int __netif_set_xps_queue(struct net_device *dev, const unsigned long *mask,
3514 static inline int netif_set_xps_queue(struct net_device *dev, in netif_set_xps_queue()
3521 static inline int __netif_set_xps_queue(struct net_device *dev, in __netif_set_xps_queue()
3535 static inline bool netif_is_multiqueue(const struct net_device *dev) in netif_is_multiqueue()
3540 int netif_set_real_num_tx_queues(struct net_device *dev, unsigned int txq);
3543 int netif_set_real_num_rx_queues(struct net_device *dev, unsigned int rxq);
3545 static inline int netif_set_real_num_rx_queues(struct net_device *dev, in netif_set_real_num_rx_queues()
3554 __netif_get_rx_queue(struct net_device *dev, unsigned int rxq) in __netif_get_rx_queue()
3563 struct net_device *dev = queue->dev; in get_netdev_rx_queue_index()
3641 bool netdev_is_rx_handler_busy(struct net_device *dev);
3642 int netdev_rx_handler_register(struct net_device *dev,
3645 void netdev_rx_handler_unregister(struct net_device *dev);
3652 unsigned int dev_get_flags(const struct net_device *);
3653 int __dev_change_flags(struct net_device *dev, unsigned int flags,
3655 int dev_change_flags(struct net_device *dev, unsigned int flags,
3657 void __dev_notify_flags(struct net_device *, unsigned int old_flags,
3659 int dev_change_name(struct net_device *, const char *);
3660 int dev_set_alias(struct net_device *, const char *, size_t);
3661 int dev_get_alias(const struct net_device *, char *, size_t);
3662 int dev_change_net_namespace(struct net_device *, struct net *, const char *);
3663 int __dev_set_mtu(struct net_device *, int);
3664 int dev_set_mtu_ext(struct net_device *dev, int mtu,
3666 int dev_set_mtu(struct net_device *, int);
3667 int dev_change_tx_queue_len(struct net_device *, unsigned long);
3668 void dev_set_group(struct net_device *, int);
3669 int dev_pre_changeaddr_notify(struct net_device *dev, const char *addr,
3671 int dev_set_mac_address(struct net_device *dev, struct sockaddr *sa,
3673 int dev_change_carrier(struct net_device *, bool new_carrier);
3674 int dev_get_phys_port_id(struct net_device *dev,
3676 int dev_get_phys_port_name(struct net_device *dev,
3678 int dev_get_port_parent_id(struct net_device *dev,
3680 bool netdev_port_same_parent_id(struct net_device *a, struct net_device *b);
3681 int dev_change_proto_down(struct net_device *dev, bool proto_down);
3682 int dev_change_proto_down_generic(struct net_device *dev, bool proto_down);
3683 struct sk_buff *validate_xmit_skb_list(struct sk_buff *skb, struct net_device *dev, bool *again);
3684 struct sk_buff *dev_hard_start_xmit(struct sk_buff *skb, struct net_device *dev,
3687 typedef int (*bpf_op_t)(struct net_device *dev, struct netdev_bpf *bpf);
3688 int dev_change_xdp_fd(struct net_device *dev, struct netlink_ext_ack *extack,
3690 u32 __dev_xdp_query(struct net_device *dev, bpf_op_t xdp_op,
3692 int xdp_umem_query(struct net_device *dev, u16 queue_id);
3694 int __dev_forward_skb(struct net_device *dev, struct sk_buff *skb);
3695 int dev_forward_skb(struct net_device *dev, struct sk_buff *skb);
3696 bool is_skb_forwardable(const struct net_device *dev,
3699 static __always_inline int ____dev_forward_skb(struct net_device *dev, in ____dev_forward_skb()
3714 bool dev_nit_active(struct net_device *dev);
3715 void dev_queue_xmit_nit(struct sk_buff *skb, struct net_device *dev);
3729 static inline void dev_put(struct net_device *dev) in dev_put()
3740 static inline void dev_hold(struct net_device *dev) in dev_hold()
3754 void linkwatch_init_dev(struct net_device *dev);
3755 void linkwatch_fire_event(struct net_device *dev);
3756 void linkwatch_forget_dev(struct net_device *dev);
3764 static inline bool netif_carrier_ok(const struct net_device *dev) in netif_carrier_ok()
3769 unsigned long dev_trans_start(struct net_device *dev);
3771 void __netdev_watchdog_up(struct net_device *dev);
3773 void netif_carrier_on(struct net_device *dev);
3775 void netif_carrier_off(struct net_device *dev);
3789 static inline void netif_dormant_on(struct net_device *dev) in netif_dormant_on()
3801 static inline void netif_dormant_off(struct net_device *dev) in netif_dormant_off()
3813 static inline bool netif_dormant(const struct net_device *dev) in netif_dormant()
3825 static inline bool netif_oper_up(const struct net_device *dev) in netif_oper_up()
3837 static inline bool netif_device_present(struct net_device *dev) in netif_device_present()
3842 void netif_device_detach(struct net_device *dev);
3844 void netif_device_attach(struct net_device *dev);
3945 static inline void netif_trans_update(struct net_device *dev) in netif_trans_update()
3959 static inline void netif_tx_lock(struct net_device *dev) in netif_tx_lock()
3981 static inline void netif_tx_lock_bh(struct net_device *dev) in netif_tx_lock_bh()
3987 static inline void netif_tx_unlock(struct net_device *dev) in netif_tx_unlock()
4004 static inline void netif_tx_unlock_bh(struct net_device *dev) in netif_tx_unlock_bh()
4031 static inline void netif_tx_disable(struct net_device *dev) in netif_tx_disable()
4048 static inline void netif_addr_lock(struct net_device *dev) in netif_addr_lock()
4053 static inline void netif_addr_lock_bh(struct net_device *dev) in netif_addr_lock_bh()
4058 static inline void netif_addr_unlock(struct net_device *dev) in netif_addr_unlock()
4063 static inline void netif_addr_unlock_bh(struct net_device *dev) in netif_addr_unlock_bh()
4077 void ether_setup(struct net_device *dev);
4080 struct net_device *alloc_netdev_mqs(int sizeof_priv, const char *name,
4082 void (*setup)(struct net_device *),
4084 int dev_get_valid_name(struct net *net, struct net_device *dev,
4094 int register_netdev(struct net_device *dev);
4095 void unregister_netdev(struct net_device *dev);
4103 struct net_device *dev,
4104 int (*sync)(struct net_device *, const unsigned char *),
4105 int (*unsync)(struct net_device *,
4108 struct net_device *dev,
4109 int (*sync)(struct net_device *,
4111 int (*unsync)(struct net_device *,
4114 struct net_device *dev,
4115 int (*unsync)(struct net_device *,
4118 struct net_device *dev,
4119 int (*unsync)(struct net_device *,
4124 int dev_addr_add(struct net_device *dev, const unsigned char *addr,
4126 int dev_addr_del(struct net_device *dev, const unsigned char *addr,
4128 void dev_addr_flush(struct net_device *dev);
4129 int dev_addr_init(struct net_device *dev);
4132 int dev_uc_add(struct net_device *dev, const unsigned char *addr);
4133 int dev_uc_add_excl(struct net_device *dev, const unsigned char *addr);
4134 int dev_uc_del(struct net_device *dev, const unsigned char *addr);
4135 int dev_uc_sync(struct net_device *to, struct net_device *from);
4136 int dev_uc_sync_multiple(struct net_device *to, struct net_device *from);
4137 void dev_uc_unsync(struct net_device *to, struct net_device *from);
4138 void dev_uc_flush(struct net_device *dev);
4139 void dev_uc_init(struct net_device *dev);
4150 static inline int __dev_uc_sync(struct net_device *dev, in __dev_uc_sync()
4151 int (*sync)(struct net_device *, in __dev_uc_sync() argument
4153 int (*unsync)(struct net_device *, in __dev_uc_sync() argument
4166 static inline void __dev_uc_unsync(struct net_device *dev, in __dev_uc_unsync()
4167 int (*unsync)(struct net_device *, in __dev_uc_unsync() argument
4174 int dev_mc_add(struct net_device *dev, const unsigned char *addr);
4175 int dev_mc_add_global(struct net_device *dev, const unsigned char *addr);
4176 int dev_mc_add_excl(struct net_device *dev, const unsigned char *addr);
4177 int dev_mc_del(struct net_device *dev, const unsigned char *addr);
4178 int dev_mc_del_global(struct net_device *dev, const unsigned char *addr);
4179 int dev_mc_sync(struct net_device *to, struct net_device *from);
4180 int dev_mc_sync_multiple(struct net_device *to, struct net_device *from);
4181 void dev_mc_unsync(struct net_device *to, struct net_device *from);
4182 void dev_mc_flush(struct net_device *dev);
4183 void dev_mc_init(struct net_device *dev);
4194 static inline int __dev_mc_sync(struct net_device *dev, in __dev_mc_sync()
4195 int (*sync)(struct net_device *, in __dev_mc_sync() argument
4197 int (*unsync)(struct net_device *, in __dev_mc_sync() argument
4210 static inline void __dev_mc_unsync(struct net_device *dev, in __dev_mc_unsync()
4211 int (*unsync)(struct net_device *, in __dev_mc_unsync() argument
4218 void dev_set_rx_mode(struct net_device *dev);
4219 void __dev_set_rx_mode(struct net_device *dev);
4220 int dev_set_promiscuity(struct net_device *dev, int inc);
4221 int dev_set_allmulti(struct net_device *dev, int inc);
4222 void netdev_state_change(struct net_device *dev);
4223 void netdev_notify_peers(struct net_device *dev);
4224 void netdev_features_change(struct net_device *dev);
4227 struct rtnl_link_stats64 *dev_get_stats(struct net_device *dev,
4241 bool netdev_has_upper_dev(struct net_device *dev, struct net_device *upper_dev);
4242 struct net_device *netdev_upper_get_next_dev_rcu(struct net_device *dev,
4244 struct net_device *netdev_all_upper_get_next_dev_rcu(struct net_device *dev,
4254 int netdev_walk_all_upper_dev_rcu(struct net_device *dev,
4255 int (*fn)(struct net_device *upper_dev,
4259 bool netdev_has_upper_dev_all_rcu(struct net_device *dev,
4260 struct net_device *upper_dev);
4262 bool netdev_has_any_upper_dev(struct net_device *dev);
4264 void *netdev_lower_get_next_private(struct net_device *dev,
4266 void *netdev_lower_get_next_private_rcu(struct net_device *dev,
4281 void *netdev_lower_get_next(struct net_device *dev,
4290 struct net_device *netdev_all_lower_get_next(struct net_device *dev,
4292 struct net_device *netdev_all_lower_get_next_rcu(struct net_device *dev,
4295 int netdev_walk_all_lower_dev(struct net_device *dev,
4296 int (*fn)(struct net_device *lower_dev,
4299 int netdev_walk_all_lower_dev_rcu(struct net_device *dev,
4300 int (*fn)(struct net_device *lower_dev,
4305 void *netdev_lower_get_first_private_rcu(struct net_device *dev);
4306 struct net_device *netdev_master_upper_dev_get(struct net_device *dev);
4307 struct net_device *netdev_master_upper_dev_get_rcu(struct net_device *dev);
4308 int netdev_upper_dev_link(struct net_device *dev, struct net_device *upper_dev,
4310 int netdev_master_upper_dev_link(struct net_device *dev,
4311 struct net_device *upper_dev,
4314 void netdev_upper_dev_unlink(struct net_device *dev,
4315 struct net_device *upper_dev);
4316 int netdev_adjacent_change_prepare(struct net_device *old_dev,
4317 struct net_device *new_dev,
4318 struct net_device *dev,
4320 void netdev_adjacent_change_commit(struct net_device *old_dev,
4321 struct net_device *new_dev,
4322 struct net_device *dev);
4323 void netdev_adjacent_change_abort(struct net_device *old_dev,
4324 struct net_device *new_dev,
4325 struct net_device *dev);
4326 void netdev_adjacent_rename_links(struct net_device *dev, char *oldname);
4327 void *netdev_lower_dev_get_private(struct net_device *dev,
4328 struct net_device *lower_dev);
4329 void netdev_lower_state_changed(struct net_device *lower_dev,
4357 void netdev_bonding_info_change(struct net_device *dev,
4391 void netdev_rx_csum_fault(struct net_device *dev, struct sk_buff *skb);
4393 static inline void netdev_rx_csum_fault(struct net_device *dev, in netdev_rx_csum_fault()
4409 struct sk_buff *skb, struct net_device *dev, in __netdev_start_xmit()
4421 static inline netdev_tx_t netdev_start_xmit(struct sk_buff *skb, struct net_device *dev, in netdev_start_xmit()
4451 const char *netdev_drivername(const struct net_device *dev);
4469 struct net_device *dev) in netdev_get_wanted_features()
4486 int __netdev_update_features(struct net_device *dev);
4487 void netdev_update_features(struct net_device *dev);
4488 void netdev_change_features(struct net_device *dev);
4490 void netif_stacked_transfer_operstate(const struct net_device *rootdev,
4491 struct net_device *dev);
4494 struct net_device *dev,
4539 static inline void netif_set_gso_max_size(struct net_device *dev, in netif_set_gso_max_size()
4558 static inline bool netif_is_macsec(const struct net_device *dev) in netif_is_macsec()
4563 static inline bool netif_is_macvlan(const struct net_device *dev) in netif_is_macvlan()
4568 static inline bool netif_is_macvlan_port(const struct net_device *dev) in netif_is_macvlan_port()
4573 static inline bool netif_is_bond_master(const struct net_device *dev) in netif_is_bond_master()
4578 static inline bool netif_is_bond_slave(const struct net_device *dev) in netif_is_bond_slave()
4583 static inline bool netif_supports_nofcs(struct net_device *dev) in netif_supports_nofcs()
4588 static inline bool netif_has_l3_rx_handler(const struct net_device *dev) in netif_has_l3_rx_handler()
4593 static inline bool netif_is_l3_master(const struct net_device *dev) in netif_is_l3_master()
4598 static inline bool netif_is_l3_slave(const struct net_device *dev) in netif_is_l3_slave()
4603 static inline bool netif_is_bridge_master(const struct net_device *dev) in netif_is_bridge_master()
4608 static inline bool netif_is_bridge_port(const struct net_device *dev) in netif_is_bridge_port()
4613 static inline bool netif_is_ovs_master(const struct net_device *dev) in netif_is_ovs_master()
4618 static inline bool netif_is_ovs_port(const struct net_device *dev) in netif_is_ovs_port()
4623 static inline bool netif_is_team_master(const struct net_device *dev) in netif_is_team_master()
4628 static inline bool netif_is_team_port(const struct net_device *dev) in netif_is_team_port()
4633 static inline bool netif_is_lag_master(const struct net_device *dev) in netif_is_lag_master()
4638 static inline bool netif_is_lag_port(const struct net_device *dev) in netif_is_lag_port()
4643 static inline bool netif_is_rxfh_configured(const struct net_device *dev) in netif_is_rxfh_configured()
4648 static inline bool netif_is_failover(const struct net_device *dev) in netif_is_failover()
4653 static inline bool netif_is_failover_slave(const struct net_device *dev) in netif_is_failover_slave()
4659 static inline void netif_keep_dst(struct net_device *dev) in netif_keep_dst()
4665 static inline bool netif_reduces_vlan_mtu(struct net_device *dev) in netif_reduces_vlan_mtu()
4677 static inline const char *netdev_name(const struct net_device *dev) in netdev_name()
4684 static inline bool netdev_unregistering(const struct net_device *dev) in netdev_unregistering()
4689 static inline const char *netdev_reg_state(const struct net_device *dev) in netdev_reg_state()
4705 void netdev_printk(const char *level, const struct net_device *dev,
4708 void netdev_emerg(const struct net_device *dev, const char *format, ...);
4710 void netdev_alert(const struct net_device *dev, const char *format, ...);
4712 void netdev_crit(const struct net_device *dev, const char *format, ...);
4714 void netdev_err(const struct net_device *dev, const char *format, ...);
4716 void netdev_warn(const struct net_device *dev, const char *format, ...);
4718 void netdev_notice(const struct net_device *dev, const char *format, ...);
4720 void netdev_info(const struct net_device *dev, const char *format, ...);
4880 extern struct net_device *blackhole_netdev;