en_port.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587
  1. /*
  2. * Copyright (c) 2007 Mellanox Technologies. All rights reserved.
  3. *
  4. * This software is available to you under a choice of one of two
  5. * licenses. You may choose to be licensed under the terms of the GNU
  6. * General Public License (GPL) Version 2, available from the file
  7. * COPYING in the main directory of this source tree, or the
  8. * OpenIB.org BSD license below:
  9. *
  10. * Redistribution and use in source and binary forms, with or
  11. * without modification, are permitted provided that the following
  12. * conditions are met:
  13. *
  14. * - Redistributions of source code must retain the above
  15. * copyright notice, this list of conditions and the following
  16. * disclaimer.
  17. *
  18. * - Redistributions in binary form must reproduce the above
  19. * copyright notice, this list of conditions and the following
  20. * disclaimer in the documentation and/or other materials
  21. * provided with the distribution.
  22. *
  23. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  24. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  25. * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  26. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
  27. * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
  28. * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  29. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  30. * SOFTWARE.
  31. *
  32. */
  33. #ifndef _MLX4_EN_PORT_H_
  34. #define _MLX4_EN_PORT_H_
  35. #define SET_PORT_GEN_ALL_VALID 0x7
  36. #define SET_PORT_PROMISC_SHIFT 31
  37. #define SET_PORT_MC_PROMISC_SHIFT 30
  38. #define MLX4_EN_NUM_TC 8
  39. #define VLAN_FLTR_SIZE 128
  40. struct mlx4_set_vlan_fltr_mbox {
  41. __be32 entry[VLAN_FLTR_SIZE];
  42. };
  43. enum {
  44. MLX4_MCAST_CONFIG = 0,
  45. MLX4_MCAST_DISABLE = 1,
  46. MLX4_MCAST_ENABLE = 2,
  47. };
  48. enum mlx4_link_mode {
  49. MLX4_1000BASE_CX_SGMII = 0,
  50. MLX4_1000BASE_KX = 1,
  51. MLX4_10GBASE_CX4 = 2,
  52. MLX4_10GBASE_KX4 = 3,
  53. MLX4_10GBASE_KR = 4,
  54. MLX4_20GBASE_KR2 = 5,
  55. MLX4_40GBASE_CR4 = 6,
  56. MLX4_40GBASE_KR4 = 7,
  57. MLX4_56GBASE_KR4 = 8,
  58. MLX4_10GBASE_CR = 12,
  59. MLX4_10GBASE_SR = 13,
  60. MLX4_40GBASE_SR4 = 15,
  61. MLX4_56GBASE_CR4 = 17,
  62. MLX4_56GBASE_SR4 = 18,
  63. MLX4_100BASE_TX = 24,
  64. MLX4_1000BASE_T = 25,
  65. MLX4_10GBASE_T = 26,
  66. };
  67. #define MLX4_PROT_MASK(link_mode) (1<<link_mode)
  68. enum {
  69. MLX4_EN_100M_SPEED = 0x04,
  70. MLX4_EN_10G_SPEED_XAUI = 0x00,
  71. MLX4_EN_10G_SPEED_XFI = 0x01,
  72. MLX4_EN_1G_SPEED = 0x02,
  73. MLX4_EN_20G_SPEED = 0x08,
  74. MLX4_EN_40G_SPEED = 0x40,
  75. MLX4_EN_56G_SPEED = 0x20,
  76. MLX4_EN_OTHER_SPEED = 0x0f,
  77. };
  78. struct mlx4_en_query_port_context {
  79. u8 link_up;
  80. #define MLX4_EN_LINK_UP_MASK 0x80
  81. #define MLX4_EN_ANC_MASK 0x40
  82. u8 autoneg;
  83. #define MLX4_EN_AUTONEG_MASK 0x80
  84. __be16 mtu;
  85. u8 reserved2;
  86. u8 link_speed;
  87. #define MLX4_EN_SPEED_MASK 0x6f
  88. u16 reserved3[5];
  89. __be64 mac;
  90. u8 transceiver;
  91. };
  92. struct mlx4_en_stat_out_mbox {
  93. /* Received frames with a length of 64 octets */
  94. __be64 R64_prio_0;
  95. __be64 R64_prio_1;
  96. __be64 R64_prio_2;
  97. __be64 R64_prio_3;
  98. __be64 R64_prio_4;
  99. __be64 R64_prio_5;
  100. __be64 R64_prio_6;
  101. __be64 R64_prio_7;
  102. __be64 R64_novlan;
  103. /* Received frames with a length of 127 octets */
  104. __be64 R127_prio_0;
  105. __be64 R127_prio_1;
  106. __be64 R127_prio_2;
  107. __be64 R127_prio_3;
  108. __be64 R127_prio_4;
  109. __be64 R127_prio_5;
  110. __be64 R127_prio_6;
  111. __be64 R127_prio_7;
  112. __be64 R127_novlan;
  113. /* Received frames with a length of 255 octets */
  114. __be64 R255_prio_0;
  115. __be64 R255_prio_1;
  116. __be64 R255_prio_2;
  117. __be64 R255_prio_3;
  118. __be64 R255_prio_4;
  119. __be64 R255_prio_5;
  120. __be64 R255_prio_6;
  121. __be64 R255_prio_7;
  122. __be64 R255_novlan;
  123. /* Received frames with a length of 511 octets */
  124. __be64 R511_prio_0;
  125. __be64 R511_prio_1;
  126. __be64 R511_prio_2;
  127. __be64 R511_prio_3;
  128. __be64 R511_prio_4;
  129. __be64 R511_prio_5;
  130. __be64 R511_prio_6;
  131. __be64 R511_prio_7;
  132. __be64 R511_novlan;
  133. /* Received frames with a length of 1023 octets */
  134. __be64 R1023_prio_0;
  135. __be64 R1023_prio_1;
  136. __be64 R1023_prio_2;
  137. __be64 R1023_prio_3;
  138. __be64 R1023_prio_4;
  139. __be64 R1023_prio_5;
  140. __be64 R1023_prio_6;
  141. __be64 R1023_prio_7;
  142. __be64 R1023_novlan;
  143. /* Received frames with a length of 1518 octets */
  144. __be64 R1518_prio_0;
  145. __be64 R1518_prio_1;
  146. __be64 R1518_prio_2;
  147. __be64 R1518_prio_3;
  148. __be64 R1518_prio_4;
  149. __be64 R1518_prio_5;
  150. __be64 R1518_prio_6;
  151. __be64 R1518_prio_7;
  152. __be64 R1518_novlan;
  153. /* Received frames with a length of 1522 octets */
  154. __be64 R1522_prio_0;
  155. __be64 R1522_prio_1;
  156. __be64 R1522_prio_2;
  157. __be64 R1522_prio_3;
  158. __be64 R1522_prio_4;
  159. __be64 R1522_prio_5;
  160. __be64 R1522_prio_6;
  161. __be64 R1522_prio_7;
  162. __be64 R1522_novlan;
  163. /* Received frames with a length of 1548 octets */
  164. __be64 R1548_prio_0;
  165. __be64 R1548_prio_1;
  166. __be64 R1548_prio_2;
  167. __be64 R1548_prio_3;
  168. __be64 R1548_prio_4;
  169. __be64 R1548_prio_5;
  170. __be64 R1548_prio_6;
  171. __be64 R1548_prio_7;
  172. __be64 R1548_novlan;
  173. /* Received frames with a length of 1548 < octets < MTU */
  174. __be64 R2MTU_prio_0;
  175. __be64 R2MTU_prio_1;
  176. __be64 R2MTU_prio_2;
  177. __be64 R2MTU_prio_3;
  178. __be64 R2MTU_prio_4;
  179. __be64 R2MTU_prio_5;
  180. __be64 R2MTU_prio_6;
  181. __be64 R2MTU_prio_7;
  182. __be64 R2MTU_novlan;
  183. /* Received frames with a length of MTU< octets and good CRC */
  184. __be64 RGIANT_prio_0;
  185. __be64 RGIANT_prio_1;
  186. __be64 RGIANT_prio_2;
  187. __be64 RGIANT_prio_3;
  188. __be64 RGIANT_prio_4;
  189. __be64 RGIANT_prio_5;
  190. __be64 RGIANT_prio_6;
  191. __be64 RGIANT_prio_7;
  192. __be64 RGIANT_novlan;
  193. /* Received broadcast frames with good CRC */
  194. __be64 RBCAST_prio_0;
  195. __be64 RBCAST_prio_1;
  196. __be64 RBCAST_prio_2;
  197. __be64 RBCAST_prio_3;
  198. __be64 RBCAST_prio_4;
  199. __be64 RBCAST_prio_5;
  200. __be64 RBCAST_prio_6;
  201. __be64 RBCAST_prio_7;
  202. __be64 RBCAST_novlan;
  203. /* Received multicast frames with good CRC */
  204. __be64 MCAST_prio_0;
  205. __be64 MCAST_prio_1;
  206. __be64 MCAST_prio_2;
  207. __be64 MCAST_prio_3;
  208. __be64 MCAST_prio_4;
  209. __be64 MCAST_prio_5;
  210. __be64 MCAST_prio_6;
  211. __be64 MCAST_prio_7;
  212. __be64 MCAST_novlan;
  213. /* Received unicast not short or GIANT frames with good CRC */
  214. __be64 RTOTG_prio_0;
  215. __be64 RTOTG_prio_1;
  216. __be64 RTOTG_prio_2;
  217. __be64 RTOTG_prio_3;
  218. __be64 RTOTG_prio_4;
  219. __be64 RTOTG_prio_5;
  220. __be64 RTOTG_prio_6;
  221. __be64 RTOTG_prio_7;
  222. __be64 RTOTG_novlan;
  223. /* Count of total octets of received frames, includes framing characters */
  224. __be64 RTTLOCT_prio_0;
  225. /* Count of total octets of received frames, not including framing
  226. characters */
  227. __be64 RTTLOCT_NOFRM_prio_0;
  228. /* Count of Total number of octets received
  229. (only for frames without errors) */
  230. __be64 ROCT_prio_0;
  231. __be64 RTTLOCT_prio_1;
  232. __be64 RTTLOCT_NOFRM_prio_1;
  233. __be64 ROCT_prio_1;
  234. __be64 RTTLOCT_prio_2;
  235. __be64 RTTLOCT_NOFRM_prio_2;
  236. __be64 ROCT_prio_2;
  237. __be64 RTTLOCT_prio_3;
  238. __be64 RTTLOCT_NOFRM_prio_3;
  239. __be64 ROCT_prio_3;
  240. __be64 RTTLOCT_prio_4;
  241. __be64 RTTLOCT_NOFRM_prio_4;
  242. __be64 ROCT_prio_4;
  243. __be64 RTTLOCT_prio_5;
  244. __be64 RTTLOCT_NOFRM_prio_5;
  245. __be64 ROCT_prio_5;
  246. __be64 RTTLOCT_prio_6;
  247. __be64 RTTLOCT_NOFRM_prio_6;
  248. __be64 ROCT_prio_6;
  249. __be64 RTTLOCT_prio_7;
  250. __be64 RTTLOCT_NOFRM_prio_7;
  251. __be64 ROCT_prio_7;
  252. __be64 RTTLOCT_novlan;
  253. __be64 RTTLOCT_NOFRM_novlan;
  254. __be64 ROCT_novlan;
  255. /* Count of Total received frames including bad frames */
  256. __be64 RTOT_prio_0;
  257. /* Count of Total number of received frames with 802.1Q encapsulation */
  258. __be64 R1Q_prio_0;
  259. __be64 reserved1;
  260. __be64 RTOT_prio_1;
  261. __be64 R1Q_prio_1;
  262. __be64 reserved2;
  263. __be64 RTOT_prio_2;
  264. __be64 R1Q_prio_2;
  265. __be64 reserved3;
  266. __be64 RTOT_prio_3;
  267. __be64 R1Q_prio_3;
  268. __be64 reserved4;
  269. __be64 RTOT_prio_4;
  270. __be64 R1Q_prio_4;
  271. __be64 reserved5;
  272. __be64 RTOT_prio_5;
  273. __be64 R1Q_prio_5;
  274. __be64 reserved6;
  275. __be64 RTOT_prio_6;
  276. __be64 R1Q_prio_6;
  277. __be64 reserved7;
  278. __be64 RTOT_prio_7;
  279. __be64 R1Q_prio_7;
  280. __be64 reserved8;
  281. __be64 RTOT_novlan;
  282. __be64 R1Q_novlan;
  283. __be64 reserved9;
  284. /* Total number of Successfully Received Control Frames */
  285. __be64 RCNTL;
  286. __be64 reserved10;
  287. __be64 reserved11;
  288. __be64 reserved12;
  289. /* Count of received frames with a length/type field value between 46
  290. (42 for VLANtagged frames) and 1500 (also 1500 for VLAN-tagged frames),
  291. inclusive */
  292. __be64 RInRangeLengthErr;
  293. /* Count of received frames with length/type field between 1501 and 1535
  294. decimal, inclusive */
  295. __be64 ROutRangeLengthErr;
  296. /* Count of received frames that are longer than max allowed size for
  297. 802.3 frames (1518/1522) */
  298. __be64 RFrmTooLong;
  299. /* Count frames received with PCS error */
  300. __be64 PCS;
  301. /* Transmit frames with a length of 64 octets */
  302. __be64 T64_prio_0;
  303. __be64 T64_prio_1;
  304. __be64 T64_prio_2;
  305. __be64 T64_prio_3;
  306. __be64 T64_prio_4;
  307. __be64 T64_prio_5;
  308. __be64 T64_prio_6;
  309. __be64 T64_prio_7;
  310. __be64 T64_novlan;
  311. __be64 T64_loopbk;
  312. /* Transmit frames with a length of 65 to 127 octets. */
  313. __be64 T127_prio_0;
  314. __be64 T127_prio_1;
  315. __be64 T127_prio_2;
  316. __be64 T127_prio_3;
  317. __be64 T127_prio_4;
  318. __be64 T127_prio_5;
  319. __be64 T127_prio_6;
  320. __be64 T127_prio_7;
  321. __be64 T127_novlan;
  322. __be64 T127_loopbk;
  323. /* Transmit frames with a length of 128 to 255 octets */
  324. __be64 T255_prio_0;
  325. __be64 T255_prio_1;
  326. __be64 T255_prio_2;
  327. __be64 T255_prio_3;
  328. __be64 T255_prio_4;
  329. __be64 T255_prio_5;
  330. __be64 T255_prio_6;
  331. __be64 T255_prio_7;
  332. __be64 T255_novlan;
  333. __be64 T255_loopbk;
  334. /* Transmit frames with a length of 256 to 511 octets */
  335. __be64 T511_prio_0;
  336. __be64 T511_prio_1;
  337. __be64 T511_prio_2;
  338. __be64 T511_prio_3;
  339. __be64 T511_prio_4;
  340. __be64 T511_prio_5;
  341. __be64 T511_prio_6;
  342. __be64 T511_prio_7;
  343. __be64 T511_novlan;
  344. __be64 T511_loopbk;
  345. /* Transmit frames with a length of 512 to 1023 octets */
  346. __be64 T1023_prio_0;
  347. __be64 T1023_prio_1;
  348. __be64 T1023_prio_2;
  349. __be64 T1023_prio_3;
  350. __be64 T1023_prio_4;
  351. __be64 T1023_prio_5;
  352. __be64 T1023_prio_6;
  353. __be64 T1023_prio_7;
  354. __be64 T1023_novlan;
  355. __be64 T1023_loopbk;
  356. /* Transmit frames with a length of 1024 to 1518 octets */
  357. __be64 T1518_prio_0;
  358. __be64 T1518_prio_1;
  359. __be64 T1518_prio_2;
  360. __be64 T1518_prio_3;
  361. __be64 T1518_prio_4;
  362. __be64 T1518_prio_5;
  363. __be64 T1518_prio_6;
  364. __be64 T1518_prio_7;
  365. __be64 T1518_novlan;
  366. __be64 T1518_loopbk;
  367. /* Counts transmit frames with a length of 1519 to 1522 bytes */
  368. __be64 T1522_prio_0;
  369. __be64 T1522_prio_1;
  370. __be64 T1522_prio_2;
  371. __be64 T1522_prio_3;
  372. __be64 T1522_prio_4;
  373. __be64 T1522_prio_5;
  374. __be64 T1522_prio_6;
  375. __be64 T1522_prio_7;
  376. __be64 T1522_novlan;
  377. __be64 T1522_loopbk;
  378. /* Transmit frames with a length of 1523 to 1548 octets */
  379. __be64 T1548_prio_0;
  380. __be64 T1548_prio_1;
  381. __be64 T1548_prio_2;
  382. __be64 T1548_prio_3;
  383. __be64 T1548_prio_4;
  384. __be64 T1548_prio_5;
  385. __be64 T1548_prio_6;
  386. __be64 T1548_prio_7;
  387. __be64 T1548_novlan;
  388. __be64 T1548_loopbk;
  389. /* Counts transmit frames with a length of 1549 to MTU bytes */
  390. __be64 T2MTU_prio_0;
  391. __be64 T2MTU_prio_1;
  392. __be64 T2MTU_prio_2;
  393. __be64 T2MTU_prio_3;
  394. __be64 T2MTU_prio_4;
  395. __be64 T2MTU_prio_5;
  396. __be64 T2MTU_prio_6;
  397. __be64 T2MTU_prio_7;
  398. __be64 T2MTU_novlan;
  399. __be64 T2MTU_loopbk;
  400. /* Transmit frames with a length greater than MTU octets and a good CRC. */
  401. __be64 TGIANT_prio_0;
  402. __be64 TGIANT_prio_1;
  403. __be64 TGIANT_prio_2;
  404. __be64 TGIANT_prio_3;
  405. __be64 TGIANT_prio_4;
  406. __be64 TGIANT_prio_5;
  407. __be64 TGIANT_prio_6;
  408. __be64 TGIANT_prio_7;
  409. __be64 TGIANT_novlan;
  410. __be64 TGIANT_loopbk;
  411. /* Transmit broadcast frames with a good CRC */
  412. __be64 TBCAST_prio_0;
  413. __be64 TBCAST_prio_1;
  414. __be64 TBCAST_prio_2;
  415. __be64 TBCAST_prio_3;
  416. __be64 TBCAST_prio_4;
  417. __be64 TBCAST_prio_5;
  418. __be64 TBCAST_prio_6;
  419. __be64 TBCAST_prio_7;
  420. __be64 TBCAST_novlan;
  421. __be64 TBCAST_loopbk;
  422. /* Transmit multicast frames with a good CRC */
  423. __be64 TMCAST_prio_0;
  424. __be64 TMCAST_prio_1;
  425. __be64 TMCAST_prio_2;
  426. __be64 TMCAST_prio_3;
  427. __be64 TMCAST_prio_4;
  428. __be64 TMCAST_prio_5;
  429. __be64 TMCAST_prio_6;
  430. __be64 TMCAST_prio_7;
  431. __be64 TMCAST_novlan;
  432. __be64 TMCAST_loopbk;
  433. /* Transmit good frames that are neither broadcast nor multicast */
  434. __be64 TTOTG_prio_0;
  435. __be64 TTOTG_prio_1;
  436. __be64 TTOTG_prio_2;
  437. __be64 TTOTG_prio_3;
  438. __be64 TTOTG_prio_4;
  439. __be64 TTOTG_prio_5;
  440. __be64 TTOTG_prio_6;
  441. __be64 TTOTG_prio_7;
  442. __be64 TTOTG_novlan;
  443. __be64 TTOTG_loopbk;
  444. /* total octets of transmitted frames, including framing characters */
  445. __be64 TTTLOCT_prio_0;
  446. /* total octets of transmitted frames, not including framing characters */
  447. __be64 TTTLOCT_NOFRM_prio_0;
  448. /* ifOutOctets */
  449. __be64 TOCT_prio_0;
  450. __be64 TTTLOCT_prio_1;
  451. __be64 TTTLOCT_NOFRM_prio_1;
  452. __be64 TOCT_prio_1;
  453. __be64 TTTLOCT_prio_2;
  454. __be64 TTTLOCT_NOFRM_prio_2;
  455. __be64 TOCT_prio_2;
  456. __be64 TTTLOCT_prio_3;
  457. __be64 TTTLOCT_NOFRM_prio_3;
  458. __be64 TOCT_prio_3;
  459. __be64 TTTLOCT_prio_4;
  460. __be64 TTTLOCT_NOFRM_prio_4;
  461. __be64 TOCT_prio_4;
  462. __be64 TTTLOCT_prio_5;
  463. __be64 TTTLOCT_NOFRM_prio_5;
  464. __be64 TOCT_prio_5;
  465. __be64 TTTLOCT_prio_6;
  466. __be64 TTTLOCT_NOFRM_prio_6;
  467. __be64 TOCT_prio_6;
  468. __be64 TTTLOCT_prio_7;
  469. __be64 TTTLOCT_NOFRM_prio_7;
  470. __be64 TOCT_prio_7;
  471. __be64 TTTLOCT_novlan;
  472. __be64 TTTLOCT_NOFRM_novlan;
  473. __be64 TOCT_novlan;
  474. __be64 TTTLOCT_loopbk;
  475. __be64 TTTLOCT_NOFRM_loopbk;
  476. __be64 TOCT_loopbk;
  477. /* Total frames transmitted with a good CRC that are not aborted */
  478. __be64 TTOT_prio_0;
  479. /* Total number of frames transmitted with 802.1Q encapsulation */
  480. __be64 T1Q_prio_0;
  481. __be64 reserved13;
  482. __be64 TTOT_prio_1;
  483. __be64 T1Q_prio_1;
  484. __be64 reserved14;
  485. __be64 TTOT_prio_2;
  486. __be64 T1Q_prio_2;
  487. __be64 reserved15;
  488. __be64 TTOT_prio_3;
  489. __be64 T1Q_prio_3;
  490. __be64 reserved16;
  491. __be64 TTOT_prio_4;
  492. __be64 T1Q_prio_4;
  493. __be64 reserved17;
  494. __be64 TTOT_prio_5;
  495. __be64 T1Q_prio_5;
  496. __be64 reserved18;
  497. __be64 TTOT_prio_6;
  498. __be64 T1Q_prio_6;
  499. __be64 reserved19;
  500. __be64 TTOT_prio_7;
  501. __be64 T1Q_prio_7;
  502. __be64 reserved20;
  503. __be64 TTOT_novlan;
  504. __be64 T1Q_novlan;
  505. __be64 reserved21;
  506. __be64 TTOT_loopbk;
  507. __be64 T1Q_loopbk;
  508. __be64 reserved22;
  509. /* Received frames with a length greater than MTU octets and a bad CRC */
  510. __be32 RJBBR;
  511. /* Received frames with a bad CRC that are not runts, jabbers,
  512. or alignment errors */
  513. __be32 RCRC;
  514. /* Received frames with SFD with a length of less than 64 octets and a
  515. bad CRC */
  516. __be32 RRUNT;
  517. /* Received frames with a length less than 64 octets and a good CRC */
  518. __be32 RSHORT;
  519. /* Total Number of Received Packets Dropped */
  520. __be32 RDROP;
  521. /* Drop due to overflow */
  522. __be32 RdropOvflw;
  523. /* Drop due to overflow */
  524. __be32 RdropLength;
  525. /* Total of good frames. Does not include frames received with
  526. frame-too-long, FCS, or length errors */
  527. __be32 RTOTFRMS;
  528. /* Total dropped Xmited packets */
  529. __be32 TDROP;
  530. };
  531. #endif