Lines Matching refs:net_device

64 void netdev_set_default_ethtool_ops(struct net_device *dev,
260 int (*create) (struct sk_buff *skb, struct net_device *dev,
266 const struct net_device *dev,
316 struct net_device *dev;
560 struct net_device *dev;
682 bool rps_may_expire_flow(struct net_device *dev, u16 rxq_index, u32 flow_id,
694 struct net_device *dev;
769 typedef u16 (*select_queue_fallback_t)(struct net_device *dev,
1046 int (*ndo_init)(struct net_device *dev);
1047 void (*ndo_uninit)(struct net_device *dev);
1048 int (*ndo_open)(struct net_device *dev);
1049 int (*ndo_stop)(struct net_device *dev);
1051 struct net_device *dev);
1052 u16 (*ndo_select_queue)(struct net_device *dev,
1056 void (*ndo_change_rx_flags)(struct net_device *dev,
1058 void (*ndo_set_rx_mode)(struct net_device *dev);
1059 int (*ndo_set_mac_address)(struct net_device *dev,
1061 int (*ndo_validate_addr)(struct net_device *dev);
1062 int (*ndo_do_ioctl)(struct net_device *dev,
1064 int (*ndo_set_config)(struct net_device *dev,
1066 int (*ndo_change_mtu)(struct net_device *dev,
1068 int (*ndo_neigh_setup)(struct net_device *dev,
1070 void (*ndo_tx_timeout) (struct net_device *dev);
1072 struct rtnl_link_stats64* (*ndo_get_stats64)(struct net_device *dev,
1074 struct net_device_stats* (*ndo_get_stats)(struct net_device *dev);
1076 int (*ndo_vlan_rx_add_vid)(struct net_device *dev,
1078 int (*ndo_vlan_rx_kill_vid)(struct net_device *dev,
1081 void (*ndo_poll_controller)(struct net_device *dev);
1082 int (*ndo_netpoll_setup)(struct net_device *dev,
1084 void (*ndo_netpoll_cleanup)(struct net_device *dev);
1089 int (*ndo_set_vf_mac)(struct net_device *dev,
1091 int (*ndo_set_vf_vlan)(struct net_device *dev,
1093 int (*ndo_set_vf_rate)(struct net_device *dev,
1096 int (*ndo_set_vf_spoofchk)(struct net_device *dev,
1098 int (*ndo_get_vf_config)(struct net_device *dev,
1101 int (*ndo_set_vf_link_state)(struct net_device *dev,
1103 int (*ndo_set_vf_port)(struct net_device *dev,
1106 int (*ndo_get_vf_port)(struct net_device *dev,
1109 struct net_device *dev,
1111 int (*ndo_setup_tc)(struct net_device *dev, u8 tc);
1113 int (*ndo_fcoe_enable)(struct net_device *dev);
1114 int (*ndo_fcoe_disable)(struct net_device *dev);
1115 int (*ndo_fcoe_ddp_setup)(struct net_device *dev,
1119 int (*ndo_fcoe_ddp_done)(struct net_device *dev,
1121 int (*ndo_fcoe_ddp_target)(struct net_device *dev,
1125 int (*ndo_fcoe_get_hbainfo)(struct net_device *dev,
1132 int (*ndo_fcoe_get_wwn)(struct net_device *dev,
1137 int (*ndo_rx_flow_steer)(struct net_device *dev,
1142 int (*ndo_add_slave)(struct net_device *dev,
1143 struct net_device *slave_dev);
1144 int (*ndo_del_slave)(struct net_device *dev,
1145 struct net_device *slave_dev);
1146 netdev_features_t (*ndo_fix_features)(struct net_device *dev,
1148 int (*ndo_set_features)(struct net_device *dev,
1155 struct net_device *dev,
1161 struct net_device *dev,
1166 struct net_device *dev,
1167 struct net_device *filter_dev,
1170 int (*ndo_bridge_setlink)(struct net_device *dev,
1175 struct net_device *dev,
1178 int (*ndo_bridge_dellink)(struct net_device *dev,
1181 int (*ndo_change_carrier)(struct net_device *dev,
1183 int (*ndo_get_phys_port_id)(struct net_device *dev,
1185 int (*ndo_get_phys_port_name)(struct net_device *dev,
1187 void (*ndo_add_vxlan_port)(struct net_device *dev,
1190 void (*ndo_del_vxlan_port)(struct net_device *dev,
1194 void* (*ndo_dfwd_add_station)(struct net_device *pdev,
1195 struct net_device *dev);
1196 void (*ndo_dfwd_del_station)(struct net_device *pdev,
1200 struct net_device *dev,
1202 int (*ndo_get_lock_subclass)(struct net_device *dev);
1204 struct net_device *dev,
1206 int (*ndo_set_tx_maxrate)(struct net_device *dev,
1209 int (*ndo_get_iflink)(const struct net_device *dev);
1505 struct net_device { struct
1707 void (*destructor)(struct net_device *dev); argument
1755 #define to_net_dev(d) container_of(d, struct net_device, dev) argument
1760 int netdev_get_prio_tc_map(const struct net_device *dev, u32 prio) in netdev_get_prio_tc_map()
1766 int netdev_set_prio_tc_map(struct net_device *dev, u8 prio, u8 tc) in netdev_set_prio_tc_map()
1776 void netdev_reset_tc(struct net_device *dev) in netdev_reset_tc()
1784 int netdev_set_tc_queue(struct net_device *dev, u8 tc, u16 count, u16 offset) in netdev_set_tc_queue()
1795 int netdev_set_num_tc(struct net_device *dev, u8 num_tc) in netdev_set_num_tc()
1805 int netdev_get_num_tc(struct net_device *dev) in netdev_get_num_tc()
1811 struct netdev_queue *netdev_get_tx_queue(const struct net_device *dev, in netdev_get_tx_queue()
1817 static inline struct netdev_queue *skb_get_tx_queue(const struct net_device *dev, in skb_get_tx_queue()
1823 static inline void netdev_for_each_tx_queue(struct net_device *dev, in netdev_for_each_tx_queue()
1824 void (*f)(struct net_device *, in netdev_for_each_tx_queue() argument
1835 struct netdev_queue *netdev_pick_tx(struct net_device *dev,
1843 struct net *dev_net(const struct net_device *dev) in dev_net()
1849 void dev_net_set(struct net_device *dev, struct net *net) in dev_net_set()
1854 static inline bool netdev_uses_dsa(struct net_device *dev) in netdev_uses_dsa()
1869 static inline void *netdev_priv(const struct net_device *dev) in netdev_priv()
1871 return (char *)dev + ALIGN(sizeof(struct net_device), NETDEV_ALIGN); in netdev_priv()
1900 void netif_napi_add(struct net_device *dev, struct napi_struct *napi,
1972 struct net_device *dev; /* NULL is wildcarded here */
1974 struct net_device *,
1976 struct net_device *);
2076 struct net_device *dev;
2085 struct net_device *dev) in netdev_notifier_info_init()
2090 static inline struct net_device *
2096 int call_netdevice_notifiers(unsigned long val, struct net_device *dev);
2116 #define net_device_entry(lh) list_entry(lh, struct net_device, dev_list)
2118 static inline struct net_device *next_net_device(struct net_device *dev) in next_net_device()
2128 static inline struct net_device *next_net_device_rcu(struct net_device *dev) in next_net_device_rcu()
2138 static inline struct net_device *first_net_device(struct net *net) in first_net_device()
2144 static inline struct net_device *first_net_device_rcu(struct net *net) in first_net_device_rcu()
2151 int netdev_boot_setup_check(struct net_device *dev);
2153 struct net_device *dev_getbyhwaddr_rcu(struct net *net, unsigned short type,
2155 struct net_device *dev_getfirstbyhwtype(struct net *net, unsigned short type);
2156 struct net_device *__dev_getfirstbyhwtype(struct net *net, unsigned short type);
2163 int dev_get_iflink(const struct net_device *dev);
2164 struct net_device *__dev_get_by_flags(struct net *net, unsigned short flags,
2166 struct net_device *dev_get_by_name(struct net *net, const char *name);
2167 struct net_device *dev_get_by_name_rcu(struct net *net, const char *name);
2168 struct net_device *__dev_get_by_name(struct net *net, const char *name);
2169 int dev_alloc_name(struct net_device *dev, const char *name);
2170 int dev_open(struct net_device *dev);
2171 int dev_close(struct net_device *dev);
2173 void dev_disable_lro(struct net_device *dev);
2181 int register_netdevice(struct net_device *dev);
2182 void unregister_netdevice_queue(struct net_device *dev, struct list_head *head);
2184 static inline void unregister_netdevice(struct net_device *dev) in unregister_netdevice()
2189 int netdev_refcnt_read(const struct net_device *dev);
2190 void free_netdev(struct net_device *dev);
2191 void netdev_freemem(struct net_device *dev);
2193 int init_dummy_netdev(struct net_device *dev);
2201 struct net_device *dev_get_by_index(struct net *net, int ifindex);
2202 struct net_device *__dev_get_by_index(struct net *net, int ifindex);
2203 struct net_device *dev_get_by_index_rcu(struct net *net, int ifindex);
2205 int dev_restart(struct net_device *dev);
2398 static inline int dev_hard_header(struct sk_buff *skb, struct net_device *dev, in dev_hard_header()
2412 const struct net_device *dev = skb->dev; in dev_parse_header()
2419 typedef int gifconf_func_t(struct net_device * dev, char __user * bufptr, int len);
2495 static inline void netif_tx_schedule_all(struct net_device *dev) in netif_tx_schedule_all()
2514 static inline void netif_start_queue(struct net_device *dev) in netif_start_queue()
2519 static inline void netif_tx_start_all_queues(struct net_device *dev) in netif_tx_start_all_queues()
2538 static inline void netif_wake_queue(struct net_device *dev) in netif_wake_queue()
2543 static inline void netif_tx_wake_all_queues(struct net_device *dev) in netif_tx_wake_all_queues()
2569 static inline void netif_stop_queue(struct net_device *dev) in netif_stop_queue()
2574 static inline void netif_tx_stop_all_queues(struct net_device *dev) in netif_tx_stop_all_queues()
2595 static inline bool netif_queue_stopped(const struct net_device *dev) in netif_queue_stopped()
2678 static inline void netdev_sent_queue(struct net_device *dev, unsigned int bytes) in netdev_sent_queue()
2717 static inline void netdev_completed_queue(struct net_device *dev, in netdev_completed_queue()
2738 static inline void netdev_reset_queue(struct net_device *dev_queue) in netdev_reset_queue()
2751 static inline u16 netdev_cap_txqueue(struct net_device *dev, u16 queue_index) in netdev_cap_txqueue()
2769 static inline bool netif_running(const struct net_device *dev) in netif_running()
2788 static inline void netif_start_subqueue(struct net_device *dev, u16 queue_index) in netif_start_subqueue()
2802 static inline void netif_stop_subqueue(struct net_device *dev, u16 queue_index) in netif_stop_subqueue()
2815 static inline bool __netif_subqueue_stopped(const struct net_device *dev, in __netif_subqueue_stopped()
2823 static inline bool netif_subqueue_stopped(const struct net_device *dev, in netif_subqueue_stopped()
2829 void netif_wake_subqueue(struct net_device *dev, u16 queue_index);
2832 int netif_set_xps_queue(struct net_device *dev, const struct cpumask *mask,
2835 static inline int netif_set_xps_queue(struct net_device *dev, in netif_set_xps_queue()
2847 static inline u16 skb_tx_hash(const struct net_device *dev, in skb_tx_hash()
2859 static inline bool netif_is_multiqueue(const struct net_device *dev) in netif_is_multiqueue()
2864 int netif_set_real_num_tx_queues(struct net_device *dev, unsigned int txq);
2867 int netif_set_real_num_rx_queues(struct net_device *dev, unsigned int rxq);
2869 static inline int netif_set_real_num_rx_queues(struct net_device *dev, in netif_set_real_num_rx_queues()
2880 struct net_device *dev = queue->dev; in get_netdev_rx_queue_index()
2958 int netdev_rx_handler_register(struct net_device *dev,
2961 void netdev_rx_handler_unregister(struct net_device *dev);
2966 unsigned int dev_get_flags(const struct net_device *);
2967 int __dev_change_flags(struct net_device *, unsigned int flags);
2968 int dev_change_flags(struct net_device *, unsigned int);
2969 void __dev_notify_flags(struct net_device *, unsigned int old_flags,
2971 int dev_change_name(struct net_device *, const char *);
2972 int dev_set_alias(struct net_device *, const char *, size_t);
2973 int dev_change_net_namespace(struct net_device *, struct net *, const char *);
2974 int dev_set_mtu(struct net_device *, int);
2975 void dev_set_group(struct net_device *, int);
2976 int dev_set_mac_address(struct net_device *, struct sockaddr *);
2977 int dev_change_carrier(struct net_device *, bool new_carrier);
2978 int dev_get_phys_port_id(struct net_device *dev,
2980 int dev_get_phys_port_name(struct net_device *dev,
2982 struct sk_buff *validate_xmit_skb_list(struct sk_buff *skb, struct net_device *dev);
2983 struct sk_buff *dev_hard_start_xmit(struct sk_buff *skb, struct net_device *dev,
2985 int __dev_forward_skb(struct net_device *dev, struct sk_buff *skb);
2986 int dev_forward_skb(struct net_device *dev, struct sk_buff *skb);
2987 bool is_skb_forwardable(struct net_device *dev, struct sk_buff *skb);
3000 static inline void dev_put(struct net_device *dev) in dev_put()
3011 static inline void dev_hold(struct net_device *dev) in dev_hold()
3025 void linkwatch_init_dev(struct net_device *dev);
3026 void linkwatch_fire_event(struct net_device *dev);
3027 void linkwatch_forget_dev(struct net_device *dev);
3035 static inline bool netif_carrier_ok(const struct net_device *dev) in netif_carrier_ok()
3040 unsigned long dev_trans_start(struct net_device *dev);
3042 void __netdev_watchdog_up(struct net_device *dev);
3044 void netif_carrier_on(struct net_device *dev);
3046 void netif_carrier_off(struct net_device *dev);
3061 static inline void netif_dormant_on(struct net_device *dev) in netif_dormant_on()
3073 static inline void netif_dormant_off(struct net_device *dev) in netif_dormant_off()
3085 static inline bool netif_dormant(const struct net_device *dev) in netif_dormant()
3097 static inline bool netif_oper_up(const struct net_device *dev) in netif_oper_up()
3109 static inline bool netif_device_present(struct net_device *dev) in netif_device_present()
3114 void netif_device_detach(struct net_device *dev);
3116 void netif_device_attach(struct net_device *dev);
3211 static inline void netif_tx_lock(struct net_device *dev) in netif_tx_lock()
3233 static inline void netif_tx_lock_bh(struct net_device *dev) in netif_tx_lock_bh()
3239 static inline void netif_tx_unlock(struct net_device *dev) in netif_tx_unlock()
3256 static inline void netif_tx_unlock_bh(struct net_device *dev) in netif_tx_unlock_bh()
3279 static inline void netif_tx_disable(struct net_device *dev) in netif_tx_disable()
3296 static inline void netif_addr_lock(struct net_device *dev) in netif_addr_lock()
3301 static inline void netif_addr_lock_nested(struct net_device *dev) in netif_addr_lock_nested()
3311 static inline void netif_addr_lock_bh(struct net_device *dev) in netif_addr_lock_bh()
3316 static inline void netif_addr_unlock(struct net_device *dev) in netif_addr_unlock()
3321 static inline void netif_addr_unlock_bh(struct net_device *dev) in netif_addr_unlock_bh()
3335 void ether_setup(struct net_device *dev);
3338 struct net_device *alloc_netdev_mqs(int sizeof_priv, const char *name,
3340 void (*setup)(struct net_device *),
3349 int register_netdev(struct net_device *dev);
3350 void unregister_netdev(struct net_device *dev);
3358 struct net_device *dev,
3359 int (*sync)(struct net_device *, const unsigned char *),
3360 int (*unsync)(struct net_device *,
3363 struct net_device *dev,
3364 int (*unsync)(struct net_device *,
3369 int dev_addr_add(struct net_device *dev, const unsigned char *addr,
3371 int dev_addr_del(struct net_device *dev, const unsigned char *addr,
3373 void dev_addr_flush(struct net_device *dev);
3374 int dev_addr_init(struct net_device *dev);
3377 int dev_uc_add(struct net_device *dev, const unsigned char *addr);
3378 int dev_uc_add_excl(struct net_device *dev, const unsigned char *addr);
3379 int dev_uc_del(struct net_device *dev, const unsigned char *addr);
3380 int dev_uc_sync(struct net_device *to, struct net_device *from);
3381 int dev_uc_sync_multiple(struct net_device *to, struct net_device *from);
3382 void dev_uc_unsync(struct net_device *to, struct net_device *from);
3383 void dev_uc_flush(struct net_device *dev);
3384 void dev_uc_init(struct net_device *dev);
3395 static inline int __dev_uc_sync(struct net_device *dev, in __dev_uc_sync()
3396 int (*sync)(struct net_device *, in __dev_uc_sync() argument
3398 int (*unsync)(struct net_device *, in __dev_uc_sync() argument
3411 static inline void __dev_uc_unsync(struct net_device *dev, in __dev_uc_unsync()
3412 int (*unsync)(struct net_device *, in __dev_uc_unsync() argument
3419 int dev_mc_add(struct net_device *dev, const unsigned char *addr);
3420 int dev_mc_add_global(struct net_device *dev, const unsigned char *addr);
3421 int dev_mc_add_excl(struct net_device *dev, const unsigned char *addr);
3422 int dev_mc_del(struct net_device *dev, const unsigned char *addr);
3423 int dev_mc_del_global(struct net_device *dev, const unsigned char *addr);
3424 int dev_mc_sync(struct net_device *to, struct net_device *from);
3425 int dev_mc_sync_multiple(struct net_device *to, struct net_device *from);
3426 void dev_mc_unsync(struct net_device *to, struct net_device *from);
3427 void dev_mc_flush(struct net_device *dev);
3428 void dev_mc_init(struct net_device *dev);
3439 static inline int __dev_mc_sync(struct net_device *dev, in __dev_mc_sync()
3440 int (*sync)(struct net_device *, in __dev_mc_sync() argument
3442 int (*unsync)(struct net_device *, in __dev_mc_sync() argument
3455 static inline void __dev_mc_unsync(struct net_device *dev, in __dev_mc_unsync()
3456 int (*unsync)(struct net_device *, in __dev_mc_unsync() argument
3463 void dev_set_rx_mode(struct net_device *dev);
3464 void __dev_set_rx_mode(struct net_device *dev);
3465 int dev_set_promiscuity(struct net_device *dev, int inc);
3466 int dev_set_allmulti(struct net_device *dev, int inc);
3467 void netdev_state_change(struct net_device *dev);
3468 void netdev_notify_peers(struct net_device *dev);
3469 void netdev_features_change(struct net_device *dev);
3472 struct rtnl_link_stats64 *dev_get_stats(struct net_device *dev,
3482 bool netdev_has_upper_dev(struct net_device *dev, struct net_device *upper_dev);
3483 struct net_device *netdev_upper_get_next_dev_rcu(struct net_device *dev,
3485 struct net_device *netdev_all_upper_get_next_dev_rcu(struct net_device *dev,
3502 void *netdev_lower_get_next_private(struct net_device *dev,
3504 void *netdev_lower_get_next_private_rcu(struct net_device *dev,
3519 void *netdev_lower_get_next(struct net_device *dev,
3528 void *netdev_lower_get_first_private_rcu(struct net_device *dev);
3529 struct net_device *netdev_master_upper_dev_get(struct net_device *dev);
3530 struct net_device *netdev_master_upper_dev_get_rcu(struct net_device *dev);
3531 int netdev_upper_dev_link(struct net_device *dev, struct net_device *upper_dev);
3532 int netdev_master_upper_dev_link(struct net_device *dev,
3533 struct net_device *upper_dev);
3534 int netdev_master_upper_dev_link_private(struct net_device *dev,
3535 struct net_device *upper_dev,
3537 void netdev_upper_dev_unlink(struct net_device *dev,
3538 struct net_device *upper_dev);
3539 void netdev_adjacent_rename_links(struct net_device *dev, char *oldname);
3540 void *netdev_lower_dev_get_private(struct net_device *dev,
3541 struct net_device *lower_dev);
3548 int dev_get_nest_level(struct net_device *dev,
3549 bool (*type_check)(struct net_device *dev));
3566 void netdev_bonding_info_change(struct net_device *dev,
3589 void netdev_rx_csum_fault(struct net_device *dev);
3591 static inline void netdev_rx_csum_fault(struct net_device *dev) in netdev_rx_csum_fault()
3606 struct sk_buff *skb, struct net_device *dev, in __netdev_start_xmit()
3613 static inline netdev_tx_t netdev_start_xmit(struct sk_buff *skb, struct net_device *dev, in netdev_start_xmit()
3643 const char *netdev_drivername(const struct net_device *dev);
3662 struct net_device *dev) in netdev_get_wanted_features()
3679 int __netdev_update_features(struct net_device *dev);
3680 void netdev_update_features(struct net_device *dev);
3681 void netdev_change_features(struct net_device *dev);
3683 void netif_stacked_transfer_operstate(const struct net_device *rootdev,
3684 struct net_device *dev);
3687 struct net_device *dev,
3727 static inline void netif_set_gso_max_size(struct net_device *dev, in netif_set_gso_max_size()
3746 static inline bool netif_is_macvlan(struct net_device *dev) in netif_is_macvlan()
3751 static inline bool netif_is_macvlan_port(struct net_device *dev) in netif_is_macvlan_port()
3756 static inline bool netif_is_ipvlan(struct net_device *dev) in netif_is_ipvlan()
3761 static inline bool netif_is_ipvlan_port(struct net_device *dev) in netif_is_ipvlan_port()
3766 static inline bool netif_is_bond_master(struct net_device *dev) in netif_is_bond_master()
3771 static inline bool netif_is_bond_slave(struct net_device *dev) in netif_is_bond_slave()
3776 static inline bool netif_supports_nofcs(struct net_device *dev) in netif_supports_nofcs()
3782 static inline void netif_keep_dst(struct net_device *dev) in netif_keep_dst()
3793 static inline const char *netdev_name(const struct net_device *dev) in netdev_name()
3800 static inline const char *netdev_reg_state(const struct net_device *dev) in netdev_reg_state()
3816 void netdev_printk(const char *level, const struct net_device *dev,
3819 void netdev_emerg(const struct net_device *dev, const char *format, ...);
3821 void netdev_alert(const struct net_device *dev, const char *format, ...);
3823 void netdev_crit(const struct net_device *dev, const char *format, ...);
3825 void netdev_err(const struct net_device *dev, const char *format, ...);
3827 void netdev_warn(const struct net_device *dev, const char *format, ...);
3829 void netdev_notice(const struct net_device *dev, const char *format, ...);
3831 void netdev_info(const struct net_device *dev, const char *format, ...);