Advertisement
Guest User

arm64_before

a guest
Feb 28th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.37 KB | None | 0 0
  1. struct net_device {
  2. char name[16]; /* 0 16 */
  3. struct hlist_node name_hlist; /* 16 16 */
  4. struct dev_ifalias * ifalias; /* 32 8 */
  5. long unsigned int mem_end; /* 40 8 */
  6. long unsigned int mem_start; /* 48 8 */
  7. long unsigned int base_addr; /* 56 8 */
  8. /* --- cacheline 1 boundary (64 bytes) --- */
  9. int irq; /* 64 4 */
  10.  
  11. /* XXX 4 bytes hole, try to pack */
  12.  
  13. long unsigned int state; /* 72 8 */
  14. struct list_head dev_list; /* 80 16 */
  15. struct list_head napi_list; /* 96 16 */
  16. struct list_head unreg_list; /* 112 16 */
  17. /* --- cacheline 2 boundary (128 bytes) --- */
  18. struct list_head close_list; /* 128 16 */
  19. struct list_head ptype_all; /* 144 16 */
  20. struct list_head ptype_specific; /* 160 16 */
  21. struct {
  22. struct list_head upper; /* 176 16 */
  23. struct list_head lower; /* 192 16 */
  24. } adj_list; /* 176 32 */
  25. /* --- cacheline 3 boundary (192 bytes) was 16 bytes ago --- */
  26. netdev_features_t features; /* 208 8 */
  27. netdev_features_t hw_features; /* 216 8 */
  28. netdev_features_t wanted_features; /* 224 8 */
  29. netdev_features_t vlan_features; /* 232 8 */
  30. netdev_features_t hw_enc_features; /* 240 8 */
  31. netdev_features_t mpls_features; /* 248 8 */
  32. /* --- cacheline 4 boundary (256 bytes) --- */
  33. netdev_features_t gso_partial_features; /* 256 8 */
  34. int ifindex; /* 264 4 */
  35. int group; /* 268 4 */
  36. struct net_device_stats stats; /* 272 184 */
  37. /* --- cacheline 7 boundary (448 bytes) was 8 bytes ago --- */
  38. atomic_long_t rx_dropped; /* 456 8 */
  39. atomic_long_t tx_dropped; /* 464 8 */
  40. atomic_long_t rx_nohandler; /* 472 8 */
  41. atomic_t carrier_up_count; /* 480 4 */
  42. atomic_t carrier_down_count; /* 484 4 */
  43. const struct net_device_ops * netdev_ops; /* 488 8 */
  44. const struct ethtool_ops * ethtool_ops; /* 496 8 */
  45. const struct ndisc_ops * ndisc_ops; /* 504 8 */
  46. /* --- cacheline 8 boundary (512 bytes) --- */
  47. const struct header_ops * header_ops; /* 512 8 */
  48. unsigned int flags; /* 520 4 */
  49. unsigned int priv_flags; /* 524 4 */
  50. short unsigned int gflags; /* 528 2 */
  51. short unsigned int padded; /* 530 2 */
  52. unsigned char operstate; /* 532 1 */
  53. unsigned char link_mode; /* 533 1 */
  54. unsigned char if_port; /* 534 1 */
  55. unsigned char dma; /* 535 1 */
  56. unsigned int mtu; /* 536 4 */
  57. unsigned int min_mtu; /* 540 4 */
  58. unsigned int max_mtu; /* 544 4 */
  59. short unsigned int type; /* 548 2 */
  60. short unsigned int hard_header_len; /* 550 2 */
  61. unsigned char min_header_len; /* 552 1 */
  62.  
  63. /* XXX 1 byte hole, try to pack */
  64.  
  65. short unsigned int needed_headroom; /* 554 2 */
  66. short unsigned int needed_tailroom; /* 556 2 */
  67. unsigned char perm_addr[32]; /* 558 32 */
  68. /* --- cacheline 9 boundary (576 bytes) was 14 bytes ago --- */
  69. unsigned char addr_assign_type; /* 590 1 */
  70. unsigned char addr_len; /* 591 1 */
  71. short unsigned int neigh_priv_len; /* 592 2 */
  72. short unsigned int dev_id; /* 594 2 */
  73. short unsigned int dev_port; /* 596 2 */
  74.  
  75. /* XXX 2 bytes hole, try to pack */
  76.  
  77. spinlock_t addr_list_lock; /* 600 4 */
  78. unsigned char name_assign_type; /* 604 1 */
  79. bool uc_promisc; /* 605 1 */
  80.  
  81. /* XXX 2 bytes hole, try to pack */
  82.  
  83. struct netdev_hw_addr_list uc; /* 608 24 */
  84. struct netdev_hw_addr_list mc; /* 632 24 */
  85. /* --- cacheline 10 boundary (640 bytes) was 16 bytes ago --- */
  86. struct netdev_hw_addr_list dev_addrs; /* 656 24 */
  87. struct kset * queues_kset; /* 680 8 */
  88. unsigned int promiscuity; /* 688 4 */
  89. unsigned int allmulti; /* 692 4 */
  90. struct vlan_info * vlan_info; /* 696 8 */
  91. /* --- cacheline 11 boundary (704 bytes) --- */
  92. struct in_device * ip_ptr; /* 704 8 */
  93. struct inet6_dev * ip6_ptr; /* 712 8 */
  94. struct wireless_dev * ieee80211_ptr; /* 720 8 */
  95. struct wpan_dev * ieee802154_ptr; /* 728 8 */
  96. unsigned char * dev_addr; /* 736 8 */
  97. struct netdev_rx_queue * _rx; /* 744 8 */
  98. unsigned int num_rx_queues; /* 752 4 */
  99. unsigned int real_num_rx_queues; /* 756 4 */
  100. struct bpf_prog * xdp_prog; /* 760 8 */
  101. /* --- cacheline 12 boundary (768 bytes) --- */
  102. long unsigned int gro_flush_timeout; /* 768 8 */
  103. rx_handler_func_t * rx_handler; /* 776 8 */
  104. void * rx_handler_data; /* 784 8 */
  105. struct netdev_queue * ingress_queue; /* 792 8 */
  106. struct nf_hook_entries * nf_hooks_ingress; /* 800 8 */
  107. unsigned char broadcast[32]; /* 808 32 */
  108. /* --- cacheline 13 boundary (832 bytes) was 8 bytes ago --- */
  109. struct cpu_rmap * rx_cpu_rmap; /* 840 8 */
  110. struct hlist_node index_hlist; /* 848 16 */
  111.  
  112. /* XXX 32 bytes hole, try to pack */
  113.  
  114. /* --- cacheline 14 boundary (896 bytes) --- */
  115. struct netdev_queue * _tx; /* 896 8 */
  116. unsigned int num_tx_queues; /* 904 4 */
  117. unsigned int real_num_tx_queues; /* 908 4 */
  118. struct Qdisc * qdisc; /* 912 8 */
  119. unsigned int tx_queue_len; /* 920 4 */
  120. spinlock_t tx_global_lock; /* 924 4 */
  121. int watchdog_timeo; /* 928 4 */
  122.  
  123. /* XXX 4 bytes hole, try to pack */
  124.  
  125. struct xps_dev_maps * xps_cpus_map; /* 936 8 */
  126. struct xps_dev_maps * xps_rxqs_map; /* 944 8 */
  127. struct timer_list watchdog_timer; /* 952 40 */
  128. /* --- cacheline 15 boundary (960 bytes) was 32 bytes ago --- */
  129. int * pcpu_refcnt; /* 992 8 */
  130. struct list_head todo_list; /* 1000 16 */
  131. struct list_head link_watch_list; /* 1016 16 */
  132. /* --- cacheline 16 boundary (1024 bytes) was 8 bytes ago --- */
  133. enum {
  134. NETREG_UNINITIALIZED = 0,
  135. NETREG_REGISTERED = 1,
  136. NETREG_UNREGISTERING = 2,
  137. NETREG_UNREGISTERED = 3,
  138. NETREG_RELEASED = 4,
  139. NETREG_DUMMY = 5,
  140. } reg_state:8; /* 1032 4 */
  141.  
  142. /* Bitfield combined with next fields */
  143.  
  144. bool dismantle; /* 1033 1 */
  145.  
  146. /* Bitfield combined with previous fields */
  147.  
  148. enum {
  149. RTNL_LINK_INITIALIZED = 0,
  150. RTNL_LINK_INITIALIZING = 1,
  151. } rtnl_link_state:16; /* 1032 4 */
  152. bool needs_free_netdev; /* 1036 1 */
  153.  
  154. /* XXX 3 bytes hole, try to pack */
  155.  
  156. void (*priv_destructor)(struct net_device *); /* 1040 8 */
  157. possible_net_t nd_net; /* 1048 8 */
  158. union {
  159. void * ml_priv; /* 8 */
  160. struct pcpu_lstats * lstats; /* 8 */
  161. struct pcpu_sw_netstats * tstats; /* 8 */
  162. struct pcpu_dstats * dstats; /* 8 */
  163. }; /* 1056 8 */
  164. struct garp_port * garp_port; /* 1064 8 */
  165. struct mrp_port * mrp_port; /* 1072 8 */
  166. struct device dev; /* 1080 768 */
  167. /* --- cacheline 28 boundary (1792 bytes) was 56 bytes ago --- */
  168. const struct attribute_group * sysfs_groups[4]; /* 1848 32 */
  169. /* --- cacheline 29 boundary (1856 bytes) was 24 bytes ago --- */
  170. const struct attribute_group * sysfs_rx_queue_group; /* 1880 8 */
  171. const struct rtnl_link_ops * rtnl_link_ops; /* 1888 8 */
  172. unsigned int gso_max_size; /* 1896 4 */
  173. u16 gso_max_segs; /* 1900 2 */
  174. s16 num_tc; /* 1902 2 */
  175. struct netdev_tc_txq tc_to_txq[16]; /* 1904 64 */
  176. /* --- cacheline 30 boundary (1920 bytes) was 48 bytes ago --- */
  177. u8 prio_tc_map[16]; /* 1968 16 */
  178. /* --- cacheline 31 boundary (1984 bytes) --- */
  179. struct phy_device * phydev; /* 1984 8 */
  180. struct sfp_bus * sfp_bus; /* 1992 8 */
  181. struct lock_class_key * qdisc_tx_busylock; /* 2000 8 */
  182. struct lock_class_key * qdisc_running_key; /* 2008 8 */
  183. bool proto_down; /* 2016 1 */
  184.  
  185. /* Bitfield combined with previous fields */
  186.  
  187. unsigned int wol_enabled:1; /* 2016:23 4 */
  188.  
  189. /* size: 2048, cachelines: 32, members: 120 */
  190. /* sum members: 1972, holes: 7, sum holes: 48 */
  191. /* padding: 28 */
  192. /* bit_padding: 31 bits */
  193. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement