Lines Matching refs:net_device

79 void netdev_set_default_ethtool_ops(struct net_device *dev,
295 int (*create) (struct sk_buff *skb, struct net_device *dev,
301 const struct net_device *dev,
352 struct net_device *dev;
513 int dev_set_threaded(struct net_device *dev, bool threaded);
599 struct net_device *dev;
618 struct net_device *sb_dev;
757 bool rps_may_expire_flow(struct net_device *dev, u16 rxq_index, u32 flow_id,
770 struct net_device *dev;
878 typedef u16 (*select_queue_fallback_t)(struct net_device *dev,
880 struct net_device *sb_dev);
893 const struct net_device *dev;
932 const struct net_device *dev;
1389 int (*ndo_init)(struct net_device *dev);
1390 void (*ndo_uninit)(struct net_device *dev);
1391 int (*ndo_open)(struct net_device *dev);
1392 int (*ndo_stop)(struct net_device *dev);
1394 struct net_device *dev);
1396 struct net_device *dev,
1398 u16 (*ndo_select_queue)(struct net_device *dev,
1400 struct net_device *sb_dev);
1401 void (*ndo_change_rx_flags)(struct net_device *dev,
1403 void (*ndo_set_rx_mode)(struct net_device *dev);
1404 int (*ndo_set_mac_address)(struct net_device *dev,
1406 int (*ndo_validate_addr)(struct net_device *dev);
1407 int (*ndo_do_ioctl)(struct net_device *dev,
1409 int (*ndo_eth_ioctl)(struct net_device *dev,
1411 int (*ndo_siocbond)(struct net_device *dev,
1413 int (*ndo_siocwandev)(struct net_device *dev,
1415 int (*ndo_siocdevprivate)(struct net_device *dev,
1418 int (*ndo_set_config)(struct net_device *dev,
1420 int (*ndo_change_mtu)(struct net_device *dev,
1422 int (*ndo_neigh_setup)(struct net_device *dev,
1424 void (*ndo_tx_timeout) (struct net_device *dev,
1427 void (*ndo_get_stats64)(struct net_device *dev,
1429 bool (*ndo_has_offload_stats)(const struct net_device *dev, int attr_id);
1431 const struct net_device *dev,
1433 struct net_device_stats* (*ndo_get_stats)(struct net_device *dev);
1435 int (*ndo_vlan_rx_add_vid)(struct net_device *dev,
1437 int (*ndo_vlan_rx_kill_vid)(struct net_device *dev,
1440 void (*ndo_poll_controller)(struct net_device *dev);
1441 int (*ndo_netpoll_setup)(struct net_device *dev,
1443 void (*ndo_netpoll_cleanup)(struct net_device *dev);
1445 int (*ndo_set_vf_mac)(struct net_device *dev,
1447 int (*ndo_set_vf_vlan)(struct net_device *dev,
1450 int (*ndo_set_vf_rate)(struct net_device *dev,
1453 int (*ndo_set_vf_spoofchk)(struct net_device *dev,
1455 int (*ndo_set_vf_trust)(struct net_device *dev,
1457 int (*ndo_get_vf_config)(struct net_device *dev,
1460 int (*ndo_set_vf_link_state)(struct net_device *dev,
1462 int (*ndo_get_vf_stats)(struct net_device *dev,
1466 int (*ndo_set_vf_port)(struct net_device *dev,
1469 int (*ndo_get_vf_port)(struct net_device *dev,
1471 int (*ndo_get_vf_guid)(struct net_device *dev,
1475 int (*ndo_set_vf_guid)(struct net_device *dev,
1479 struct net_device *dev,
1481 int (*ndo_setup_tc)(struct net_device *dev,
1485 int (*ndo_fcoe_enable)(struct net_device *dev);
1486 int (*ndo_fcoe_disable)(struct net_device *dev);
1487 int (*ndo_fcoe_ddp_setup)(struct net_device *dev,
1491 int (*ndo_fcoe_ddp_done)(struct net_device *dev,
1493 int (*ndo_fcoe_ddp_target)(struct net_device *dev,
1497 int (*ndo_fcoe_get_hbainfo)(struct net_device *dev,
1504 int (*ndo_fcoe_get_wwn)(struct net_device *dev,
1509 int (*ndo_rx_flow_steer)(struct net_device *dev,
1514 int (*ndo_add_slave)(struct net_device *dev,
1515 struct net_device *slave_dev,
1517 int (*ndo_del_slave)(struct net_device *dev,
1518 struct net_device *slave_dev);
1519 struct net_device* (*ndo_get_xmit_slave)(struct net_device *dev,
1522 struct net_device* (*ndo_sk_get_lower_dev)(struct net_device *dev,
1524 netdev_features_t (*ndo_fix_features)(struct net_device *dev,
1526 int (*ndo_set_features)(struct net_device *dev,
1528 int (*ndo_neigh_construct)(struct net_device *dev,
1530 void (*ndo_neigh_destroy)(struct net_device *dev,
1535 struct net_device *dev,
1542 struct net_device *dev,
1547 struct net_device *dev,
1552 struct net_device *dev,
1553 struct net_device *filter_dev,
1557 struct net_device *dev,
1561 int (*ndo_bridge_setlink)(struct net_device *dev,
1567 struct net_device *dev,
1570 int (*ndo_bridge_dellink)(struct net_device *dev,
1573 int (*ndo_change_carrier)(struct net_device *dev,
1575 int (*ndo_get_phys_port_id)(struct net_device *dev,
1577 int (*ndo_get_port_parent_id)(struct net_device *dev,
1579 int (*ndo_get_phys_port_name)(struct net_device *dev,
1581 void* (*ndo_dfwd_add_station)(struct net_device *pdev,
1582 struct net_device *dev);
1583 void (*ndo_dfwd_del_station)(struct net_device *pdev,
1586 int (*ndo_set_tx_maxrate)(struct net_device *dev,
1589 int (*ndo_get_iflink)(const struct net_device *dev);
1590 int (*ndo_fill_metadata_dst)(struct net_device *dev,
1592 void (*ndo_set_rx_headroom)(struct net_device *dev,
1594 int (*ndo_bpf)(struct net_device *dev,
1596 int (*ndo_xdp_xmit)(struct net_device *dev, int n,
1599 struct net_device * (*ndo_xdp_get_xmit_slave)(struct net_device *dev,
1601 int (*ndo_xsk_wakeup)(struct net_device *dev,
1603 struct devlink_port * (*ndo_get_devlink_port)(struct net_device *dev);
1604 int (*ndo_tunnel_ctl)(struct net_device *dev,
1606 struct net_device * (*ndo_get_peer_dev)(struct net_device *dev);
1609 ktime_t (*ndo_get_tstamp)(struct net_device *dev,
2006 struct net_device { struct
2266 void (*priv_destructor)(struct net_device *dev); argument
2353 #define to_net_dev(d) container_of(d, struct net_device, dev) argument
2355 static inline bool netif_elide_gro(const struct net_device *dev) in netif_elide_gro()
2365 int netdev_get_prio_tc_map(const struct net_device *dev, u32 prio) in netdev_get_prio_tc_map()
2371 int netdev_set_prio_tc_map(struct net_device *dev, u8 prio, u8 tc) in netdev_set_prio_tc_map()
2380 int netdev_txq_to_tc(struct net_device *dev, unsigned int txq);
2381 void netdev_reset_tc(struct net_device *dev);
2382 int netdev_set_tc_queue(struct net_device *dev, u8 tc, u16 count, u16 offset);
2383 int netdev_set_num_tc(struct net_device *dev, u8 num_tc);
2386 int netdev_get_num_tc(struct net_device *dev) in netdev_get_num_tc()
2407 void netdev_unbind_sb_channel(struct net_device *dev,
2408 struct net_device *sb_dev);
2409 int netdev_bind_sb_channel_queue(struct net_device *dev,
2410 struct net_device *sb_dev,
2412 int netdev_set_sb_channel(struct net_device *dev, u16 channel);
2413 static inline int netdev_get_sb_channel(struct net_device *dev) in netdev_get_sb_channel()
2419 struct netdev_queue *netdev_get_tx_queue(const struct net_device *dev, in netdev_get_tx_queue()
2425 static inline struct netdev_queue *skb_get_tx_queue(const struct net_device *dev, in skb_get_tx_queue()
2431 static inline void netdev_for_each_tx_queue(struct net_device *dev, in netdev_for_each_tx_queue()
2432 void (*f)(struct net_device *, in netdev_for_each_tx_queue() argument
2458 u16 netdev_pick_tx(struct net_device *dev, struct sk_buff *skb,
2459 struct net_device *sb_dev);
2460 struct netdev_queue *netdev_core_pick_tx(struct net_device *dev,
2462 struct net_device *sb_dev);
2467 static inline unsigned netdev_get_fwd_headroom(struct net_device *dev) in netdev_get_fwd_headroom()
2472 static inline void netdev_set_rx_headroom(struct net_device *dev, int new_hr) in netdev_set_rx_headroom()
2479 static inline void netdev_reset_rx_headroom(struct net_device *dev) in netdev_reset_rx_headroom()
2484 static inline void *netdev_get_ml_priv(struct net_device *dev, in netdev_get_ml_priv()
2493 static inline void netdev_set_ml_priv(struct net_device *dev, in netdev_set_ml_priv()
2511 struct net *dev_net(const struct net_device *dev) in dev_net()
2517 void dev_net_set(struct net_device *dev, struct net *net) in dev_net_set()
2528 static inline void *netdev_priv(const struct net_device *dev) in netdev_priv()
2530 return (char *)dev + ALIGN(sizeof(struct net_device), NETDEV_ALIGN); in netdev_priv()
2549 void netif_napi_add_weight(struct net_device *dev, struct napi_struct *napi,
2562 netif_napi_add(struct net_device *dev, struct napi_struct *napi, in netif_napi_add()
2569 netif_napi_add_tx_weight(struct net_device *dev, in netif_napi_add_tx_weight()
2588 static inline void netif_napi_add_tx(struct net_device *dev, in netif_napi_add_tx()
2620 struct net_device *dev; /* NULL is wildcarded here */
2623 struct net_device *,
2625 struct net_device *);
2628 struct net_device *);
2666 void dev_lstats_read(struct net_device *dev, u64 *packets, u64 *bytes);
2668 static inline void dev_sw_netstats_rx_add(struct net_device *dev, unsigned int len) in dev_sw_netstats_rx_add()
2678 static inline void dev_sw_netstats_tx_add(struct net_device *dev, in dev_sw_netstats_tx_add()
2690 static inline void dev_lstats_add(struct net_device *dev, unsigned int len) in dev_lstats_add()
2817 int register_netdevice_notifier_dev_net(struct net_device *dev,
2820 int unregister_netdevice_notifier_dev_net(struct net_device *dev,
2825 struct net_device *dev;
2843 struct net_device *upper_dev; /* new upper dev */
2875 int netdev_offload_xstats_enable(struct net_device *dev,
2878 int netdev_offload_xstats_disable(struct net_device *dev,
2880 bool netdev_offload_xstats_enabled(const struct net_device *dev,
2882 int netdev_offload_xstats_get(struct net_device *dev,
2891 void netdev_offload_xstats_push_delta(struct net_device *dev,
2896 struct net_device *dev) in netdev_notifier_info_init()
2902 static inline struct net_device *
2914 int call_netdevice_notifiers(unsigned long val, struct net_device *dev);
2937 #define net_device_entry(lh) list_entry(lh, struct net_device, dev_list)
2939 static inline struct net_device *next_net_device(struct net_device *dev) in next_net_device()
2949 static inline struct net_device *next_net_device_rcu(struct net_device *dev) in next_net_device_rcu()
2959 static inline struct net_device *first_net_device(struct net *net) in first_net_device()
2965 static inline struct net_device *first_net_device_rcu(struct net *net) in first_net_device_rcu()
2972 int netdev_boot_setup_check(struct net_device *dev);
2973 struct net_device *dev_getbyhwaddr_rcu(struct net *net, unsigned short type,
2975 struct net_device *dev_getfirstbyhwtype(struct net *net, unsigned short type);
2982 int dev_get_iflink(const struct net_device *dev);
2983 int dev_fill_metadata_dst(struct net_device *dev, struct sk_buff *skb);
2984 int dev_fill_forward_path(const struct net_device *dev, const u8 *daddr,
2986 struct net_device *__dev_get_by_flags(struct net *net, unsigned short flags,
2988 struct net_device *dev_get_by_name(struct net *net, const char *name);
2989 struct net_device *dev_get_by_name_rcu(struct net *net, const char *name);
2990 struct net_device *__dev_get_by_name(struct net *net, const char *name);
2992 int dev_alloc_name(struct net_device *dev, const char *name);
2993 int dev_open(struct net_device *dev, struct netlink_ext_ack *extack);
2994 void dev_close(struct net_device *dev);
2996 void dev_disable_lro(struct net_device *dev);
2998 u16 dev_pick_tx_zero(struct net_device *dev, struct sk_buff *skb,
2999 struct net_device *sb_dev);
3000 u16 dev_pick_tx_cpu_id(struct net_device *dev, struct sk_buff *skb,
3001 struct net_device *sb_dev);
3003 int __dev_queue_xmit(struct sk_buff *skb, struct net_device *sb_dev);
3012 struct net_device *sb_dev) in dev_queue_xmit_accel()
3027 int register_netdevice(struct net_device *dev);
3028 void unregister_netdevice_queue(struct net_device *dev, struct list_head *head);
3030 static inline void unregister_netdevice(struct net_device *dev) in unregister_netdevice()
3035 int netdev_refcnt_read(const struct net_device *dev);
3036 void free_netdev(struct net_device *dev);
3037 void netdev_freemem(struct net_device *dev);
3038 int init_dummy_netdev(struct net_device *dev);
3040 struct net_device *netdev_get_xmit_slave(struct net_device *dev,
3043 struct net_device *netdev_sk_get_lowest_dev(struct net_device *dev,
3045 struct net_device *dev_get_by_index(struct net *net, int ifindex);
3046 struct net_device *__dev_get_by_index(struct net *net, int ifindex);
3047 struct net_device *dev_get_by_index_rcu(struct net *net, int ifindex);
3048 struct net_device *dev_get_by_napi_id(unsigned int napi_id);
3049 int dev_restart(struct net_device *dev);
3052 static inline int dev_hard_header(struct sk_buff *skb, struct net_device *dev, in dev_hard_header()
3066 const struct net_device *dev = skb->dev; in dev_parse_header()
3075 const struct net_device *dev = skb->dev; in dev_parse_header_protocol()
3083 static inline bool dev_validate_header(const struct net_device *dev, in dev_validate_header()
3102 static inline bool dev_has_header(const struct net_device *dev) in dev_has_header()
3204 static inline void netif_tx_schedule_all(struct net_device *dev) in netif_tx_schedule_all()
3223 static inline void netif_start_queue(struct net_device *dev) in netif_start_queue()
3228 static inline void netif_tx_start_all_queues(struct net_device *dev) in netif_tx_start_all_queues()
3247 static inline void netif_wake_queue(struct net_device *dev) in netif_wake_queue()
3252 static inline void netif_tx_wake_all_queues(struct net_device *dev) in netif_tx_wake_all_queues()
3274 static inline void netif_stop_queue(struct net_device *dev) in netif_stop_queue()
3279 void netif_tx_stop_all_queues(struct net_device *dev);
3292 static inline bool netif_queue_stopped(const struct net_device *dev) in netif_queue_stopped()
3424 static inline void netdev_sent_queue(struct net_device *dev, unsigned int bytes) in netdev_sent_queue()
3429 static inline bool __netdev_sent_queue(struct net_device *dev, in __netdev_sent_queue()
3480 static inline void netdev_completed_queue(struct net_device *dev, in netdev_completed_queue()
3501 static inline void netdev_reset_queue(struct net_device *dev_queue) in netdev_reset_queue()
3514 static inline u16 netdev_cap_txqueue(struct net_device *dev, u16 queue_index) in netdev_cap_txqueue()
3532 static inline bool netif_running(const struct net_device *dev) in netif_running()
3551 static inline void netif_start_subqueue(struct net_device *dev, u16 queue_index) in netif_start_subqueue()
3565 static inline void netif_stop_subqueue(struct net_device *dev, u16 queue_index) in netif_stop_subqueue()
3578 static inline bool __netif_subqueue_stopped(const struct net_device *dev, in __netif_subqueue_stopped()
3593 static inline bool netif_subqueue_stopped(const struct net_device *dev, in netif_subqueue_stopped()
3606 static inline void netif_wake_subqueue(struct net_device *dev, u16 queue_index) in netif_wake_subqueue()
3614 int netif_set_xps_queue(struct net_device *dev, const struct cpumask *mask,
3616 int __netif_set_xps_queue(struct net_device *dev, const unsigned long *mask,
3703 static inline int netif_set_xps_queue(struct net_device *dev, in netif_set_xps_queue()
3710 static inline int __netif_set_xps_queue(struct net_device *dev, in __netif_set_xps_queue()
3724 static inline bool netif_is_multiqueue(const struct net_device *dev) in netif_is_multiqueue()
3729 int netif_set_real_num_tx_queues(struct net_device *dev, unsigned int txq);
3732 int netif_set_real_num_rx_queues(struct net_device *dev, unsigned int rxq);
3734 static inline int netif_set_real_num_rx_queues(struct net_device *dev, in netif_set_real_num_rx_queues()
3741 int netif_set_real_num_queues(struct net_device *dev,
3745 __netif_get_rx_queue(struct net_device *dev, unsigned int rxq) in __netif_get_rx_queue()
3754 struct net_device *dev = queue->dev; in get_netdev_rx_queue_index()
3836 bool netdev_is_rx_handler_busy(struct net_device *dev);
3837 int netdev_rx_handler_register(struct net_device *dev,
3840 void netdev_rx_handler_unregister(struct net_device *dev);
3853 unsigned int dev_get_flags(const struct net_device *);
3854 int __dev_change_flags(struct net_device *dev, unsigned int flags,
3856 int dev_change_flags(struct net_device *dev, unsigned int flags,
3858 void __dev_notify_flags(struct net_device *, unsigned int old_flags,
3860 int dev_set_alias(struct net_device *, const char *, size_t);
3861 int dev_get_alias(const struct net_device *, char *, size_t);
3862 int __dev_change_net_namespace(struct net_device *dev, struct net *net,
3865 int dev_change_net_namespace(struct net_device *dev, struct net *net, in dev_change_net_namespace()
3870 int __dev_set_mtu(struct net_device *, int);
3871 int dev_set_mtu(struct net_device *, int);
3872 int dev_pre_changeaddr_notify(struct net_device *dev, const char *addr,
3874 int dev_set_mac_address(struct net_device *dev, struct sockaddr *sa,
3876 int dev_set_mac_address_user(struct net_device *dev, struct sockaddr *sa,
3879 int dev_get_port_parent_id(struct net_device *dev,
3881 bool netdev_port_same_parent_id(struct net_device *a, struct net_device *b);
3882 struct sk_buff *validate_xmit_skb_list(struct sk_buff *skb, struct net_device *dev, bool *again);
3883 struct sk_buff *dev_hard_start_xmit(struct sk_buff *skb, struct net_device *dev,
3887 u8 dev_xdp_prog_count(struct net_device *dev);
3888 u32 dev_xdp_prog_id(struct net_device *dev, enum bpf_xdp_mode mode);
3890 int __dev_forward_skb(struct net_device *dev, struct sk_buff *skb);
3891 int dev_forward_skb(struct net_device *dev, struct sk_buff *skb);
3892 int dev_forward_skb_nomtu(struct net_device *dev, struct sk_buff *skb);
3893 bool is_skb_forwardable(const struct net_device *dev,
3896 static __always_inline bool __is_skb_forwardable(const struct net_device *dev, in __is_skb_forwardable()
3922 struct net_device_core_stats __percpu *netdev_core_stats_alloc(struct net_device *dev);
3924 static inline struct net_device_core_stats __percpu *dev_core_stats(struct net_device *dev) in dev_core_stats()
3936 static inline void dev_core_stats_##FIELD##_inc(struct net_device *dev) \
3949 static __always_inline int ____dev_forward_skb(struct net_device *dev, in DEV_CORE_STATS_INC()
3965 bool dev_nit_active(struct net_device *dev);
3966 void dev_queue_xmit_nit(struct sk_buff *skb, struct net_device *dev);
3968 static inline void __dev_put(struct net_device *dev) in __dev_put()
3979 static inline void __dev_hold(struct net_device *dev) in __dev_hold()
3990 static inline void __netdev_tracker_alloc(struct net_device *dev, in __netdev_tracker_alloc()
4002 static inline void netdev_tracker_alloc(struct net_device *dev, in netdev_tracker_alloc()
4011 static inline void netdev_tracker_free(struct net_device *dev, in netdev_tracker_free()
4019 static inline void netdev_hold(struct net_device *dev, in netdev_hold()
4028 static inline void netdev_put(struct net_device *dev, in netdev_put()
4044 static inline void dev_hold(struct net_device *dev) in dev_hold()
4056 static inline void dev_put(struct net_device *dev) in dev_put()
4061 static inline void netdev_ref_replace(struct net_device *odev, in netdev_ref_replace()
4062 struct net_device *ndev, in netdev_ref_replace()
4084 void linkwatch_fire_event(struct net_device *dev);
4092 static inline bool netif_carrier_ok(const struct net_device *dev) in netif_carrier_ok()
4097 unsigned long dev_trans_start(struct net_device *dev);
4099 void __netdev_watchdog_up(struct net_device *dev);
4101 void netif_carrier_on(struct net_device *dev);
4102 void netif_carrier_off(struct net_device *dev);
4103 void netif_carrier_event(struct net_device *dev);
4117 static inline void netif_dormant_on(struct net_device *dev) in netif_dormant_on()
4129 static inline void netif_dormant_off(struct net_device *dev) in netif_dormant_off()
4141 static inline bool netif_dormant(const struct net_device *dev) in netif_dormant()
4157 static inline void netif_testing_on(struct net_device *dev) in netif_testing_on()
4169 static inline void netif_testing_off(struct net_device *dev) in netif_testing_off()
4181 static inline bool netif_testing(const struct net_device *dev) in netif_testing()
4193 static inline bool netif_oper_up(const struct net_device *dev) in netif_oper_up()
4205 static inline bool netif_device_present(const struct net_device *dev) in netif_device_present()
4210 void netif_device_detach(struct net_device *dev);
4212 void netif_device_attach(struct net_device *dev);
4357 static inline void netif_trans_update(struct net_device *dev) in netif_trans_update()
4370 void netif_tx_lock(struct net_device *dev);
4372 static inline void netif_tx_lock_bh(struct net_device *dev) in netif_tx_lock_bh()
4378 void netif_tx_unlock(struct net_device *dev);
4380 static inline void netif_tx_unlock_bh(struct net_device *dev) in netif_tx_unlock_bh()
4407 static inline void netif_tx_disable(struct net_device *dev) in netif_tx_disable()
4426 static inline void netif_addr_lock(struct net_device *dev) in netif_addr_lock()
4436 static inline void netif_addr_lock_bh(struct net_device *dev) in netif_addr_lock_bh()
4447 static inline void netif_addr_unlock(struct net_device *dev) in netif_addr_unlock()
4452 static inline void netif_addr_unlock_bh(struct net_device *dev) in netif_addr_unlock_bh()
4466 void ether_setup(struct net_device *dev);
4469 struct net_device *alloc_netdev_mqs(int sizeof_priv, const char *name,
4471 void (*setup)(struct net_device *),
4480 int register_netdev(struct net_device *dev);
4481 void unregister_netdev(struct net_device *dev);
4483 int devm_register_netdev(struct device *dev, struct net_device *ndev);
4491 struct net_device *dev,
4492 int (*sync)(struct net_device *, const unsigned char *),
4493 int (*unsync)(struct net_device *,
4496 struct net_device *dev,
4497 int (*sync)(struct net_device *,
4499 int (*unsync)(struct net_device *,
4502 struct net_device *dev,
4503 int (*unsync)(struct net_device *,
4506 struct net_device *dev,
4507 int (*unsync)(struct net_device *,
4512 void dev_addr_mod(struct net_device *dev, unsigned int offset,
4516 __dev_addr_set(struct net_device *dev, const void *addr, size_t len) in __dev_addr_set()
4521 static inline void dev_addr_set(struct net_device *dev, const u8 *addr) in dev_addr_set()
4526 int dev_addr_add(struct net_device *dev, const unsigned char *addr,
4528 int dev_addr_del(struct net_device *dev, const unsigned char *addr,
4532 int dev_uc_add(struct net_device *dev, const unsigned char *addr);
4533 int dev_uc_add_excl(struct net_device *dev, const unsigned char *addr);
4534 int dev_uc_del(struct net_device *dev, const unsigned char *addr);
4535 int dev_uc_sync(struct net_device *to, struct net_device *from);
4536 int dev_uc_sync_multiple(struct net_device *to, struct net_device *from);
4537 void dev_uc_unsync(struct net_device *to, struct net_device *from);
4538 void dev_uc_flush(struct net_device *dev);
4539 void dev_uc_init(struct net_device *dev);
4550 static inline int __dev_uc_sync(struct net_device *dev, in __dev_uc_sync()
4551 int (*sync)(struct net_device *, in __dev_uc_sync() argument
4553 int (*unsync)(struct net_device *, in __dev_uc_sync() argument
4566 static inline void __dev_uc_unsync(struct net_device *dev, in __dev_uc_unsync()
4567 int (*unsync)(struct net_device *, in __dev_uc_unsync() argument
4574 int dev_mc_add(struct net_device *dev, const unsigned char *addr);
4575 int dev_mc_add_global(struct net_device *dev, const unsigned char *addr);
4576 int dev_mc_add_excl(struct net_device *dev, const unsigned char *addr);
4577 int dev_mc_del(struct net_device *dev, const unsigned char *addr);
4578 int dev_mc_del_global(struct net_device *dev, const unsigned char *addr);
4579 int dev_mc_sync(struct net_device *to, struct net_device *from);
4580 int dev_mc_sync_multiple(struct net_device *to, struct net_device *from);
4581 void dev_mc_unsync(struct net_device *to, struct net_device *from);
4582 void dev_mc_flush(struct net_device *dev);
4583 void dev_mc_init(struct net_device *dev);
4594 static inline int __dev_mc_sync(struct net_device *dev, in __dev_mc_sync()
4595 int (*sync)(struct net_device *, in __dev_mc_sync() argument
4597 int (*unsync)(struct net_device *, in __dev_mc_sync() argument
4610 static inline void __dev_mc_unsync(struct net_device *dev, in __dev_mc_unsync()
4611 int (*unsync)(struct net_device *, in __dev_mc_unsync() argument
4618 void dev_set_rx_mode(struct net_device *dev);
4619 int dev_set_promiscuity(struct net_device *dev, int inc);
4620 int dev_set_allmulti(struct net_device *dev, int inc);
4621 void netdev_state_change(struct net_device *dev);
4622 void __netdev_notify_peers(struct net_device *dev);
4623 void netdev_notify_peers(struct net_device *dev);
4624 void netdev_features_change(struct net_device *dev);
4627 struct rtnl_link_stats64 *dev_get_stats(struct net_device *dev,
4633 void dev_get_tstats64(struct net_device *dev, struct rtnl_link_stats64 *s);
4656 bool netdev_has_upper_dev(struct net_device *dev, struct net_device *upper_dev);
4657 struct net_device *netdev_upper_get_next_dev_rcu(struct net_device *dev,
4667 int netdev_walk_all_upper_dev_rcu(struct net_device *dev,
4668 int (*fn)(struct net_device *upper_dev,
4672 bool netdev_has_upper_dev_all_rcu(struct net_device *dev,
4673 struct net_device *upper_dev);
4675 bool netdev_has_any_upper_dev(struct net_device *dev);
4677 void *netdev_lower_get_next_private(struct net_device *dev,
4679 void *netdev_lower_get_next_private_rcu(struct net_device *dev,
4694 void *netdev_lower_get_next(struct net_device *dev,
4703 struct net_device *netdev_next_lower_dev_rcu(struct net_device *dev,
4705 int netdev_walk_all_lower_dev(struct net_device *dev,
4706 int (*fn)(struct net_device *lower_dev,
4709 int netdev_walk_all_lower_dev_rcu(struct net_device *dev,
4710 int (*fn)(struct net_device *lower_dev,
4715 void *netdev_lower_get_first_private_rcu(struct net_device *dev);
4716 struct net_device *netdev_master_upper_dev_get(struct net_device *dev);
4717 struct net_device *netdev_master_upper_dev_get_rcu(struct net_device *dev);
4718 int netdev_upper_dev_link(struct net_device *dev, struct net_device *upper_dev,
4720 int netdev_master_upper_dev_link(struct net_device *dev,
4721 struct net_device *upper_dev,
4724 void netdev_upper_dev_unlink(struct net_device *dev,
4725 struct net_device *upper_dev);
4726 int netdev_adjacent_change_prepare(struct net_device *old_dev,
4727 struct net_device *new_dev,
4728 struct net_device *dev,
4730 void netdev_adjacent_change_commit(struct net_device *old_dev,
4731 struct net_device *new_dev,
4732 struct net_device *dev);
4733 void netdev_adjacent_change_abort(struct net_device *old_dev,
4734 struct net_device *new_dev,
4735 struct net_device *dev);
4736 void netdev_adjacent_rename_links(struct net_device *dev, char *oldname);
4737 void *netdev_lower_dev_get_private(struct net_device *dev,
4738 struct net_device *lower_dev);
4739 void netdev_lower_state_changed(struct net_device *lower_dev,
4769 void netdev_bonding_info_change(struct net_device *dev,
4773 void ethtool_notify(struct net_device *dev, unsigned int cmd, const void *data);
4775 static inline void ethtool_notify(struct net_device *dev, unsigned int cmd, in ethtool_notify()
4812 void netdev_rx_csum_fault(struct net_device *dev, struct sk_buff *skb);
4814 static inline void netdev_rx_csum_fault(struct net_device *dev, in netdev_rx_csum_fault()
4823 static inline ktime_t netdev_get_tstamp(struct net_device *dev, in netdev_get_tstamp()
4836 struct sk_buff *skb, struct net_device *dev, in __netdev_start_xmit()
4848 static inline netdev_tx_t netdev_start_xmit(struct sk_buff *skb, struct net_device *dev, in netdev_start_xmit()
4868 const char *netdev_drivername(const struct net_device *dev);
4884 struct net_device *dev) in netdev_get_wanted_features()
4901 int __netdev_update_features(struct net_device *dev);
4902 void netdev_update_features(struct net_device *dev);
4903 void netdev_change_features(struct net_device *dev);
4905 void netif_stacked_transfer_operstate(const struct net_device *rootdev,
4906 struct net_device *dev);
4909 struct net_device *dev,
4955 void netif_set_tso_max_size(struct net_device *dev, unsigned int size);
4956 void netif_set_tso_max_segs(struct net_device *dev, unsigned int segs);
4957 void netif_inherit_tso_max(struct net_device *to,
4958 const struct net_device *from);
4973 static inline bool netif_is_macsec(const struct net_device *dev) in netif_is_macsec()
4978 static inline bool netif_is_macvlan(const struct net_device *dev) in netif_is_macvlan()
4983 static inline bool netif_is_macvlan_port(const struct net_device *dev) in netif_is_macvlan_port()
4988 static inline bool netif_is_bond_master(const struct net_device *dev) in netif_is_bond_master()
4993 static inline bool netif_is_bond_slave(const struct net_device *dev) in netif_is_bond_slave()
4998 static inline bool netif_supports_nofcs(struct net_device *dev) in netif_supports_nofcs()
5003 static inline bool netif_has_l3_rx_handler(const struct net_device *dev) in netif_has_l3_rx_handler()
5008 static inline bool netif_is_l3_master(const struct net_device *dev) in netif_is_l3_master()
5013 static inline bool netif_is_l3_slave(const struct net_device *dev) in netif_is_l3_slave()
5018 static inline bool netif_is_bridge_master(const struct net_device *dev) in netif_is_bridge_master()
5023 static inline bool netif_is_bridge_port(const struct net_device *dev) in netif_is_bridge_port()
5028 static inline bool netif_is_ovs_master(const struct net_device *dev) in netif_is_ovs_master()
5033 static inline bool netif_is_ovs_port(const struct net_device *dev) in netif_is_ovs_port()
5038 static inline bool netif_is_any_bridge_port(const struct net_device *dev) in netif_is_any_bridge_port()
5043 static inline bool netif_is_team_master(const struct net_device *dev) in netif_is_team_master()
5048 static inline bool netif_is_team_port(const struct net_device *dev) in netif_is_team_port()
5053 static inline bool netif_is_lag_master(const struct net_device *dev) in netif_is_lag_master()
5058 static inline bool netif_is_lag_port(const struct net_device *dev) in netif_is_lag_port()
5063 static inline bool netif_is_rxfh_configured(const struct net_device *dev) in netif_is_rxfh_configured()
5068 static inline bool netif_is_failover(const struct net_device *dev) in netif_is_failover()
5073 static inline bool netif_is_failover_slave(const struct net_device *dev) in netif_is_failover_slave()
5079 static inline void netif_keep_dst(struct net_device *dev) in netif_keep_dst()
5085 static inline bool netif_reduces_vlan_mtu(struct net_device *dev) in netif_reduces_vlan_mtu()
5097 static inline const char *netdev_name(const struct net_device *dev) in netdev_name()
5104 static inline bool netdev_unregistering(const struct net_device *dev) in netdev_unregistering()
5109 static inline const char *netdev_reg_state(const struct net_device *dev) in netdev_reg_state()
5165 extern struct net_device *blackhole_netdev;