rx_flow_search_entry.h 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786
  1. /*
  2. * Copyright (c) 2020, The Linux Foundation. All rights reserved.
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for any
  5. * purpose with or without fee is hereby granted, provided that the above
  6. * copyright notice and this permission notice appear in all copies.
  7. *
  8. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  9. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  10. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  11. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  12. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  13. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  14. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  15. */
  16. #ifndef _RX_FLOW_SEARCH_ENTRY_H_
  17. #define _RX_FLOW_SEARCH_ENTRY_H_
  18. #if !defined(__ASSEMBLER__)
  19. #endif
  20. // ################ START SUMMARY #################
  21. //
  22. // Dword Fields
  23. // 0 src_ip_127_96[31:0]
  24. // 1 src_ip_95_64[31:0]
  25. // 2 src_ip_63_32[31:0]
  26. // 3 src_ip_31_0[31:0]
  27. // 4 dest_ip_127_96[31:0]
  28. // 5 dest_ip_95_64[31:0]
  29. // 6 dest_ip_63_32[31:0]
  30. // 7 dest_ip_31_0[31:0]
  31. // 8 src_port[15:0], dest_port[31:16]
  32. // 9 l4_protocol[7:0], valid[8], reserved_9[23:9], reo_destination_indication[28:24], msdu_drop[29], reo_destination_handler[31:30]
  33. // 10 metadata[31:0]
  34. // 11 aggregation_count[6:0], lro_eligible[7], msdu_count[31:8]
  35. // 12 msdu_byte_count[31:0]
  36. // 13 timestamp[31:0]
  37. // 14 cumulative_l4_checksum[15:0], cumulative_ip_length[31:16]
  38. // 15 tcp_sequence_number[31:0]
  39. //
  40. // ################ END SUMMARY #################
  41. #define NUM_OF_DWORDS_RX_FLOW_SEARCH_ENTRY 16
  42. struct rx_flow_search_entry {
  43. uint32_t src_ip_127_96 : 32; //[31:0]
  44. uint32_t src_ip_95_64 : 32; //[31:0]
  45. uint32_t src_ip_63_32 : 32; //[31:0]
  46. uint32_t src_ip_31_0 : 32; //[31:0]
  47. uint32_t dest_ip_127_96 : 32; //[31:0]
  48. uint32_t dest_ip_95_64 : 32; //[31:0]
  49. uint32_t dest_ip_63_32 : 32; //[31:0]
  50. uint32_t dest_ip_31_0 : 32; //[31:0]
  51. uint32_t src_port : 16, //[15:0]
  52. dest_port : 16; //[31:16]
  53. uint32_t l4_protocol : 8, //[7:0]
  54. valid : 1, //[8]
  55. reserved_9 : 15, //[23:9]
  56. reo_destination_indication : 5, //[28:24]
  57. msdu_drop : 1, //[29]
  58. reo_destination_handler : 2; //[31:30]
  59. uint32_t metadata : 32; //[31:0]
  60. uint32_t aggregation_count : 7, //[6:0]
  61. lro_eligible : 1, //[7]
  62. msdu_count : 24; //[31:8]
  63. uint32_t msdu_byte_count : 32; //[31:0]
  64. uint32_t timestamp : 32; //[31:0]
  65. uint32_t cumulative_l4_checksum : 16, //[15:0]
  66. cumulative_ip_length : 16; //[31:16]
  67. uint32_t tcp_sequence_number : 32; //[31:0]
  68. };
  69. /*
  70. src_ip_127_96
  71. Uppermost 32 bits of source IPv6 address or prefix as
  72. per Common Parser register field IP_DA_SA_PREFIX (with the
  73. first byte in the MSB and the last byte in the LSB, i.e.
  74. requiring a byte-swap for little-endian SW w.r.t. the byte
  75. order in an IPv6 packet)
  76. <legal all>
  77. src_ip_95_64
  78. Next 32 bits of source IPv6 address or prefix (requiring
  79. a byte-swap for little-endian SW) <legal all>
  80. src_ip_63_32
  81. Next 32 bits of source IPv6 address or lowest 32 bits of
  82. prefix (requiring a byte-swap for little-endian SW)
  83. <legal all>
  84. src_ip_31_0
  85. Lowest 32 bits of source IPv6 address, or source IPv4
  86. address (requiring a byte-swap for little-endian SW w.r.t.
  87. the byte order in an IPv6 or IPv4 packet)
  88. <legal all>
  89. dest_ip_127_96
  90. Uppermost 32 bits of destination IPv6 address or prefix
  91. as per Common Parser register field IP_DA_SA_PREFIX (with
  92. the first byte in the MSB and the last byte in the LSB, i.e.
  93. requiring a byte-swap for little-endian SW w.r.t. the byte
  94. order as in an IPv6 packet)
  95. <legal all>
  96. dest_ip_95_64
  97. Next 32 bits of destination IPv6 address or prefix
  98. (requiring a byte-swap for little-endian SW)
  99. <legal all>
  100. dest_ip_63_32
  101. Next 32 bits of destination IPv6 address or lowest 32
  102. bits of prefix (requiring a byte-swap for little-endian SW)
  103. <legal all>
  104. dest_ip_31_0
  105. Lowest 32 bits of destination IPv6 address, or
  106. destination IPv4 address (requiring a byte-swap for
  107. little-endian SW w.r.t. the byte order in an IPv6 or IPv4
  108. packet)
  109. <legal all>
  110. src_port
  111. LSB of SPI in case of ESP/AH
  112. else source port in case of TCP/UDP without IPsec,
  113. else zeros in case of ICMP (with the first/third byte in
  114. the MSB and the second/fourth byte in the LSB, i.e.
  115. requiring a byte-swap for little-endian SW w.r.t. the byte
  116. order as in an IPv6 or IPv4 packet) <legal all>
  117. dest_port
  118. MSB of SPI in case of ESP/AH
  119. else destination port in case of TCP/UDP without IPsec,
  120. else zeros in case of ICMP (with the first byte in the
  121. MSB and the second byte in the LSB, i.e. requiring a
  122. byte-swap for little-endian SW w.r.t. the byte order as in
  123. an IPv6 or IPv4 packet)
  124. <legal all>
  125. l4_protocol
  126. IPsec or L4 protocol
  127. <enum 1 ICMPV4>
  128. <enum 6 TCP>
  129. <enum 17 UDP>
  130. <enum 50 ESP>
  131. <enum 51 AH>
  132. <enum 58 ICMPV6>
  133. <legal 1, 6, 17, 50, 51, 58>
  134. valid
  135. Indicates validity of entry
  136. <legal all>
  137. reserved_9
  138. <legal 0>
  139. reo_destination_indication
  140. The ID of the REO exit ring where the MSDU frame shall
  141. push after (MPDU level) reordering has finished.
  142. <enum 0 reo_destination_tcl> Reo will push the frame
  143. into the REO2TCL ring
  144. <enum 1 reo_destination_sw1> Reo will push the frame
  145. into the REO2SW1 ring
  146. <enum 2 reo_destination_sw2> Reo will push the frame
  147. into the REO2SW2 ring
  148. <enum 3 reo_destination_sw3> Reo will push the frame
  149. into the REO2SW3 ring
  150. <enum 4 reo_destination_sw4> Reo will push the frame
  151. into the REO2SW4 ring
  152. <enum 5 reo_destination_release> Reo will push the frame
  153. into the REO_release ring
  154. <enum 6 reo_destination_fw> Reo will push the frame into
  155. the REO2FW ring
  156. <enum 7 reo_destination_sw5> Reo will push the frame
  157. into the REO2SW5 ring (REO remaps this in chips without
  158. REO2SW5 ring, e.g. Pine)
  159. <enum 8 reo_destination_sw6> Reo will push the frame
  160. into the REO2SW6 ring (REO remaps this in chips without
  161. REO2SW6 ring, e.g. Pine)
  162. <enum 9 reo_destination_9> REO remaps this <enum 10
  163. reo_destination_10> REO remaps this
  164. <enum 11 reo_destination_11> REO remaps this
  165. <enum 12 reo_destination_12> REO remaps this <enum 13
  166. reo_destination_13> REO remaps this
  167. <enum 14 reo_destination_14> REO remaps this
  168. <enum 15 reo_destination_15> REO remaps this
  169. <enum 16 reo_destination_16> REO remaps this
  170. <enum 17 reo_destination_17> REO remaps this
  171. <enum 18 reo_destination_18> REO remaps this
  172. <enum 19 reo_destination_19> REO remaps this
  173. <enum 20 reo_destination_20> REO remaps this
  174. <enum 21 reo_destination_21> REO remaps this
  175. <enum 22 reo_destination_22> REO remaps this
  176. <enum 23 reo_destination_23> REO remaps this
  177. <enum 24 reo_destination_24> REO remaps this
  178. <enum 25 reo_destination_25> REO remaps this
  179. <enum 26 reo_destination_26> REO remaps this
  180. <enum 27 reo_destination_27> REO remaps this
  181. <enum 28 reo_destination_28> REO remaps this
  182. <enum 29 reo_destination_29> REO remaps this
  183. <enum 30 reo_destination_30> REO remaps this
  184. <enum 31 reo_destination_31> REO remaps this
  185. <legal all>
  186. msdu_drop
  187. Overriding indication to REO to forward to REO release
  188. ring
  189. <legal all>
  190. reo_destination_handler
  191. Indicates how to decide the REO destination indication
  192. <enum 0 RXFT_USE_FT> Follow this entry
  193. <enum 1 RXFT_USE_ASPT> Use address search+peer table
  194. entry
  195. <enum 2 RXFT_USE_FT2> Follow this entry
  196. <enum 3 RXFT_USE_CCE> Use CCE super-rule
  197. <legal all>
  198. metadata
  199. Value to be passed to SW if this flow search entry
  200. matches
  201. <legal all>
  202. aggregation_count
  203. FISA: Number'of MSDU's aggregated so far
  204. Set to zero in chips not supporting FISA, e.g. Pine
  205. <legal all>
  206. lro_eligible
  207. FISA: To indicate whether the previous MSDU for this
  208. flow is eligible for LRO/FISA
  209. Set to zero in chips not supporting FISA, e.g. Pine
  210. <legal all>
  211. msdu_count
  212. Number of Rx MSDUs matching this flow
  213. <legal all>
  214. msdu_byte_count
  215. Number of bytes in Rx MSDUs matching this flow
  216. <legal all>
  217. timestamp
  218. Time of last reception (as measured at Rx OLE) matching
  219. this flow
  220. <legal all>
  221. cumulative_l4_checksum
  222. FISA: checksum 'or MSDU's that is part of this flow
  223. aggregated so far
  224. Set to zero in chips not supporting FISA, e.g. Pine
  225. <legal all>
  226. cumulative_ip_length
  227. FISA: Total MSDU length that is part of this flow
  228. aggregated so far
  229. Set to zero in chips not supporting FISA, e.g. Pine
  230. <legal all>
  231. tcp_sequence_number
  232. FISA: TCP Sequence number of the last packet in this
  233. flow to detect sequence number jump
  234. Set to zero in chips not supporting FISA, e.g. Pine
  235. <legal all>
  236. */
  237. /* Description RX_FLOW_SEARCH_ENTRY_0_SRC_IP_127_96
  238. Uppermost 32 bits of source IPv6 address or prefix as
  239. per Common Parser register field IP_DA_SA_PREFIX (with the
  240. first byte in the MSB and the last byte in the LSB, i.e.
  241. requiring a byte-swap for little-endian SW w.r.t. the byte
  242. order in an IPv6 packet)
  243. <legal all>
  244. */
  245. #define RX_FLOW_SEARCH_ENTRY_0_SRC_IP_127_96_OFFSET 0x00000000
  246. #define RX_FLOW_SEARCH_ENTRY_0_SRC_IP_127_96_LSB 0
  247. #define RX_FLOW_SEARCH_ENTRY_0_SRC_IP_127_96_MASK 0xffffffff
  248. /* Description RX_FLOW_SEARCH_ENTRY_1_SRC_IP_95_64
  249. Next 32 bits of source IPv6 address or prefix (requiring
  250. a byte-swap for little-endian SW) <legal all>
  251. */
  252. #define RX_FLOW_SEARCH_ENTRY_1_SRC_IP_95_64_OFFSET 0x00000004
  253. #define RX_FLOW_SEARCH_ENTRY_1_SRC_IP_95_64_LSB 0
  254. #define RX_FLOW_SEARCH_ENTRY_1_SRC_IP_95_64_MASK 0xffffffff
  255. /* Description RX_FLOW_SEARCH_ENTRY_2_SRC_IP_63_32
  256. Next 32 bits of source IPv6 address or lowest 32 bits of
  257. prefix (requiring a byte-swap for little-endian SW)
  258. <legal all>
  259. */
  260. #define RX_FLOW_SEARCH_ENTRY_2_SRC_IP_63_32_OFFSET 0x00000008
  261. #define RX_FLOW_SEARCH_ENTRY_2_SRC_IP_63_32_LSB 0
  262. #define RX_FLOW_SEARCH_ENTRY_2_SRC_IP_63_32_MASK 0xffffffff
  263. /* Description RX_FLOW_SEARCH_ENTRY_3_SRC_IP_31_0
  264. Lowest 32 bits of source IPv6 address, or source IPv4
  265. address (requiring a byte-swap for little-endian SW w.r.t.
  266. the byte order in an IPv6 or IPv4 packet)
  267. <legal all>
  268. */
  269. #define RX_FLOW_SEARCH_ENTRY_3_SRC_IP_31_0_OFFSET 0x0000000c
  270. #define RX_FLOW_SEARCH_ENTRY_3_SRC_IP_31_0_LSB 0
  271. #define RX_FLOW_SEARCH_ENTRY_3_SRC_IP_31_0_MASK 0xffffffff
  272. /* Description RX_FLOW_SEARCH_ENTRY_4_DEST_IP_127_96
  273. Uppermost 32 bits of destination IPv6 address or prefix
  274. as per Common Parser register field IP_DA_SA_PREFIX (with
  275. the first byte in the MSB and the last byte in the LSB, i.e.
  276. requiring a byte-swap for little-endian SW w.r.t. the byte
  277. order as in an IPv6 packet)
  278. <legal all>
  279. */
  280. #define RX_FLOW_SEARCH_ENTRY_4_DEST_IP_127_96_OFFSET 0x00000010
  281. #define RX_FLOW_SEARCH_ENTRY_4_DEST_IP_127_96_LSB 0
  282. #define RX_FLOW_SEARCH_ENTRY_4_DEST_IP_127_96_MASK 0xffffffff
  283. /* Description RX_FLOW_SEARCH_ENTRY_5_DEST_IP_95_64
  284. Next 32 bits of destination IPv6 address or prefix
  285. (requiring a byte-swap for little-endian SW)
  286. <legal all>
  287. */
  288. #define RX_FLOW_SEARCH_ENTRY_5_DEST_IP_95_64_OFFSET 0x00000014
  289. #define RX_FLOW_SEARCH_ENTRY_5_DEST_IP_95_64_LSB 0
  290. #define RX_FLOW_SEARCH_ENTRY_5_DEST_IP_95_64_MASK 0xffffffff
  291. /* Description RX_FLOW_SEARCH_ENTRY_6_DEST_IP_63_32
  292. Next 32 bits of destination IPv6 address or lowest 32
  293. bits of prefix (requiring a byte-swap for little-endian SW)
  294. <legal all>
  295. */
  296. #define RX_FLOW_SEARCH_ENTRY_6_DEST_IP_63_32_OFFSET 0x00000018
  297. #define RX_FLOW_SEARCH_ENTRY_6_DEST_IP_63_32_LSB 0
  298. #define RX_FLOW_SEARCH_ENTRY_6_DEST_IP_63_32_MASK 0xffffffff
  299. /* Description RX_FLOW_SEARCH_ENTRY_7_DEST_IP_31_0
  300. Lowest 32 bits of destination IPv6 address, or
  301. destination IPv4 address (requiring a byte-swap for
  302. little-endian SW w.r.t. the byte order in an IPv6 or IPv4
  303. packet)
  304. <legal all>
  305. */
  306. #define RX_FLOW_SEARCH_ENTRY_7_DEST_IP_31_0_OFFSET 0x0000001c
  307. #define RX_FLOW_SEARCH_ENTRY_7_DEST_IP_31_0_LSB 0
  308. #define RX_FLOW_SEARCH_ENTRY_7_DEST_IP_31_0_MASK 0xffffffff
  309. /* Description RX_FLOW_SEARCH_ENTRY_8_SRC_PORT
  310. LSB of SPI in case of ESP/AH
  311. else source port in case of TCP/UDP without IPsec,
  312. else zeros in case of ICMP (with the first/third byte in
  313. the MSB and the second/fourth byte in the LSB, i.e.
  314. requiring a byte-swap for little-endian SW w.r.t. the byte
  315. order as in an IPv6 or IPv4 packet) <legal all>
  316. */
  317. #define RX_FLOW_SEARCH_ENTRY_8_SRC_PORT_OFFSET 0x00000020
  318. #define RX_FLOW_SEARCH_ENTRY_8_SRC_PORT_LSB 0
  319. #define RX_FLOW_SEARCH_ENTRY_8_SRC_PORT_MASK 0x0000ffff
  320. /* Description RX_FLOW_SEARCH_ENTRY_8_DEST_PORT
  321. MSB of SPI in case of ESP/AH
  322. else destination port in case of TCP/UDP without IPsec,
  323. else zeros in case of ICMP (with the first byte in the
  324. MSB and the second byte in the LSB, i.e. requiring a
  325. byte-swap for little-endian SW w.r.t. the byte order as in
  326. an IPv6 or IPv4 packet)
  327. <legal all>
  328. */
  329. #define RX_FLOW_SEARCH_ENTRY_8_DEST_PORT_OFFSET 0x00000020
  330. #define RX_FLOW_SEARCH_ENTRY_8_DEST_PORT_LSB 16
  331. #define RX_FLOW_SEARCH_ENTRY_8_DEST_PORT_MASK 0xffff0000
  332. /* Description RX_FLOW_SEARCH_ENTRY_9_L4_PROTOCOL
  333. IPsec or L4 protocol
  334. <enum 1 ICMPV4>
  335. <enum 6 TCP>
  336. <enum 17 UDP>
  337. <enum 50 ESP>
  338. <enum 51 AH>
  339. <enum 58 ICMPV6>
  340. <legal 1, 6, 17, 50, 51, 58>
  341. */
  342. #define RX_FLOW_SEARCH_ENTRY_9_L4_PROTOCOL_OFFSET 0x00000024
  343. #define RX_FLOW_SEARCH_ENTRY_9_L4_PROTOCOL_LSB 0
  344. #define RX_FLOW_SEARCH_ENTRY_9_L4_PROTOCOL_MASK 0x000000ff
  345. /* Description RX_FLOW_SEARCH_ENTRY_9_VALID
  346. Indicates validity of entry
  347. <legal all>
  348. */
  349. #define RX_FLOW_SEARCH_ENTRY_9_VALID_OFFSET 0x00000024
  350. #define RX_FLOW_SEARCH_ENTRY_9_VALID_LSB 8
  351. #define RX_FLOW_SEARCH_ENTRY_9_VALID_MASK 0x00000100
  352. /* Description RX_FLOW_SEARCH_ENTRY_9_RESERVED_9
  353. <legal 0>
  354. */
  355. #define RX_FLOW_SEARCH_ENTRY_9_RESERVED_9_OFFSET 0x00000024
  356. #define RX_FLOW_SEARCH_ENTRY_9_RESERVED_9_LSB 9
  357. #define RX_FLOW_SEARCH_ENTRY_9_RESERVED_9_MASK 0x00fffe00
  358. /* Description RX_FLOW_SEARCH_ENTRY_9_REO_DESTINATION_INDICATION
  359. The ID of the REO exit ring where the MSDU frame shall
  360. push after (MPDU level) reordering has finished.
  361. <enum 0 reo_destination_tcl> Reo will push the frame
  362. into the REO2TCL ring
  363. <enum 1 reo_destination_sw1> Reo will push the frame
  364. into the REO2SW1 ring
  365. <enum 2 reo_destination_sw2> Reo will push the frame
  366. into the REO2SW2 ring
  367. <enum 3 reo_destination_sw3> Reo will push the frame
  368. into the REO2SW3 ring
  369. <enum 4 reo_destination_sw4> Reo will push the frame
  370. into the REO2SW4 ring
  371. <enum 5 reo_destination_release> Reo will push the frame
  372. into the REO_release ring
  373. <enum 6 reo_destination_fw> Reo will push the frame into
  374. the REO2FW ring
  375. <enum 7 reo_destination_sw5> Reo will push the frame
  376. into the REO2SW5 ring (REO remaps this in chips without
  377. REO2SW5 ring, e.g. Pine)
  378. <enum 8 reo_destination_sw6> Reo will push the frame
  379. into the REO2SW6 ring (REO remaps this in chips without
  380. REO2SW6 ring, e.g. Pine)
  381. <enum 9 reo_destination_9> REO remaps this <enum 10
  382. reo_destination_10> REO remaps this
  383. <enum 11 reo_destination_11> REO remaps this
  384. <enum 12 reo_destination_12> REO remaps this <enum 13
  385. reo_destination_13> REO remaps this
  386. <enum 14 reo_destination_14> REO remaps this
  387. <enum 15 reo_destination_15> REO remaps this
  388. <enum 16 reo_destination_16> REO remaps this
  389. <enum 17 reo_destination_17> REO remaps this
  390. <enum 18 reo_destination_18> REO remaps this
  391. <enum 19 reo_destination_19> REO remaps this
  392. <enum 20 reo_destination_20> REO remaps this
  393. <enum 21 reo_destination_21> REO remaps this
  394. <enum 22 reo_destination_22> REO remaps this
  395. <enum 23 reo_destination_23> REO remaps this
  396. <enum 24 reo_destination_24> REO remaps this
  397. <enum 25 reo_destination_25> REO remaps this
  398. <enum 26 reo_destination_26> REO remaps this
  399. <enum 27 reo_destination_27> REO remaps this
  400. <enum 28 reo_destination_28> REO remaps this
  401. <enum 29 reo_destination_29> REO remaps this
  402. <enum 30 reo_destination_30> REO remaps this
  403. <enum 31 reo_destination_31> REO remaps this
  404. <legal all>
  405. */
  406. #define RX_FLOW_SEARCH_ENTRY_9_REO_DESTINATION_INDICATION_OFFSET 0x00000024
  407. #define RX_FLOW_SEARCH_ENTRY_9_REO_DESTINATION_INDICATION_LSB 24
  408. #define RX_FLOW_SEARCH_ENTRY_9_REO_DESTINATION_INDICATION_MASK 0x1f000000
  409. /* Description RX_FLOW_SEARCH_ENTRY_9_MSDU_DROP
  410. Overriding indication to REO to forward to REO release
  411. ring
  412. <legal all>
  413. */
  414. #define RX_FLOW_SEARCH_ENTRY_9_MSDU_DROP_OFFSET 0x00000024
  415. #define RX_FLOW_SEARCH_ENTRY_9_MSDU_DROP_LSB 29
  416. #define RX_FLOW_SEARCH_ENTRY_9_MSDU_DROP_MASK 0x20000000
  417. /* Description RX_FLOW_SEARCH_ENTRY_9_REO_DESTINATION_HANDLER
  418. Indicates how to decide the REO destination indication
  419. <enum 0 RXFT_USE_FT> Follow this entry
  420. <enum 1 RXFT_USE_ASPT> Use address search+peer table
  421. entry
  422. <enum 2 RXFT_USE_FT2> Follow this entry
  423. <enum 3 RXFT_USE_CCE> Use CCE super-rule
  424. <legal all>
  425. */
  426. #define RX_FLOW_SEARCH_ENTRY_9_REO_DESTINATION_HANDLER_OFFSET 0x00000024
  427. #define RX_FLOW_SEARCH_ENTRY_9_REO_DESTINATION_HANDLER_LSB 30
  428. #define RX_FLOW_SEARCH_ENTRY_9_REO_DESTINATION_HANDLER_MASK 0xc0000000
  429. /* Description RX_FLOW_SEARCH_ENTRY_10_METADATA
  430. Value to be passed to SW if this flow search entry
  431. matches
  432. <legal all>
  433. */
  434. #define RX_FLOW_SEARCH_ENTRY_10_METADATA_OFFSET 0x00000028
  435. #define RX_FLOW_SEARCH_ENTRY_10_METADATA_LSB 0
  436. #define RX_FLOW_SEARCH_ENTRY_10_METADATA_MASK 0xffffffff
  437. /* Description RX_FLOW_SEARCH_ENTRY_11_AGGREGATION_COUNT
  438. FISA: Number'of MSDU's aggregated so far
  439. Set to zero in chips not supporting FISA, e.g. Pine
  440. <legal all>
  441. */
  442. #define RX_FLOW_SEARCH_ENTRY_11_AGGREGATION_COUNT_OFFSET 0x0000002c
  443. #define RX_FLOW_SEARCH_ENTRY_11_AGGREGATION_COUNT_LSB 0
  444. #define RX_FLOW_SEARCH_ENTRY_11_AGGREGATION_COUNT_MASK 0x0000007f
  445. /* Description RX_FLOW_SEARCH_ENTRY_11_LRO_ELIGIBLE
  446. FISA: To indicate whether the previous MSDU for this
  447. flow is eligible for LRO/FISA
  448. Set to zero in chips not supporting FISA, e.g. Pine
  449. <legal all>
  450. */
  451. #define RX_FLOW_SEARCH_ENTRY_11_LRO_ELIGIBLE_OFFSET 0x0000002c
  452. #define RX_FLOW_SEARCH_ENTRY_11_LRO_ELIGIBLE_LSB 7
  453. #define RX_FLOW_SEARCH_ENTRY_11_LRO_ELIGIBLE_MASK 0x00000080
  454. /* Description RX_FLOW_SEARCH_ENTRY_11_MSDU_COUNT
  455. Number of Rx MSDUs matching this flow
  456. <legal all>
  457. */
  458. #define RX_FLOW_SEARCH_ENTRY_11_MSDU_COUNT_OFFSET 0x0000002c
  459. #define RX_FLOW_SEARCH_ENTRY_11_MSDU_COUNT_LSB 8
  460. #define RX_FLOW_SEARCH_ENTRY_11_MSDU_COUNT_MASK 0xffffff00
  461. /* Description RX_FLOW_SEARCH_ENTRY_12_MSDU_BYTE_COUNT
  462. Number of bytes in Rx MSDUs matching this flow
  463. <legal all>
  464. */
  465. #define RX_FLOW_SEARCH_ENTRY_12_MSDU_BYTE_COUNT_OFFSET 0x00000030
  466. #define RX_FLOW_SEARCH_ENTRY_12_MSDU_BYTE_COUNT_LSB 0
  467. #define RX_FLOW_SEARCH_ENTRY_12_MSDU_BYTE_COUNT_MASK 0xffffffff
  468. /* Description RX_FLOW_SEARCH_ENTRY_13_TIMESTAMP
  469. Time of last reception (as measured at Rx OLE) matching
  470. this flow
  471. <legal all>
  472. */
  473. #define RX_FLOW_SEARCH_ENTRY_13_TIMESTAMP_OFFSET 0x00000034
  474. #define RX_FLOW_SEARCH_ENTRY_13_TIMESTAMP_LSB 0
  475. #define RX_FLOW_SEARCH_ENTRY_13_TIMESTAMP_MASK 0xffffffff
  476. /* Description RX_FLOW_SEARCH_ENTRY_14_CUMULATIVE_L4_CHECKSUM
  477. FISA: checksum 'or MSDU's that is part of this flow
  478. aggregated so far
  479. Set to zero in chips not supporting FISA, e.g. Pine
  480. <legal all>
  481. */
  482. #define RX_FLOW_SEARCH_ENTRY_14_CUMULATIVE_L4_CHECKSUM_OFFSET 0x00000038
  483. #define RX_FLOW_SEARCH_ENTRY_14_CUMULATIVE_L4_CHECKSUM_LSB 0
  484. #define RX_FLOW_SEARCH_ENTRY_14_CUMULATIVE_L4_CHECKSUM_MASK 0x0000ffff
  485. /* Description RX_FLOW_SEARCH_ENTRY_14_CUMULATIVE_IP_LENGTH
  486. FISA: Total MSDU length that is part of this flow
  487. aggregated so far
  488. Set to zero in chips not supporting FISA, e.g. Pine
  489. <legal all>
  490. */
  491. #define RX_FLOW_SEARCH_ENTRY_14_CUMULATIVE_IP_LENGTH_OFFSET 0x00000038
  492. #define RX_FLOW_SEARCH_ENTRY_14_CUMULATIVE_IP_LENGTH_LSB 16
  493. #define RX_FLOW_SEARCH_ENTRY_14_CUMULATIVE_IP_LENGTH_MASK 0xffff0000
  494. /* Description RX_FLOW_SEARCH_ENTRY_15_TCP_SEQUENCE_NUMBER
  495. FISA: TCP Sequence number of the last packet in this
  496. flow to detect sequence number jump
  497. Set to zero in chips not supporting FISA, e.g. Pine
  498. <legal all>
  499. */
  500. #define RX_FLOW_SEARCH_ENTRY_15_TCP_SEQUENCE_NUMBER_OFFSET 0x0000003c
  501. #define RX_FLOW_SEARCH_ENTRY_15_TCP_SEQUENCE_NUMBER_LSB 0
  502. #define RX_FLOW_SEARCH_ENTRY_15_TCP_SEQUENCE_NUMBER_MASK 0xffffffff
  503. #endif // _RX_FLOW_SEARCH_ENTRY_H_