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,
317 struct net_device *dev;
562 struct net_device *dev;
684 bool rps_may_expire_flow(struct net_device *dev, u16 rxq_index, u32 flow_id,
696 struct net_device *dev;
778 typedef u16 (*select_queue_fallback_t)(struct net_device *dev,
1066 int (*ndo_init)(struct net_device *dev);
1067 void (*ndo_uninit)(struct net_device *dev);
1068 int (*ndo_open)(struct net_device *dev);
1069 int (*ndo_stop)(struct net_device *dev);
1071 struct net_device *dev);
1072 u16 (*ndo_select_queue)(struct net_device *dev,
1076 void (*ndo_change_rx_flags)(struct net_device *dev,
1078 void (*ndo_set_rx_mode)(struct net_device *dev);
1079 int (*ndo_set_mac_address)(struct net_device *dev,
1081 int (*ndo_validate_addr)(struct net_device *dev);
1082 int (*ndo_do_ioctl)(struct net_device *dev,
1084 int (*ndo_set_config)(struct net_device *dev,
1086 int (*ndo_change_mtu)(struct net_device *dev,
1088 int (*ndo_neigh_setup)(struct net_device *dev,
1090 void (*ndo_tx_timeout) (struct net_device *dev);
1092 struct rtnl_link_stats64* (*ndo_get_stats64)(struct net_device *dev,
1094 struct net_device_stats* (*ndo_get_stats)(struct net_device *dev);
1096 int (*ndo_vlan_rx_add_vid)(struct net_device *dev,
1098 int (*ndo_vlan_rx_kill_vid)(struct net_device *dev,
1101 void (*ndo_poll_controller)(struct net_device *dev);
1102 int (*ndo_netpoll_setup)(struct net_device *dev,
1104 void (*ndo_netpoll_cleanup)(struct net_device *dev);
1109 int (*ndo_set_vf_mac)(struct net_device *dev,
1111 int (*ndo_set_vf_vlan)(struct net_device *dev,
1113 int (*ndo_set_vf_rate)(struct net_device *dev,
1116 int (*ndo_set_vf_spoofchk)(struct net_device *dev,
1118 int (*ndo_set_vf_trust)(struct net_device *dev,
1120 int (*ndo_get_vf_config)(struct net_device *dev,
1123 int (*ndo_set_vf_link_state)(struct net_device *dev,
1125 int (*ndo_get_vf_stats)(struct net_device *dev,
1129 int (*ndo_set_vf_port)(struct net_device *dev,
1132 int (*ndo_get_vf_port)(struct net_device *dev,
1135 struct net_device *dev,
1137 int (*ndo_setup_tc)(struct net_device *dev, u8 tc);
1139 int (*ndo_fcoe_enable)(struct net_device *dev);
1140 int (*ndo_fcoe_disable)(struct net_device *dev);
1141 int (*ndo_fcoe_ddp_setup)(struct net_device *dev,
1145 int (*ndo_fcoe_ddp_done)(struct net_device *dev,
1147 int (*ndo_fcoe_ddp_target)(struct net_device *dev,
1151 int (*ndo_fcoe_get_hbainfo)(struct net_device *dev,
1158 int (*ndo_fcoe_get_wwn)(struct net_device *dev,
1163 int (*ndo_rx_flow_steer)(struct net_device *dev,
1168 int (*ndo_add_slave)(struct net_device *dev,
1169 struct net_device *slave_dev);
1170 int (*ndo_del_slave)(struct net_device *dev,
1171 struct net_device *slave_dev);
1172 netdev_features_t (*ndo_fix_features)(struct net_device *dev,
1174 int (*ndo_set_features)(struct net_device *dev,
1181 struct net_device *dev,
1187 struct net_device *dev,
1192 struct net_device *dev,
1193 struct net_device *filter_dev,
1196 int (*ndo_bridge_setlink)(struct net_device *dev,
1201 struct net_device *dev,
1204 int (*ndo_bridge_dellink)(struct net_device *dev,
1207 int (*ndo_change_carrier)(struct net_device *dev,
1209 int (*ndo_get_phys_port_id)(struct net_device *dev,
1211 int (*ndo_get_phys_port_name)(struct net_device *dev,
1213 void (*ndo_add_vxlan_port)(struct net_device *dev,
1216 void (*ndo_del_vxlan_port)(struct net_device *dev,
1220 void* (*ndo_dfwd_add_station)(struct net_device *pdev,
1221 struct net_device *dev);
1222 void (*ndo_dfwd_del_station)(struct net_device *pdev,
1226 struct net_device *dev,
1228 int (*ndo_get_lock_subclass)(struct net_device *dev);
1230 struct net_device *dev,
1232 int (*ndo_set_tx_maxrate)(struct net_device *dev,
1235 int (*ndo_get_iflink)(const struct net_device *dev);
1236 int (*ndo_change_proto_down)(struct net_device *dev,
1238 int (*ndo_fill_metadata_dst)(struct net_device *dev,
1538 struct net_device { struct
1754 void (*destructor)(struct net_device *dev); argument
1803 #define to_net_dev(d) container_of(d, struct net_device, dev) argument
1808 int netdev_get_prio_tc_map(const struct net_device *dev, u32 prio) in netdev_get_prio_tc_map()
1814 int netdev_set_prio_tc_map(struct net_device *dev, u8 prio, u8 tc) in netdev_set_prio_tc_map()
1824 void netdev_reset_tc(struct net_device *dev) in netdev_reset_tc()
1832 int netdev_set_tc_queue(struct net_device *dev, u8 tc, u16 count, u16 offset) in netdev_set_tc_queue()
1843 int netdev_set_num_tc(struct net_device *dev, u8 num_tc) in netdev_set_num_tc()
1853 int netdev_get_num_tc(struct net_device *dev) in netdev_get_num_tc()
1859 struct netdev_queue *netdev_get_tx_queue(const struct net_device *dev, in netdev_get_tx_queue()
1865 static inline struct netdev_queue *skb_get_tx_queue(const struct net_device *dev, in skb_get_tx_queue()
1871 static inline void netdev_for_each_tx_queue(struct net_device *dev, in netdev_for_each_tx_queue()
1872 void (*f)(struct net_device *, in netdev_for_each_tx_queue() argument
1883 struct netdev_queue *netdev_pick_tx(struct net_device *dev,
1891 struct net *dev_net(const struct net_device *dev) in dev_net()
1897 void dev_net_set(struct net_device *dev, struct net *net) in dev_net_set()
1902 static inline bool netdev_uses_dsa(struct net_device *dev) in netdev_uses_dsa()
1917 static inline void *netdev_priv(const struct net_device *dev) in netdev_priv()
1919 return (char *)dev + ALIGN(sizeof(struct net_device), NETDEV_ALIGN); in netdev_priv()
1948 void netif_napi_add(struct net_device *dev, struct napi_struct *napi,
2020 struct net_device *dev; /* NULL is wildcarded here */
2022 struct net_device *,
2024 struct net_device *);
2129 struct net_device *dev;
2139 struct net_device *upper_dev; /* new upper dev */
2145 struct net_device *dev) in netdev_notifier_info_init()
2150 static inline struct net_device *
2156 int call_netdevice_notifiers(unsigned long val, struct net_device *dev);
2176 #define net_device_entry(lh) list_entry(lh, struct net_device, dev_list)
2178 static inline struct net_device *next_net_device(struct net_device *dev) in next_net_device()
2188 static inline struct net_device *next_net_device_rcu(struct net_device *dev) in next_net_device_rcu()
2198 static inline struct net_device *first_net_device(struct net *net) in first_net_device()
2204 static inline struct net_device *first_net_device_rcu(struct net *net) in first_net_device_rcu()
2211 int netdev_boot_setup_check(struct net_device *dev);
2213 struct net_device *dev_getbyhwaddr_rcu(struct net *net, unsigned short type,
2215 struct net_device *dev_getfirstbyhwtype(struct net *net, unsigned short type);
2216 struct net_device *__dev_getfirstbyhwtype(struct net *net, unsigned short type);
2223 int dev_get_iflink(const struct net_device *dev);
2224 int dev_fill_metadata_dst(struct net_device *dev, struct sk_buff *skb);
2225 struct net_device *__dev_get_by_flags(struct net *net, unsigned short flags,
2227 struct net_device *dev_get_by_name(struct net *net, const char *name);
2228 struct net_device *dev_get_by_name_rcu(struct net *net, const char *name);
2229 struct net_device *__dev_get_by_name(struct net *net, const char *name);
2230 int dev_alloc_name(struct net_device *dev, const char *name);
2231 int dev_open(struct net_device *dev);
2232 int dev_close(struct net_device *dev);
2234 void dev_disable_lro(struct net_device *dev);
2238 int register_netdevice(struct net_device *dev);
2239 void unregister_netdevice_queue(struct net_device *dev, struct list_head *head);
2241 static inline void unregister_netdevice(struct net_device *dev) in unregister_netdevice()
2246 int netdev_refcnt_read(const struct net_device *dev);
2247 void free_netdev(struct net_device *dev);
2248 void netdev_freemem(struct net_device *dev);
2250 int init_dummy_netdev(struct net_device *dev);
2258 struct net_device *dev_get_by_index(struct net *net, int ifindex);
2259 struct net_device *__dev_get_by_index(struct net *net, int ifindex);
2260 struct net_device *dev_get_by_index_rcu(struct net *net, int ifindex);
2262 int dev_restart(struct net_device *dev);
2475 static inline int dev_hard_header(struct sk_buff *skb, struct net_device *dev, in dev_hard_header()
2489 const struct net_device *dev = skb->dev; in dev_parse_header()
2497 static inline bool dev_validate_header(const struct net_device *dev, in dev_validate_header()
2514 typedef int gifconf_func_t(struct net_device * dev, char __user * bufptr, int len);
2590 static inline void netif_tx_schedule_all(struct net_device *dev) in netif_tx_schedule_all()
2609 static inline void netif_start_queue(struct net_device *dev) in netif_start_queue()
2614 static inline void netif_tx_start_all_queues(struct net_device *dev) in netif_tx_start_all_queues()
2633 static inline void netif_wake_queue(struct net_device *dev) in netif_wake_queue()
2638 static inline void netif_tx_wake_all_queues(struct net_device *dev) in netif_tx_wake_all_queues()
2660 static inline void netif_stop_queue(struct net_device *dev) in netif_stop_queue()
2665 void netif_tx_stop_all_queues(struct net_device *dev);
2678 static inline bool netif_queue_stopped(const struct net_device *dev) in netif_queue_stopped()
2761 static inline void netdev_sent_queue(struct net_device *dev, unsigned int bytes) in netdev_sent_queue()
2800 static inline void netdev_completed_queue(struct net_device *dev, in netdev_completed_queue()
2821 static inline void netdev_reset_queue(struct net_device *dev_queue) in netdev_reset_queue()
2834 static inline u16 netdev_cap_txqueue(struct net_device *dev, u16 queue_index) in netdev_cap_txqueue()
2852 static inline bool netif_running(const struct net_device *dev) in netif_running()
2871 static inline void netif_start_subqueue(struct net_device *dev, u16 queue_index) in netif_start_subqueue()
2885 static inline void netif_stop_subqueue(struct net_device *dev, u16 queue_index) in netif_stop_subqueue()
2898 static inline bool __netif_subqueue_stopped(const struct net_device *dev, in __netif_subqueue_stopped()
2906 static inline bool netif_subqueue_stopped(const struct net_device *dev, in netif_subqueue_stopped()
2912 void netif_wake_subqueue(struct net_device *dev, u16 queue_index);
2915 int netif_set_xps_queue(struct net_device *dev, const struct cpumask *mask,
2918 static inline int netif_set_xps_queue(struct net_device *dev, in netif_set_xps_queue()
2926 u16 __skb_tx_hash(const struct net_device *dev, struct sk_buff *skb,
2933 static inline u16 skb_tx_hash(const struct net_device *dev, in skb_tx_hash()
2945 static inline bool netif_is_multiqueue(const struct net_device *dev) in netif_is_multiqueue()
2950 int netif_set_real_num_tx_queues(struct net_device *dev, unsigned int txq);
2953 int netif_set_real_num_rx_queues(struct net_device *dev, unsigned int rxq);
2955 static inline int netif_set_real_num_rx_queues(struct net_device *dev, in netif_set_real_num_rx_queues()
2966 struct net_device *dev = queue->dev; in get_netdev_rx_queue_index()
3040 int netdev_rx_handler_register(struct net_device *dev,
3043 void netdev_rx_handler_unregister(struct net_device *dev);
3048 unsigned int dev_get_flags(const struct net_device *);
3049 int __dev_change_flags(struct net_device *, unsigned int flags);
3050 int dev_change_flags(struct net_device *, unsigned int);
3051 void __dev_notify_flags(struct net_device *, unsigned int old_flags,
3053 int dev_change_name(struct net_device *, const char *);
3054 int dev_set_alias(struct net_device *, const char *, size_t);
3055 int dev_change_net_namespace(struct net_device *, struct net *, const char *);
3056 int dev_set_mtu(struct net_device *, int);
3057 void dev_set_group(struct net_device *, int);
3058 int dev_set_mac_address(struct net_device *, struct sockaddr *);
3059 int dev_change_carrier(struct net_device *, bool new_carrier);
3060 int dev_get_phys_port_id(struct net_device *dev,
3062 int dev_get_phys_port_name(struct net_device *dev,
3064 int dev_change_proto_down(struct net_device *dev, bool proto_down);
3065 struct sk_buff *validate_xmit_skb_list(struct sk_buff *skb, struct net_device *dev);
3066 struct sk_buff *dev_hard_start_xmit(struct sk_buff *skb, struct net_device *dev,
3068 int __dev_forward_skb(struct net_device *dev, struct sk_buff *skb);
3069 int dev_forward_skb(struct net_device *dev, struct sk_buff *skb);
3070 bool is_skb_forwardable(struct net_device *dev, struct sk_buff *skb);
3083 static inline void dev_put(struct net_device *dev) in dev_put()
3094 static inline void dev_hold(struct net_device *dev) in dev_hold()
3108 void linkwatch_init_dev(struct net_device *dev);
3109 void linkwatch_fire_event(struct net_device *dev);
3110 void linkwatch_forget_dev(struct net_device *dev);
3118 static inline bool netif_carrier_ok(const struct net_device *dev) in netif_carrier_ok()
3123 unsigned long dev_trans_start(struct net_device *dev);
3125 void __netdev_watchdog_up(struct net_device *dev);
3127 void netif_carrier_on(struct net_device *dev);
3129 void netif_carrier_off(struct net_device *dev);
3144 static inline void netif_dormant_on(struct net_device *dev) in netif_dormant_on()
3156 static inline void netif_dormant_off(struct net_device *dev) in netif_dormant_off()
3168 static inline bool netif_dormant(const struct net_device *dev) in netif_dormant()
3180 static inline bool netif_oper_up(const struct net_device *dev) in netif_oper_up()
3192 static inline bool netif_device_present(struct net_device *dev) in netif_device_present()
3197 void netif_device_detach(struct net_device *dev);
3199 void netif_device_attach(struct net_device *dev);
3294 static inline void netif_tx_lock(struct net_device *dev) in netif_tx_lock()
3316 static inline void netif_tx_lock_bh(struct net_device *dev) in netif_tx_lock_bh()
3322 static inline void netif_tx_unlock(struct net_device *dev) in netif_tx_unlock()
3339 static inline void netif_tx_unlock_bh(struct net_device *dev) in netif_tx_unlock_bh()
3362 static inline void netif_tx_disable(struct net_device *dev) in netif_tx_disable()
3379 static inline void netif_addr_lock(struct net_device *dev) in netif_addr_lock()
3384 static inline void netif_addr_lock_nested(struct net_device *dev) in netif_addr_lock_nested()
3394 static inline void netif_addr_lock_bh(struct net_device *dev) in netif_addr_lock_bh()
3399 static inline void netif_addr_unlock(struct net_device *dev) in netif_addr_unlock()
3404 static inline void netif_addr_unlock_bh(struct net_device *dev) in netif_addr_unlock_bh()
3418 void ether_setup(struct net_device *dev);
3421 struct net_device *alloc_netdev_mqs(int sizeof_priv, const char *name,
3423 void (*setup)(struct net_device *),
3432 int register_netdev(struct net_device *dev);
3433 void unregister_netdev(struct net_device *dev);
3441 struct net_device *dev,
3442 int (*sync)(struct net_device *, const unsigned char *),
3443 int (*unsync)(struct net_device *,
3446 struct net_device *dev,
3447 int (*unsync)(struct net_device *,
3452 int dev_addr_add(struct net_device *dev, const unsigned char *addr,
3454 int dev_addr_del(struct net_device *dev, const unsigned char *addr,
3456 void dev_addr_flush(struct net_device *dev);
3457 int dev_addr_init(struct net_device *dev);
3460 int dev_uc_add(struct net_device *dev, const unsigned char *addr);
3461 int dev_uc_add_excl(struct net_device *dev, const unsigned char *addr);
3462 int dev_uc_del(struct net_device *dev, const unsigned char *addr);
3463 int dev_uc_sync(struct net_device *to, struct net_device *from);
3464 int dev_uc_sync_multiple(struct net_device *to, struct net_device *from);
3465 void dev_uc_unsync(struct net_device *to, struct net_device *from);
3466 void dev_uc_flush(struct net_device *dev);
3467 void dev_uc_init(struct net_device *dev);
3478 static inline int __dev_uc_sync(struct net_device *dev, in __dev_uc_sync()
3479 int (*sync)(struct net_device *, in __dev_uc_sync() argument
3481 int (*unsync)(struct net_device *, in __dev_uc_sync() argument
3494 static inline void __dev_uc_unsync(struct net_device *dev, in __dev_uc_unsync()
3495 int (*unsync)(struct net_device *, in __dev_uc_unsync() argument
3502 int dev_mc_add(struct net_device *dev, const unsigned char *addr);
3503 int dev_mc_add_global(struct net_device *dev, const unsigned char *addr);
3504 int dev_mc_add_excl(struct net_device *dev, const unsigned char *addr);
3505 int dev_mc_del(struct net_device *dev, const unsigned char *addr);
3506 int dev_mc_del_global(struct net_device *dev, const unsigned char *addr);
3507 int dev_mc_sync(struct net_device *to, struct net_device *from);
3508 int dev_mc_sync_multiple(struct net_device *to, struct net_device *from);
3509 void dev_mc_unsync(struct net_device *to, struct net_device *from);
3510 void dev_mc_flush(struct net_device *dev);
3511 void dev_mc_init(struct net_device *dev);
3522 static inline int __dev_mc_sync(struct net_device *dev, in __dev_mc_sync()
3523 int (*sync)(struct net_device *, in __dev_mc_sync() argument
3525 int (*unsync)(struct net_device *, in __dev_mc_sync() argument
3538 static inline void __dev_mc_unsync(struct net_device *dev, in __dev_mc_unsync()
3539 int (*unsync)(struct net_device *, in __dev_mc_unsync() argument
3546 void dev_set_rx_mode(struct net_device *dev);
3547 void __dev_set_rx_mode(struct net_device *dev);
3548 int dev_set_promiscuity(struct net_device *dev, int inc);
3549 int dev_set_allmulti(struct net_device *dev, int inc);
3550 void netdev_state_change(struct net_device *dev);
3551 void netdev_notify_peers(struct net_device *dev);
3552 void netdev_features_change(struct net_device *dev);
3555 struct rtnl_link_stats64 *dev_get_stats(struct net_device *dev,
3565 bool netdev_has_upper_dev(struct net_device *dev, struct net_device *upper_dev);
3566 struct net_device *netdev_upper_get_next_dev_rcu(struct net_device *dev,
3568 struct net_device *netdev_all_upper_get_next_dev_rcu(struct net_device *dev,
3585 void *netdev_lower_get_next_private(struct net_device *dev,
3587 void *netdev_lower_get_next_private_rcu(struct net_device *dev,
3602 void *netdev_lower_get_next(struct net_device *dev,
3611 void *netdev_lower_get_first_private_rcu(struct net_device *dev);
3612 struct net_device *netdev_master_upper_dev_get(struct net_device *dev);
3613 struct net_device *netdev_master_upper_dev_get_rcu(struct net_device *dev);
3614 int netdev_upper_dev_link(struct net_device *dev, struct net_device *upper_dev);
3615 int netdev_master_upper_dev_link(struct net_device *dev,
3616 struct net_device *upper_dev);
3617 int netdev_master_upper_dev_link_private(struct net_device *dev,
3618 struct net_device *upper_dev,
3620 void netdev_upper_dev_unlink(struct net_device *dev,
3621 struct net_device *upper_dev);
3622 void netdev_adjacent_rename_links(struct net_device *dev, char *oldname);
3623 void *netdev_lower_dev_get_private(struct net_device *dev,
3624 struct net_device *lower_dev);
3631 int dev_get_nest_level(struct net_device *dev,
3632 bool (*type_check)(struct net_device *dev));
3649 void netdev_bonding_info_change(struct net_device *dev,
3672 void netdev_rx_csum_fault(struct net_device *dev);
3674 static inline void netdev_rx_csum_fault(struct net_device *dev) in netdev_rx_csum_fault()
3689 struct sk_buff *skb, struct net_device *dev, in __netdev_start_xmit()
3696 static inline netdev_tx_t netdev_start_xmit(struct sk_buff *skb, struct net_device *dev, in netdev_start_xmit()
3726 const char *netdev_drivername(const struct net_device *dev);
3745 struct net_device *dev) in netdev_get_wanted_features()
3762 int __netdev_update_features(struct net_device *dev);
3763 void netdev_update_features(struct net_device *dev);
3764 void netdev_change_features(struct net_device *dev);
3766 void netif_stacked_transfer_operstate(const struct net_device *rootdev,
3767 struct net_device *dev);
3770 struct net_device *dev,
3810 static inline void netif_set_gso_max_size(struct net_device *dev, in netif_set_gso_max_size()
3829 static inline bool netif_is_macvlan(struct net_device *dev) in netif_is_macvlan()
3834 static inline bool netif_is_macvlan_port(struct net_device *dev) in netif_is_macvlan_port()
3839 static inline bool netif_is_ipvlan(struct net_device *dev) in netif_is_ipvlan()
3844 static inline bool netif_is_ipvlan_port(struct net_device *dev) in netif_is_ipvlan_port()
3849 static inline bool netif_is_bond_master(struct net_device *dev) in netif_is_bond_master()
3854 static inline bool netif_is_bond_slave(struct net_device *dev) in netif_is_bond_slave()
3859 static inline bool netif_supports_nofcs(struct net_device *dev) in netif_supports_nofcs()
3864 static inline bool netif_is_l3_master(const struct net_device *dev) in netif_is_l3_master()
3869 static inline bool netif_is_l3_slave(const struct net_device *dev) in netif_is_l3_slave()
3874 static inline bool netif_is_bridge_master(const struct net_device *dev) in netif_is_bridge_master()
3879 static inline bool netif_is_bridge_port(const struct net_device *dev) in netif_is_bridge_port()
3884 static inline bool netif_is_ovs_master(const struct net_device *dev) in netif_is_ovs_master()
3890 static inline void netif_keep_dst(struct net_device *dev) in netif_keep_dst()
3901 static inline const char *netdev_name(const struct net_device *dev) in netdev_name()
3908 static inline const char *netdev_reg_state(const struct net_device *dev) in netdev_reg_state()
3924 void netdev_printk(const char *level, const struct net_device *dev,
3927 void netdev_emerg(const struct net_device *dev, const char *format, ...);
3929 void netdev_alert(const struct net_device *dev, const char *format, ...);
3931 void netdev_crit(const struct net_device *dev, const char *format, ...);
3933 void netdev_err(const struct net_device *dev, const char *format, ...);
3935 void netdev_warn(const struct net_device *dev, const char *format, ...);
3937 void netdev_notice(const struct net_device *dev, const char *format, ...);
3939 void netdev_info(const struct net_device *dev, const char *format, ...);