Lines Matching defs:net_device
1017 struct net_device { struct
1024 char name[IFNAMSIZ];
1026 struct pm_qos_request pm_qos_req;
1029 struct hlist_node name_hlist;
1031 char *ifalias;
1037 unsigned long mem_end; /* shared mem end */
1038 unsigned long mem_start; /* shared mem start */
1039 unsigned long base_addr; /* device I/O address */
1040 unsigned int irq; /* device IRQ number */
1066 struct net_device_stats stats; argument
1079 const struct net_device_ops *netdev_ops; argument
1080 const struct ethtool_ops *ethtool_ops;
1083 const struct header_ops *header_ops;
1085 unsigned int flags; /* interface flags (a la BSD) */
1086 unsigned int priv_flags; /* Like 'flags' but invisible to userspace.
1088 unsigned short gflags;
1089 unsigned short padded; /* How much padding added by alloc_netdev() */
1091 unsigned char operstate; /* RFC2863 operstate */
1092 unsigned char link_mode; /* mapping policy to operstate */
1094 unsigned char if_port; /* Selectable AUI, TP,..*/
1095 unsigned char dma; /* DMA channel */
1097 unsigned int mtu; /* interface MTU value */
1098 unsigned short type; /* interface hardware type */
1099 unsigned short hard_header_len; /* hardware hdr length */
1105 unsigned short needed_headroom;
1106 unsigned short needed_tailroom;
1109 unsigned char perm_addr[MAX_ADDR_LEN]; /* permanent hw address */
1110 unsigned char addr_assign_type; /* hw address assignment type */
1111 unsigned char addr_len; /* hardware address length */
1112 unsigned char neigh_priv_len;
1113 unsigned short dev_id; /* for shared network cards */
1115 spinlock_t addr_list_lock;
1116 struct netdev_hw_addr_list uc; /* Unicast mac addresses */
1117 struct netdev_hw_addr_list mc; /* Multicast mac addresses */
1118 bool uc_promisc;
1119 unsigned int promiscuity;
1120 unsigned int allmulti;
1126 struct vlan_info __rcu *vlan_info; /* VLAN info */
1151 struct net_device *master; /* Pointer to master device of a group, argument
1156 unsigned char *dev_addr; /* hw address, (before bcast
1160 struct netdev_hw_addr_list dev_addrs; /* list of device
1163 unsigned char broadcast[MAX_ADDR_LEN]; /* hw bcast add */
1166 struct kset *queues_kset;
1170 struct netdev_rx_queue *_rx;
1173 unsigned int num_rx_queues;
1176 unsigned int real_num_rx_queues;
1182 struct cpu_rmap *rx_cpu_rmap;
1186 rx_handler_func_t __rcu *rx_handler;
1187 void __rcu *rx_handler_data;
1189 struct netdev_queue __rcu *ingress_queue;
1194 struct netdev_queue *_tx ____cacheline_aligned_in_smp;
1197 unsigned int num_tx_queues;
1200 unsigned int real_num_tx_queues;
1203 struct Qdisc *qdisc;
1205 unsigned long tx_queue_len; /* Max frames per queue allowed */
1206 spinlock_t tx_global_lock;
1209 struct xps_dev_maps __rcu *xps_maps;
1218 unsigned long trans_start; /* Time (in jiffies) of last Tx */
1220 int watchdog_timeo; /* used by dev_watchdog() */
1221 struct timer_list watchdog_timer;
1224 int __percpu *pcpu_refcnt;
1250 void (*destructor)(struct net_device *dev); argument
1253 struct netpoll_info *npinfo;
1258 struct net *nd_net;
1262 union {
1269 struct garp_port __rcu *garp_port;
1272 struct device dev;
1274 const struct attribute_group *sysfs_groups[4];
1277 const struct rtnl_link_ops *rtnl_link_ops;
1281 unsigned int gso_max_size;
1306 #define to_net_dev(d) container_of(d, struct net_device, dev) argument
1369 void (*f)(struct net_device *, in netdev_for_each_tx_queue()