123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583 |
- /* Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved.
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- */
-
-
-
-
-
-
-
- #ifndef _RX_FLOW_SEARCH_ENTRY_H_
- #define _RX_FLOW_SEARCH_ENTRY_H_
- #if !defined(__ASSEMBLER__)
- #endif
- #define NUM_OF_DWORDS_RX_FLOW_SEARCH_ENTRY 16
- struct rx_flow_search_entry {
- #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
- uint32_t src_ip_127_96 : 32; // [31:0]
- uint32_t src_ip_95_64 : 32; // [31:0]
- uint32_t src_ip_63_32 : 32; // [31:0]
- uint32_t src_ip_31_0 : 32; // [31:0]
- uint32_t dest_ip_127_96 : 32; // [31:0]
- uint32_t dest_ip_95_64 : 32; // [31:0]
- uint32_t dest_ip_63_32 : 32; // [31:0]
- uint32_t dest_ip_31_0 : 32; // [31:0]
- uint32_t src_port : 16, // [15:0]
- dest_port : 16; // [31:16]
- uint32_t l4_protocol : 8, // [7:0]
- valid : 1, // [8:8]
- reserved_9 : 4, // [12:9]
- service_code : 9, // [21:13]
- priority_valid : 1, // [22:22]
- use_ppe : 1, // [23:23]
- reo_destination_indication : 5, // [28:24]
- msdu_drop : 1, // [29:29]
- reo_destination_handler : 2; // [31:30]
- uint32_t metadata : 32; // [31:0]
- uint32_t aggregation_count : 7, // [6:0]
- lro_eligible : 1, // [7:7]
- msdu_count : 24; // [31:8]
- uint32_t msdu_byte_count : 32; // [31:0]
- uint32_t timestamp : 32; // [31:0]
- uint32_t cumulative_ip_length_pmac1 : 16, // [15:0]
- cumulative_ip_length : 16; // [31:16]
- uint32_t tcp_sequence_number : 32; // [31:0]
- #else
- uint32_t src_ip_127_96 : 32; // [31:0]
- uint32_t src_ip_95_64 : 32; // [31:0]
- uint32_t src_ip_63_32 : 32; // [31:0]
- uint32_t src_ip_31_0 : 32; // [31:0]
- uint32_t dest_ip_127_96 : 32; // [31:0]
- uint32_t dest_ip_95_64 : 32; // [31:0]
- uint32_t dest_ip_63_32 : 32; // [31:0]
- uint32_t dest_ip_31_0 : 32; // [31:0]
- uint32_t dest_port : 16, // [31:16]
- src_port : 16; // [15:0]
- uint32_t reo_destination_handler : 2, // [31:30]
- msdu_drop : 1, // [29:29]
- reo_destination_indication : 5, // [28:24]
- use_ppe : 1, // [23:23]
- priority_valid : 1, // [22:22]
- service_code : 9, // [21:13]
- reserved_9 : 4, // [12:9]
- valid : 1, // [8:8]
- l4_protocol : 8; // [7:0]
- uint32_t metadata : 32; // [31:0]
- uint32_t msdu_count : 24, // [31:8]
- lro_eligible : 1, // [7:7]
- aggregation_count : 7; // [6:0]
- uint32_t msdu_byte_count : 32; // [31:0]
- uint32_t timestamp : 32; // [31:0]
- uint32_t cumulative_ip_length : 16, // [31:16]
- cumulative_ip_length_pmac1 : 16; // [15:0]
- uint32_t tcp_sequence_number : 32; // [31:0]
- #endif
- };
- /* Description SRC_IP_127_96
- Uppermost 32 bits of source IPv6 address or prefix as per
- Common Parser register field IP_DA_SA_PREFIX (with the
- first byte in the MSB and the last byte in the LSB, i.e.
- requiring a byte-swap for little-endian SW w.r.t. the byte
- order in an IPv6 packet)
- <legal all>
- */
- #define RX_FLOW_SEARCH_ENTRY_SRC_IP_127_96_OFFSET 0x00000000
- #define RX_FLOW_SEARCH_ENTRY_SRC_IP_127_96_LSB 0
- #define RX_FLOW_SEARCH_ENTRY_SRC_IP_127_96_MSB 31
- #define RX_FLOW_SEARCH_ENTRY_SRC_IP_127_96_MASK 0xffffffff
- /* Description SRC_IP_95_64
- Next 32 bits of source IPv6 address or prefix (requiring
- a byte-swap for little-endian SW) <legal all>
- */
- #define RX_FLOW_SEARCH_ENTRY_SRC_IP_95_64_OFFSET 0x00000004
- #define RX_FLOW_SEARCH_ENTRY_SRC_IP_95_64_LSB 0
- #define RX_FLOW_SEARCH_ENTRY_SRC_IP_95_64_MSB 31
- #define RX_FLOW_SEARCH_ENTRY_SRC_IP_95_64_MASK 0xffffffff
- /* Description SRC_IP_63_32
- Next 32 bits of source IPv6 address or lowest 32 bits of
- prefix (requiring a byte-swap for little-endian SW)
- <legal all>
- */
- #define RX_FLOW_SEARCH_ENTRY_SRC_IP_63_32_OFFSET 0x00000008
- #define RX_FLOW_SEARCH_ENTRY_SRC_IP_63_32_LSB 0
- #define RX_FLOW_SEARCH_ENTRY_SRC_IP_63_32_MSB 31
- #define RX_FLOW_SEARCH_ENTRY_SRC_IP_63_32_MASK 0xffffffff
- /* Description SRC_IP_31_0
- Lowest 32 bits of source IPv6 address, or source IPv4 address
- (requiring a byte-swap for little-endian SW w.r.t. the
- byte order in an IPv6 or IPv4 packet)
- <legal all>
- */
- #define RX_FLOW_SEARCH_ENTRY_SRC_IP_31_0_OFFSET 0x0000000c
- #define RX_FLOW_SEARCH_ENTRY_SRC_IP_31_0_LSB 0
- #define RX_FLOW_SEARCH_ENTRY_SRC_IP_31_0_MSB 31
- #define RX_FLOW_SEARCH_ENTRY_SRC_IP_31_0_MASK 0xffffffff
- /* Description DEST_IP_127_96
- Uppermost 32 bits of destination IPv6 address or prefix
- as per Common Parser register field IP_DA_SA_PREFIX (with
- the first byte in the MSB and the last byte in the LSB,
- i.e. requiring a byte-swap for little-endian SW w.r.t. the
- byte order as in an IPv6 packet)
- <legal all>
- */
- #define RX_FLOW_SEARCH_ENTRY_DEST_IP_127_96_OFFSET 0x00000010
- #define RX_FLOW_SEARCH_ENTRY_DEST_IP_127_96_LSB 0
- #define RX_FLOW_SEARCH_ENTRY_DEST_IP_127_96_MSB 31
- #define RX_FLOW_SEARCH_ENTRY_DEST_IP_127_96_MASK 0xffffffff
- /* Description DEST_IP_95_64
- Next 32 bits of destination IPv6 address or prefix (requiring
- a byte-swap for little-endian SW)
- <legal all>
- */
- #define RX_FLOW_SEARCH_ENTRY_DEST_IP_95_64_OFFSET 0x00000014
- #define RX_FLOW_SEARCH_ENTRY_DEST_IP_95_64_LSB 0
- #define RX_FLOW_SEARCH_ENTRY_DEST_IP_95_64_MSB 31
- #define RX_FLOW_SEARCH_ENTRY_DEST_IP_95_64_MASK 0xffffffff
- /* Description DEST_IP_63_32
- Next 32 bits of destination IPv6 address or lowest 32 bits
- of prefix (requiring a byte-swap for little-endian SW)
- <legal all>
- */
- #define RX_FLOW_SEARCH_ENTRY_DEST_IP_63_32_OFFSET 0x00000018
- #define RX_FLOW_SEARCH_ENTRY_DEST_IP_63_32_LSB 0
- #define RX_FLOW_SEARCH_ENTRY_DEST_IP_63_32_MSB 31
- #define RX_FLOW_SEARCH_ENTRY_DEST_IP_63_32_MASK 0xffffffff
- /* Description DEST_IP_31_0
- Lowest 32 bits of destination IPv6 address, or destination
- IPv4 address (requiring a byte-swap for little-endian SW
- w.r.t. the byte order in an IPv6 or IPv4 packet)
- <legal all>
- */
- #define RX_FLOW_SEARCH_ENTRY_DEST_IP_31_0_OFFSET 0x0000001c
- #define RX_FLOW_SEARCH_ENTRY_DEST_IP_31_0_LSB 0
- #define RX_FLOW_SEARCH_ENTRY_DEST_IP_31_0_MSB 31
- #define RX_FLOW_SEARCH_ENTRY_DEST_IP_31_0_MASK 0xffffffff
- /* Description SRC_PORT
- LSB of SPI in case of ESP/AH
- else source port in case of TCP/UDP without IPsec,
- else zeros in case of ICMP (with the first/third byte in
- the MSB and the second/fourth byte in the LSB, i.e. requiring
- a byte-swap for little-endian SW w.r.t. the byte order
- as in an IPv6 or IPv4 packet) <legal all>
- */
- #define RX_FLOW_SEARCH_ENTRY_SRC_PORT_OFFSET 0x00000020
- #define RX_FLOW_SEARCH_ENTRY_SRC_PORT_LSB 0
- #define RX_FLOW_SEARCH_ENTRY_SRC_PORT_MSB 15
- #define RX_FLOW_SEARCH_ENTRY_SRC_PORT_MASK 0x0000ffff
- /* Description DEST_PORT
- MSB of SPI in case of ESP/AH
- else destination port in case of TCP/UDP without IPsec,
- else zeros in case of ICMP (with the first byte in the MSB
- and the second byte in the LSB, i.e. requiring a byte-swap
- for little-endian SW w.r.t. the byte order as in an IPv6
- or IPv4 packet)
- <legal all>
- */
- #define RX_FLOW_SEARCH_ENTRY_DEST_PORT_OFFSET 0x00000020
- #define RX_FLOW_SEARCH_ENTRY_DEST_PORT_LSB 16
- #define RX_FLOW_SEARCH_ENTRY_DEST_PORT_MSB 31
- #define RX_FLOW_SEARCH_ENTRY_DEST_PORT_MASK 0xffff0000
- /* Description L4_PROTOCOL
- IPsec or L4 protocol
-
- <enum 1 ICMPV4>
- <enum 6 TCP>
- <enum 17 UDP>
- <enum 50 ESP>
- <enum 51 AH>
- <enum 58 ICMPV6>
- <legal 1, 6, 17, 50, 51, 58>
- */
- #define RX_FLOW_SEARCH_ENTRY_L4_PROTOCOL_OFFSET 0x00000024
- #define RX_FLOW_SEARCH_ENTRY_L4_PROTOCOL_LSB 0
- #define RX_FLOW_SEARCH_ENTRY_L4_PROTOCOL_MSB 7
- #define RX_FLOW_SEARCH_ENTRY_L4_PROTOCOL_MASK 0x000000ff
- /* Description VALID
- Indicates validity of entry
- <legal all>
- */
- #define RX_FLOW_SEARCH_ENTRY_VALID_OFFSET 0x00000024
- #define RX_FLOW_SEARCH_ENTRY_VALID_LSB 8
- #define RX_FLOW_SEARCH_ENTRY_VALID_MSB 8
- #define RX_FLOW_SEARCH_ENTRY_VALID_MASK 0x00000100
- /* Description RESERVED_9
- <legal 0>
- */
- #define RX_FLOW_SEARCH_ENTRY_RESERVED_9_OFFSET 0x00000024
- #define RX_FLOW_SEARCH_ENTRY_RESERVED_9_LSB 9
- #define RX_FLOW_SEARCH_ENTRY_RESERVED_9_MSB 12
- #define RX_FLOW_SEARCH_ENTRY_RESERVED_9_MASK 0x00001e00
- /* Description SERVICE_CODE
- Opaque service code between PPE and Wi-Fi
-
- This field gets passed on by REO to PPE in the EDMA descriptor
- ('REO_TO_PPE_RING').
-
- <legal all>
- */
- #define RX_FLOW_SEARCH_ENTRY_SERVICE_CODE_OFFSET 0x00000024
- #define RX_FLOW_SEARCH_ENTRY_SERVICE_CODE_LSB 13
- #define RX_FLOW_SEARCH_ENTRY_SERVICE_CODE_MSB 21
- #define RX_FLOW_SEARCH_ENTRY_SERVICE_CODE_MASK 0x003fe000
- /* Description PRIORITY_VALID
- This field gets passed on by REO to PPE in the EDMA descriptor
- ('REO_TO_PPE_RING').
-
- <legal all>
- */
- #define RX_FLOW_SEARCH_ENTRY_PRIORITY_VALID_OFFSET 0x00000024
- #define RX_FLOW_SEARCH_ENTRY_PRIORITY_VALID_LSB 22
- #define RX_FLOW_SEARCH_ENTRY_PRIORITY_VALID_MSB 22
- #define RX_FLOW_SEARCH_ENTRY_PRIORITY_VALID_MASK 0x00400000
- /* Description USE_PPE
- Indicates to RXDMA to ignore the REO_destination_indication
- and use a programmed value corresponding to the REO2PPE
- ring
-
- This override to REO2PPE for packets requiring multiple
- buffers shall be disabled based on an RXDMA configuration,
- as PPE may not support such packets.
-
- Supported only in full AP chips like Waikiki, not in client/soft
- AP chips like Hamilton
- <legal all>
- */
- #define RX_FLOW_SEARCH_ENTRY_USE_PPE_OFFSET 0x00000024
- #define RX_FLOW_SEARCH_ENTRY_USE_PPE_LSB 23
- #define RX_FLOW_SEARCH_ENTRY_USE_PPE_MSB 23
- #define RX_FLOW_SEARCH_ENTRY_USE_PPE_MASK 0x00800000
- /* Description REO_DESTINATION_INDICATION
- The ID of the REO exit ring where the MSDU frame shall push
- after (MPDU level) reordering has finished.
-
- <enum 0 reo_destination_sw0> Reo will push the frame into
- the REO2SW0 ring
- <enum 1 reo_destination_sw1> Reo will push the frame into
- the REO2SW1 ring
- <enum 2 reo_destination_sw2> Reo will push the frame into
- the REO2SW2 ring
- <enum 3 reo_destination_sw3> Reo will push the frame into
- the REO2SW3 ring
- <enum 4 reo_destination_sw4> Reo will push the frame into
- the REO2SW4 ring
- <enum 5 reo_destination_release> Reo will push the frame
- into the REO_release ring
- <enum 6 reo_destination_fw> Reo will push the frame into
- the REO2FW ring
- <enum 7 reo_destination_sw5> Reo will push the frame into
- the REO2SW5 ring (REO remaps this in chips without REO2SW5
- ring, e.g. Pine)
- <enum 8 reo_destination_sw6> Reo will push the frame into
- the REO2SW6 ring (REO remaps this in chips without REO2SW6
- ring, e.g. Pine)
- <enum 9 reo_destination_sw7> Reo will push the frame into
- the REO2SW7 ring (REO remaps this in chips without REO2SW7
- ring)
- <enum 10 reo_destination_sw8> Reo will push the frame into
- the REO2SW8 ring (REO remaps this in chips without REO2SW8
- ring)
- <enum 11 reo_destination_11> REO remaps this
- <enum 12 reo_destination_12> REO remaps this <enum 13 reo_destination_13>
- REO remaps this
- <enum 14 reo_destination_14> REO remaps this
- <enum 15 reo_destination_15> REO remaps this
- <enum 16 reo_destination_16> REO remaps this
- <enum 17 reo_destination_17> REO remaps this
- <enum 18 reo_destination_18> REO remaps this
- <enum 19 reo_destination_19> REO remaps this
- <enum 20 reo_destination_20> REO remaps this
- <enum 21 reo_destination_21> REO remaps this
- <enum 22 reo_destination_22> REO remaps this
- <enum 23 reo_destination_23> REO remaps this
- <enum 24 reo_destination_24> REO remaps this
- <enum 25 reo_destination_25> REO remaps this
- <enum 26 reo_destination_26> REO remaps this
- <enum 27 reo_destination_27> REO remaps this
- <enum 28 reo_destination_28> REO remaps this
- <enum 29 reo_destination_29> REO remaps this
- <enum 30 reo_destination_30> REO remaps this
- <enum 31 reo_destination_31> REO remaps this
-
- <legal all>
- */
- #define RX_FLOW_SEARCH_ENTRY_REO_DESTINATION_INDICATION_OFFSET 0x00000024
- #define RX_FLOW_SEARCH_ENTRY_REO_DESTINATION_INDICATION_LSB 24
- #define RX_FLOW_SEARCH_ENTRY_REO_DESTINATION_INDICATION_MSB 28
- #define RX_FLOW_SEARCH_ENTRY_REO_DESTINATION_INDICATION_MASK 0x1f000000
- /* Description MSDU_DROP
- Overriding indication to REO to forward to REO release ring
-
- <legal all>
- */
- #define RX_FLOW_SEARCH_ENTRY_MSDU_DROP_OFFSET 0x00000024
- #define RX_FLOW_SEARCH_ENTRY_MSDU_DROP_LSB 29
- #define RX_FLOW_SEARCH_ENTRY_MSDU_DROP_MSB 29
- #define RX_FLOW_SEARCH_ENTRY_MSDU_DROP_MASK 0x20000000
- /* Description REO_DESTINATION_HANDLER
- Indicates how to decide the REO destination indication
- <enum 0 RXFT_USE_FT> Follow this entry
- <enum 1 RXFT_USE_ASPT> Use address search+peer table entry
-
- <enum 2 RXFT_USE_FT2> Follow this entry
- <enum 3 RXFT_USE_CCE> Use CCE super-rule
- <legal all>
- */
- #define RX_FLOW_SEARCH_ENTRY_REO_DESTINATION_HANDLER_OFFSET 0x00000024
- #define RX_FLOW_SEARCH_ENTRY_REO_DESTINATION_HANDLER_LSB 30
- #define RX_FLOW_SEARCH_ENTRY_REO_DESTINATION_HANDLER_MSB 31
- #define RX_FLOW_SEARCH_ENTRY_REO_DESTINATION_HANDLER_MASK 0xc0000000
- /* Description METADATA
- Value to be passed to SW if this flow search entry matches
-
- <legal all>
- */
- #define RX_FLOW_SEARCH_ENTRY_METADATA_OFFSET 0x00000028
- #define RX_FLOW_SEARCH_ENTRY_METADATA_LSB 0
- #define RX_FLOW_SEARCH_ENTRY_METADATA_MSB 31
- #define RX_FLOW_SEARCH_ENTRY_METADATA_MASK 0xffffffff
- /* Description AGGREGATION_COUNT
- FISA: Number'of MSDU's aggregated so far
-
- Based on an RXOLE register, this can be changed to reflect
- aggregation of MSDUs from PMAC0 only.
-
- Set to zero in chips not supporting FISA, e.g. Pine
- <legal all>
- */
- #define RX_FLOW_SEARCH_ENTRY_AGGREGATION_COUNT_OFFSET 0x0000002c
- #define RX_FLOW_SEARCH_ENTRY_AGGREGATION_COUNT_LSB 0
- #define RX_FLOW_SEARCH_ENTRY_AGGREGATION_COUNT_MSB 6
- #define RX_FLOW_SEARCH_ENTRY_AGGREGATION_COUNT_MASK 0x0000007f
- /* Description LRO_ELIGIBLE
- FISA:
- To indicate whether the previous MSDU for this flow is eligible
- for LRO/FISA
-
- Based on an RXOLE register, this can be changed to reflect
- the LRO/FISA eligibility for MSDUs from PMAC0 only.
-
- Chips not supporting FISA, e.g. Waikiki:
- This bit is also known as RDI_invalid.
- When RXOLE is configured to enable flow search (but ignore
- the REO_destination_indication) for the first fragment,
- it will set this bit if a flow entry matches.
- Subsequently when RXOLE matches this flow entry for any
- other packet, the REO_destination_indication in this entry
- is considered invalid and w.r.t. REO routing the flow search
- is considered to have failed.
- <legal all>
- */
- #define RX_FLOW_SEARCH_ENTRY_LRO_ELIGIBLE_OFFSET 0x0000002c
- #define RX_FLOW_SEARCH_ENTRY_LRO_ELIGIBLE_LSB 7
- #define RX_FLOW_SEARCH_ENTRY_LRO_ELIGIBLE_MSB 7
- #define RX_FLOW_SEARCH_ENTRY_LRO_ELIGIBLE_MASK 0x00000080
- /* Description MSDU_COUNT
- Number of Rx MSDUs matching this flow
-
- Based on an RXOLE register, this can be changed to reflect
- the number of Rx MSDUs from PMAC0 matching the flow.
- <legal all>
- */
- #define RX_FLOW_SEARCH_ENTRY_MSDU_COUNT_OFFSET 0x0000002c
- #define RX_FLOW_SEARCH_ENTRY_MSDU_COUNT_LSB 8
- #define RX_FLOW_SEARCH_ENTRY_MSDU_COUNT_MSB 31
- #define RX_FLOW_SEARCH_ENTRY_MSDU_COUNT_MASK 0xffffff00
- /* Description MSDU_BYTE_COUNT
- Number of bytes in Rx MSDUs matching this flow
-
- Based on an RXOLE register, this can be changed to reflect
- the number of Rx MSDUs from PMAC1 matching the flow.
-
- Based on an RXOLE register, the MSB 8 bits can be changed
- to reflect the 'aggregation_count' and 'LRO_eligible' of
- MSDUs from PMAC1.
- <legal all>
- */
- #define RX_FLOW_SEARCH_ENTRY_MSDU_BYTE_COUNT_OFFSET 0x00000030
- #define RX_FLOW_SEARCH_ENTRY_MSDU_BYTE_COUNT_LSB 0
- #define RX_FLOW_SEARCH_ENTRY_MSDU_BYTE_COUNT_MSB 31
- #define RX_FLOW_SEARCH_ENTRY_MSDU_BYTE_COUNT_MASK 0xffffffff
- /* Description TIMESTAMP
- Time of last reception (as measured at Rx OLE) matching
- this flow
- <legal all>
- */
- #define RX_FLOW_SEARCH_ENTRY_TIMESTAMP_OFFSET 0x00000034
- #define RX_FLOW_SEARCH_ENTRY_TIMESTAMP_LSB 0
- #define RX_FLOW_SEARCH_ENTRY_TIMESTAMP_MSB 31
- #define RX_FLOW_SEARCH_ENTRY_TIMESTAMP_MASK 0xffffffff
- /* Description CUMULATIVE_IP_LENGTH_PMAC1
- Based on an RXOLE register, this can be changed to reflect
- the 'cumulative_IP_length' for MSDUs from PMAC1.
- <legal all>
- */
- #define RX_FLOW_SEARCH_ENTRY_CUMULATIVE_IP_LENGTH_PMAC1_OFFSET 0x00000038
- #define RX_FLOW_SEARCH_ENTRY_CUMULATIVE_IP_LENGTH_PMAC1_LSB 0
- #define RX_FLOW_SEARCH_ENTRY_CUMULATIVE_IP_LENGTH_PMAC1_MSB 15
- #define RX_FLOW_SEARCH_ENTRY_CUMULATIVE_IP_LENGTH_PMAC1_MASK 0x0000ffff
- /* Description CUMULATIVE_IP_LENGTH
- FISA: Total MSDU length that is part of this flow aggregated
- so far
-
- Based on an RXOLE register, this can be changed to reflect
- aggregation of MSDUs from PMAC0 only.
-
- Set to zero in chips not supporting FISA, e.g. Pine
- <legal all>
- */
- #define RX_FLOW_SEARCH_ENTRY_CUMULATIVE_IP_LENGTH_OFFSET 0x00000038
- #define RX_FLOW_SEARCH_ENTRY_CUMULATIVE_IP_LENGTH_LSB 16
- #define RX_FLOW_SEARCH_ENTRY_CUMULATIVE_IP_LENGTH_MSB 31
- #define RX_FLOW_SEARCH_ENTRY_CUMULATIVE_IP_LENGTH_MASK 0xffff0000
- /* Description TCP_SEQUENCE_NUMBER
- FISA: TCP Sequence number of the last packet in this flow
- to detect sequence number jump
-
- Based on an RXOLE register, this can be changed so that
- the bottom half of this field reflects the LSBs of the TCP
- sequence number of the last packet from PMAC0 and the top
- half reflects the LSBs of the TCP sequence number of the
- last packet from PMAC1.
-
- Set to zero in chips not supporting FISA, e.g. Pine
- <legal all>
- */
- #define RX_FLOW_SEARCH_ENTRY_TCP_SEQUENCE_NUMBER_OFFSET 0x0000003c
- #define RX_FLOW_SEARCH_ENTRY_TCP_SEQUENCE_NUMBER_LSB 0
- #define RX_FLOW_SEARCH_ENTRY_TCP_SEQUENCE_NUMBER_MSB 31
- #define RX_FLOW_SEARCH_ENTRY_TCP_SEQUENCE_NUMBER_MASK 0xffffffff
- #endif // RX_FLOW_SEARCH_ENTRY
|