1*5113495bSYour Name /* 2*5113495bSYour Name * Copyright (c) 2020 The Linux Foundation. All rights reserved. 3*5113495bSYour Name * 4*5113495bSYour Name * Permission to use, copy, modify, and/or distribute this software for 5*5113495bSYour Name * any purpose with or without fee is hereby granted, provided that the 6*5113495bSYour Name * above copyright notice and this permission notice appear in all 7*5113495bSYour Name * copies. 8*5113495bSYour Name * 9*5113495bSYour Name * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 10*5113495bSYour Name * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 11*5113495bSYour Name * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE 12*5113495bSYour Name * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 13*5113495bSYour Name * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 14*5113495bSYour Name * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 15*5113495bSYour Name * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 16*5113495bSYour Name * PERFORMANCE OF THIS SOFTWARE. 17*5113495bSYour Name */ 18*5113495bSYour Name 19*5113495bSYour Name // 20*5113495bSYour Name // DO NOT EDIT! This file is automatically generated 21*5113495bSYour Name // These definitions are tied to a particular hardware layout 22*5113495bSYour Name 23*5113495bSYour Name 24*5113495bSYour Name #ifndef _RX_FLOW_SEARCH_ENTRY_H_ 25*5113495bSYour Name #define _RX_FLOW_SEARCH_ENTRY_H_ 26*5113495bSYour Name #if !defined(__ASSEMBLER__) 27*5113495bSYour Name #endif 28*5113495bSYour Name 29*5113495bSYour Name 30*5113495bSYour Name // ################ START SUMMARY ################# 31*5113495bSYour Name // 32*5113495bSYour Name // Dword Fields 33*5113495bSYour Name // 0 src_ip_127_96[31:0] 34*5113495bSYour Name // 1 src_ip_95_64[31:0] 35*5113495bSYour Name // 2 src_ip_63_32[31:0] 36*5113495bSYour Name // 3 src_ip_31_0[31:0] 37*5113495bSYour Name // 4 dest_ip_127_96[31:0] 38*5113495bSYour Name // 5 dest_ip_95_64[31:0] 39*5113495bSYour Name // 6 dest_ip_63_32[31:0] 40*5113495bSYour Name // 7 dest_ip_31_0[31:0] 41*5113495bSYour Name // 8 src_port[15:0], dest_port[31:16] 42*5113495bSYour Name // 9 l4_protocol[7:0], valid[8], reserved_9[23:9], reo_destination_indication[28:24], msdu_drop[29], reo_destination_handler[31:30] 43*5113495bSYour Name // 10 metadata[31:0] 44*5113495bSYour Name // 11 aggregation_count[6:0], lro_eligible[7], msdu_count[31:8] 45*5113495bSYour Name // 12 msdu_byte_count[31:0] 46*5113495bSYour Name // 13 timestamp[31:0] 47*5113495bSYour Name // 14 cumulative_l4_checksum[15:0], cumulative_ip_length[31:16] 48*5113495bSYour Name // 15 tcp_sequence_number[31:0] 49*5113495bSYour Name // 50*5113495bSYour Name // ################ END SUMMARY ################# 51*5113495bSYour Name 52*5113495bSYour Name #define NUM_OF_DWORDS_RX_FLOW_SEARCH_ENTRY 16 53*5113495bSYour Name 54*5113495bSYour Name struct rx_flow_search_entry { 55*5113495bSYour Name uint32_t src_ip_127_96 : 32; //[31:0] 56*5113495bSYour Name uint32_t src_ip_95_64 : 32; //[31:0] 57*5113495bSYour Name uint32_t src_ip_63_32 : 32; //[31:0] 58*5113495bSYour Name uint32_t src_ip_31_0 : 32; //[31:0] 59*5113495bSYour Name uint32_t dest_ip_127_96 : 32; //[31:0] 60*5113495bSYour Name uint32_t dest_ip_95_64 : 32; //[31:0] 61*5113495bSYour Name uint32_t dest_ip_63_32 : 32; //[31:0] 62*5113495bSYour Name uint32_t dest_ip_31_0 : 32; //[31:0] 63*5113495bSYour Name uint32_t src_port : 16, //[15:0] 64*5113495bSYour Name dest_port : 16; //[31:16] 65*5113495bSYour Name uint32_t l4_protocol : 8, //[7:0] 66*5113495bSYour Name valid : 1, //[8] 67*5113495bSYour Name reserved_9 : 15, //[23:9] 68*5113495bSYour Name reo_destination_indication : 5, //[28:24] 69*5113495bSYour Name msdu_drop : 1, //[29] 70*5113495bSYour Name reo_destination_handler : 2; //[31:30] 71*5113495bSYour Name uint32_t metadata : 32; //[31:0] 72*5113495bSYour Name uint32_t aggregation_count : 7, //[6:0] 73*5113495bSYour Name lro_eligible : 1, //[7] 74*5113495bSYour Name msdu_count : 24; //[31:8] 75*5113495bSYour Name uint32_t msdu_byte_count : 32; //[31:0] 76*5113495bSYour Name uint32_t timestamp : 32; //[31:0] 77*5113495bSYour Name uint32_t cumulative_l4_checksum : 16, //[15:0] 78*5113495bSYour Name cumulative_ip_length : 16; //[31:16] 79*5113495bSYour Name uint32_t tcp_sequence_number : 32; //[31:0] 80*5113495bSYour Name }; 81*5113495bSYour Name 82*5113495bSYour Name /* 83*5113495bSYour Name 84*5113495bSYour Name src_ip_127_96 85*5113495bSYour Name 86*5113495bSYour Name Uppermost 32 bits of source IPv6 address or prefix as 87*5113495bSYour Name per Common Parser register field IP_DA_SA_PREFIX (with the 88*5113495bSYour Name first byte in the MSB and the last byte in the LSB, i.e. 89*5113495bSYour Name requiring a byte-swap for little-endian SW w.r.t. the byte 90*5113495bSYour Name order in an IPv6 packet) 91*5113495bSYour Name 92*5113495bSYour Name <legal all> 93*5113495bSYour Name 94*5113495bSYour Name src_ip_95_64 95*5113495bSYour Name 96*5113495bSYour Name Next 32 bits of source IPv6 address or prefix (requiring 97*5113495bSYour Name a byte-swap for little-endian SW) <legal all> 98*5113495bSYour Name 99*5113495bSYour Name src_ip_63_32 100*5113495bSYour Name 101*5113495bSYour Name Next 32 bits of source IPv6 address or lowest 32 bits of 102*5113495bSYour Name prefix (requiring a byte-swap for little-endian SW) 103*5113495bSYour Name 104*5113495bSYour Name <legal all> 105*5113495bSYour Name 106*5113495bSYour Name src_ip_31_0 107*5113495bSYour Name 108*5113495bSYour Name Lowest 32 bits of source IPv6 address, or source IPv4 109*5113495bSYour Name address (requiring a byte-swap for little-endian SW w.r.t. 110*5113495bSYour Name the byte order in an Ipv6 or IPv4 packet) 111*5113495bSYour Name 112*5113495bSYour Name <legal all> 113*5113495bSYour Name 114*5113495bSYour Name dest_ip_127_96 115*5113495bSYour Name 116*5113495bSYour Name Uppermost 32 bits of destination IPv6 address or prefix 117*5113495bSYour Name as per Common Parser register field IP_DA_SA_PREFIX (with 118*5113495bSYour Name the first byte in the MSB and the last byte in the LSB, i.e. 119*5113495bSYour Name requiring a byte-swap for little-endian SW w.r.t. the byte 120*5113495bSYour Name order as in an IPv6 packet) 121*5113495bSYour Name 122*5113495bSYour Name <legal all> 123*5113495bSYour Name 124*5113495bSYour Name dest_ip_95_64 125*5113495bSYour Name 126*5113495bSYour Name Next 32 bits of destination IPv6 address or prefix 127*5113495bSYour Name (requiring a byte-swap for little-endian SW) 128*5113495bSYour Name 129*5113495bSYour Name <legal all> 130*5113495bSYour Name 131*5113495bSYour Name dest_ip_63_32 132*5113495bSYour Name 133*5113495bSYour Name Next 32 bits of destination IPv6 address or lowest 32 134*5113495bSYour Name bits of prefix (requiring a byte-swap for little-endian SW) 135*5113495bSYour Name 136*5113495bSYour Name <legal all> 137*5113495bSYour Name 138*5113495bSYour Name dest_ip_31_0 139*5113495bSYour Name 140*5113495bSYour Name Lowest 32 bits of destination IPv6 address, or 141*5113495bSYour Name destination IPv4 address (requiring a byte-swap for 142*5113495bSYour Name little-endian SW w.r.t. the byte order in an Ipv6 or IPv4 143*5113495bSYour Name packet) 144*5113495bSYour Name 145*5113495bSYour Name <legal all> 146*5113495bSYour Name 147*5113495bSYour Name src_port 148*5113495bSYour Name 149*5113495bSYour Name LSB of SPI in case of ESP/AH 150*5113495bSYour Name 151*5113495bSYour Name else source port in case of TCP/UDP without IPsec, 152*5113495bSYour Name 153*5113495bSYour Name else zeros in case of ICMP (with the first/third byte in 154*5113495bSYour Name the MSB and the second/fourth byte in the LSB, i.e. 155*5113495bSYour Name requiring a byte-swap for little-endian SW w.r.t. the byte 156*5113495bSYour Name order as in an Ipv6 or IPv4 packet) <legal all> 157*5113495bSYour Name 158*5113495bSYour Name dest_port 159*5113495bSYour Name 160*5113495bSYour Name MSB of SPI in case of ESP/AH 161*5113495bSYour Name 162*5113495bSYour Name else destination port in case of TCP/UDP without IPsec, 163*5113495bSYour Name 164*5113495bSYour Name else zeros in case of ICMP (with the first byte in the 165*5113495bSYour Name MSB and the second byte in the LSB, i.e. requiring a 166*5113495bSYour Name byte-swap for little-endian SW w.r.t. the byte order as in 167*5113495bSYour Name an Ipv6 or IPv4 packet) 168*5113495bSYour Name 169*5113495bSYour Name <legal all> 170*5113495bSYour Name 171*5113495bSYour Name l4_protocol 172*5113495bSYour Name 173*5113495bSYour Name IPsec or L4 protocol 174*5113495bSYour Name 175*5113495bSYour Name 176*5113495bSYour Name 177*5113495bSYour Name <enum 1 ICMPV4> 178*5113495bSYour Name 179*5113495bSYour Name <enum 6 TCP> 180*5113495bSYour Name 181*5113495bSYour Name <enum 17 UDP> 182*5113495bSYour Name 183*5113495bSYour Name <enum 50 ESP> 184*5113495bSYour Name 185*5113495bSYour Name <enum 51 AH> 186*5113495bSYour Name 187*5113495bSYour Name <enum 58 ICMPV6> 188*5113495bSYour Name 189*5113495bSYour Name <legal 1, 6, 17, 50, 51, 58> 190*5113495bSYour Name 191*5113495bSYour Name valid 192*5113495bSYour Name 193*5113495bSYour Name Indicates validity of entry 194*5113495bSYour Name 195*5113495bSYour Name <legal all> 196*5113495bSYour Name 197*5113495bSYour Name reserved_9 198*5113495bSYour Name 199*5113495bSYour Name <legal 0> 200*5113495bSYour Name 201*5113495bSYour Name reo_destination_indication 202*5113495bSYour Name 203*5113495bSYour Name The ID of the REO exit ring where the MSDU frame shall 204*5113495bSYour Name push after (MPDU level) reordering has finished. 205*5113495bSYour Name 206*5113495bSYour Name 207*5113495bSYour Name 208*5113495bSYour Name <enum 0 reo_destination_tcl> Reo will push the frame 209*5113495bSYour Name into the REO2TCL ring 210*5113495bSYour Name 211*5113495bSYour Name <enum 1 reo_destination_sw1> Reo will push the frame 212*5113495bSYour Name into the REO2SW1 ring 213*5113495bSYour Name 214*5113495bSYour Name <enum 2 reo_destination_sw2> Reo will push the frame 215*5113495bSYour Name into the REO2SW2 ring 216*5113495bSYour Name 217*5113495bSYour Name <enum 3 reo_destination_sw3> Reo will push the frame 218*5113495bSYour Name into the REO2SW3 ring 219*5113495bSYour Name 220*5113495bSYour Name <enum 4 reo_destination_sw4> Reo will push the frame 221*5113495bSYour Name into the REO2SW4 ring 222*5113495bSYour Name 223*5113495bSYour Name <enum 5 reo_destination_release> Reo will push the frame 224*5113495bSYour Name into the REO_release ring 225*5113495bSYour Name 226*5113495bSYour Name <enum 6 reo_destination_fw> Reo will push the frame into 227*5113495bSYour Name the REO2FW ring 228*5113495bSYour Name 229*5113495bSYour Name <enum 7 reo_destination_sw5> Reo will push the frame 230*5113495bSYour Name into the REO2SW5 ring 231*5113495bSYour Name 232*5113495bSYour Name <enum 8 reo_destination_sw6> Reo will push the frame 233*5113495bSYour Name into the REO2SW6 ring 234*5113495bSYour Name 235*5113495bSYour Name <enum 9 reo_destination_9> REO remaps this <enum 10 236*5113495bSYour Name reo_destination_10> REO remaps this 237*5113495bSYour Name 238*5113495bSYour Name <enum 11 reo_destination_11> REO remaps this 239*5113495bSYour Name 240*5113495bSYour Name <enum 12 reo_destination_12> REO remaps this <enum 13 241*5113495bSYour Name reo_destination_13> REO remaps this 242*5113495bSYour Name 243*5113495bSYour Name <enum 14 reo_destination_14> REO remaps this 244*5113495bSYour Name 245*5113495bSYour Name <enum 15 reo_destination_15> REO remaps this 246*5113495bSYour Name 247*5113495bSYour Name <enum 16 reo_destination_16> REO remaps this 248*5113495bSYour Name 249*5113495bSYour Name <enum 17 reo_destination_17> REO remaps this 250*5113495bSYour Name 251*5113495bSYour Name <enum 18 reo_destination_18> REO remaps this 252*5113495bSYour Name 253*5113495bSYour Name <enum 19 reo_destination_19> REO remaps this 254*5113495bSYour Name 255*5113495bSYour Name <enum 20 reo_destination_20> REO remaps this 256*5113495bSYour Name 257*5113495bSYour Name <enum 21 reo_destination_21> REO remaps this 258*5113495bSYour Name 259*5113495bSYour Name <enum 22 reo_destination_22> REO remaps this 260*5113495bSYour Name 261*5113495bSYour Name <enum 23 reo_destination_23> REO remaps this 262*5113495bSYour Name 263*5113495bSYour Name <enum 24 reo_destination_24> REO remaps this 264*5113495bSYour Name 265*5113495bSYour Name <enum 25 reo_destination_25> REO remaps this 266*5113495bSYour Name 267*5113495bSYour Name <enum 26 reo_destination_26> REO remaps this 268*5113495bSYour Name 269*5113495bSYour Name <enum 27 reo_destination_27> REO remaps this 270*5113495bSYour Name 271*5113495bSYour Name <enum 28 reo_destination_28> REO remaps this 272*5113495bSYour Name 273*5113495bSYour Name <enum 29 reo_destination_29> REO remaps this 274*5113495bSYour Name 275*5113495bSYour Name <enum 30 reo_destination_30> REO remaps this 276*5113495bSYour Name 277*5113495bSYour Name <enum 31 reo_destination_31> REO remaps this 278*5113495bSYour Name 279*5113495bSYour Name 280*5113495bSYour Name 281*5113495bSYour Name <legal all> 282*5113495bSYour Name 283*5113495bSYour Name msdu_drop 284*5113495bSYour Name 285*5113495bSYour Name Overriding indication to REO to forward to REO release 286*5113495bSYour Name ring 287*5113495bSYour Name 288*5113495bSYour Name <legal all> 289*5113495bSYour Name 290*5113495bSYour Name reo_destination_handler 291*5113495bSYour Name 292*5113495bSYour Name Indicates how to decide the REO destination indication 293*5113495bSYour Name 294*5113495bSYour Name <enum 0 RXFT_USE_FT> Follow this entry 295*5113495bSYour Name 296*5113495bSYour Name <enum 1 RXFT_USE_ASPT> Use address search+peer table 297*5113495bSYour Name entry 298*5113495bSYour Name 299*5113495bSYour Name <enum 2 RXFT_USE_FT2> Follow this entry 300*5113495bSYour Name 301*5113495bSYour Name <enum 3 RXFT_USE_CCE> Use CCE super-rule 302*5113495bSYour Name 303*5113495bSYour Name <legal all> 304*5113495bSYour Name 305*5113495bSYour Name metadata 306*5113495bSYour Name 307*5113495bSYour Name Value to be passed to SW if this flow search entry 308*5113495bSYour Name matches 309*5113495bSYour Name 310*5113495bSYour Name <legal all> 311*5113495bSYour Name 312*5113495bSYour Name aggregation_count 313*5113495bSYour Name 314*5113495bSYour Name FISA: Number'of MSDU's aggregated so far 315*5113495bSYour Name 316*5113495bSYour Name 317*5113495bSYour Name 318*5113495bSYour Name Set to zero in chips not supporting FISA, e.g. Pine 319*5113495bSYour Name 320*5113495bSYour Name <legal all> 321*5113495bSYour Name 322*5113495bSYour Name lro_eligible 323*5113495bSYour Name 324*5113495bSYour Name FISA: To indicate whether the previous MSDU for this 325*5113495bSYour Name flow is eligible for LRO/FISA 326*5113495bSYour Name 327*5113495bSYour Name 328*5113495bSYour Name 329*5113495bSYour Name Set to zero in chips not supporting FISA, e.g. Pine 330*5113495bSYour Name 331*5113495bSYour Name <legal all> 332*5113495bSYour Name 333*5113495bSYour Name msdu_count 334*5113495bSYour Name 335*5113495bSYour Name Number of Rx MSDUs matching this flow 336*5113495bSYour Name 337*5113495bSYour Name <legal all> 338*5113495bSYour Name 339*5113495bSYour Name msdu_byte_count 340*5113495bSYour Name 341*5113495bSYour Name Number of bytes in Rx MSDUs matching this flow 342*5113495bSYour Name 343*5113495bSYour Name <legal all> 344*5113495bSYour Name 345*5113495bSYour Name timestamp 346*5113495bSYour Name 347*5113495bSYour Name Time of last reception (as measured at Rx OLE) matching 348*5113495bSYour Name this flow 349*5113495bSYour Name 350*5113495bSYour Name <legal all> 351*5113495bSYour Name 352*5113495bSYour Name cumulative_l4_checksum 353*5113495bSYour Name 354*5113495bSYour Name FISA: checksum 'or MSDU's that is part of this flow 355*5113495bSYour Name aggregated so far 356*5113495bSYour Name 357*5113495bSYour Name 358*5113495bSYour Name 359*5113495bSYour Name Set to zero in chips not supporting FISA, e.g. Pine 360*5113495bSYour Name 361*5113495bSYour Name <legal all> 362*5113495bSYour Name 363*5113495bSYour Name cumulative_ip_length 364*5113495bSYour Name 365*5113495bSYour Name FISA: Total MSDU length that is part of this flow 366*5113495bSYour Name aggregated so far 367*5113495bSYour Name 368*5113495bSYour Name 369*5113495bSYour Name 370*5113495bSYour Name Set to zero in chips not supporting FISA, e.g. Pine 371*5113495bSYour Name 372*5113495bSYour Name <legal all> 373*5113495bSYour Name 374*5113495bSYour Name tcp_sequence_number 375*5113495bSYour Name 376*5113495bSYour Name FISA: TCP Sequence number of the last packet in this 377*5113495bSYour Name flow to detect sequence number jump 378*5113495bSYour Name 379*5113495bSYour Name 380*5113495bSYour Name 381*5113495bSYour Name Set to zero in chips not supporting FISA, e.g. Pine 382*5113495bSYour Name 383*5113495bSYour Name <legal all> 384*5113495bSYour Name */ 385*5113495bSYour Name 386*5113495bSYour Name 387*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_0_SRC_IP_127_96 388*5113495bSYour Name 389*5113495bSYour Name Uppermost 32 bits of source IPv6 address or prefix as 390*5113495bSYour Name per Common Parser register field IP_DA_SA_PREFIX (with the 391*5113495bSYour Name first byte in the MSB and the last byte in the LSB, i.e. 392*5113495bSYour Name requiring a byte-swap for little-endian SW w.r.t. the byte 393*5113495bSYour Name order in an IPv6 packet) 394*5113495bSYour Name 395*5113495bSYour Name <legal all> 396*5113495bSYour Name */ 397*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_0_SRC_IP_127_96_OFFSET 0x00000000 398*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_0_SRC_IP_127_96_LSB 0 399*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_0_SRC_IP_127_96_MASK 0xffffffff 400*5113495bSYour Name 401*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_1_SRC_IP_95_64 402*5113495bSYour Name 403*5113495bSYour Name Next 32 bits of source IPv6 address or prefix (requiring 404*5113495bSYour Name a byte-swap for little-endian SW) <legal all> 405*5113495bSYour Name */ 406*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_1_SRC_IP_95_64_OFFSET 0x00000004 407*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_1_SRC_IP_95_64_LSB 0 408*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_1_SRC_IP_95_64_MASK 0xffffffff 409*5113495bSYour Name 410*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_2_SRC_IP_63_32 411*5113495bSYour Name 412*5113495bSYour Name Next 32 bits of source IPv6 address or lowest 32 bits of 413*5113495bSYour Name prefix (requiring a byte-swap for little-endian SW) 414*5113495bSYour Name 415*5113495bSYour Name <legal all> 416*5113495bSYour Name */ 417*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_2_SRC_IP_63_32_OFFSET 0x00000008 418*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_2_SRC_IP_63_32_LSB 0 419*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_2_SRC_IP_63_32_MASK 0xffffffff 420*5113495bSYour Name 421*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_3_SRC_IP_31_0 422*5113495bSYour Name 423*5113495bSYour Name Lowest 32 bits of source IPv6 address, or source IPv4 424*5113495bSYour Name address (requiring a byte-swap for little-endian SW w.r.t. 425*5113495bSYour Name the byte order in an Ipv6 or IPv4 packet) 426*5113495bSYour Name 427*5113495bSYour Name <legal all> 428*5113495bSYour Name */ 429*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_3_SRC_IP_31_0_OFFSET 0x0000000c 430*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_3_SRC_IP_31_0_LSB 0 431*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_3_SRC_IP_31_0_MASK 0xffffffff 432*5113495bSYour Name 433*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_4_DEST_IP_127_96 434*5113495bSYour Name 435*5113495bSYour Name Uppermost 32 bits of destination IPv6 address or prefix 436*5113495bSYour Name as per Common Parser register field IP_DA_SA_PREFIX (with 437*5113495bSYour Name the first byte in the MSB and the last byte in the LSB, i.e. 438*5113495bSYour Name requiring a byte-swap for little-endian SW w.r.t. the byte 439*5113495bSYour Name order as in an IPv6 packet) 440*5113495bSYour Name 441*5113495bSYour Name <legal all> 442*5113495bSYour Name */ 443*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_4_DEST_IP_127_96_OFFSET 0x00000010 444*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_4_DEST_IP_127_96_LSB 0 445*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_4_DEST_IP_127_96_MASK 0xffffffff 446*5113495bSYour Name 447*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_5_DEST_IP_95_64 448*5113495bSYour Name 449*5113495bSYour Name Next 32 bits of destination IPv6 address or prefix 450*5113495bSYour Name (requiring a byte-swap for little-endian SW) 451*5113495bSYour Name 452*5113495bSYour Name <legal all> 453*5113495bSYour Name */ 454*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_5_DEST_IP_95_64_OFFSET 0x00000014 455*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_5_DEST_IP_95_64_LSB 0 456*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_5_DEST_IP_95_64_MASK 0xffffffff 457*5113495bSYour Name 458*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_6_DEST_IP_63_32 459*5113495bSYour Name 460*5113495bSYour Name Next 32 bits of destination IPv6 address or lowest 32 461*5113495bSYour Name bits of prefix (requiring a byte-swap for little-endian SW) 462*5113495bSYour Name 463*5113495bSYour Name <legal all> 464*5113495bSYour Name */ 465*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_6_DEST_IP_63_32_OFFSET 0x00000018 466*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_6_DEST_IP_63_32_LSB 0 467*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_6_DEST_IP_63_32_MASK 0xffffffff 468*5113495bSYour Name 469*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_7_DEST_IP_31_0 470*5113495bSYour Name 471*5113495bSYour Name Lowest 32 bits of destination IPv6 address, or 472*5113495bSYour Name destination IPv4 address (requiring a byte-swap for 473*5113495bSYour Name little-endian SW w.r.t. the byte order in an Ipv6 or IPv4 474*5113495bSYour Name packet) 475*5113495bSYour Name 476*5113495bSYour Name <legal all> 477*5113495bSYour Name */ 478*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_7_DEST_IP_31_0_OFFSET 0x0000001c 479*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_7_DEST_IP_31_0_LSB 0 480*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_7_DEST_IP_31_0_MASK 0xffffffff 481*5113495bSYour Name 482*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_8_SRC_PORT 483*5113495bSYour Name 484*5113495bSYour Name LSB of SPI in case of ESP/AH 485*5113495bSYour Name 486*5113495bSYour Name else source port in case of TCP/UDP without IPsec, 487*5113495bSYour Name 488*5113495bSYour Name else zeros in case of ICMP (with the first/third byte in 489*5113495bSYour Name the MSB and the second/fourth byte in the LSB, i.e. 490*5113495bSYour Name requiring a byte-swap for little-endian SW w.r.t. the byte 491*5113495bSYour Name order as in an Ipv6 or IPv4 packet) <legal all> 492*5113495bSYour Name */ 493*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_8_SRC_PORT_OFFSET 0x00000020 494*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_8_SRC_PORT_LSB 0 495*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_8_SRC_PORT_MASK 0x0000ffff 496*5113495bSYour Name 497*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_8_DEST_PORT 498*5113495bSYour Name 499*5113495bSYour Name MSB of SPI in case of ESP/AH 500*5113495bSYour Name 501*5113495bSYour Name else destination port in case of TCP/UDP without IPsec, 502*5113495bSYour Name 503*5113495bSYour Name else zeros in case of ICMP (with the first byte in the 504*5113495bSYour Name MSB and the second byte in the LSB, i.e. requiring a 505*5113495bSYour Name byte-swap for little-endian SW w.r.t. the byte order as in 506*5113495bSYour Name an Ipv6 or IPv4 packet) 507*5113495bSYour Name 508*5113495bSYour Name <legal all> 509*5113495bSYour Name */ 510*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_8_DEST_PORT_OFFSET 0x00000020 511*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_8_DEST_PORT_LSB 16 512*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_8_DEST_PORT_MASK 0xffff0000 513*5113495bSYour Name 514*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_9_L4_PROTOCOL 515*5113495bSYour Name 516*5113495bSYour Name IPsec or L4 protocol 517*5113495bSYour Name 518*5113495bSYour Name 519*5113495bSYour Name 520*5113495bSYour Name <enum 1 ICMPV4> 521*5113495bSYour Name 522*5113495bSYour Name <enum 6 TCP> 523*5113495bSYour Name 524*5113495bSYour Name <enum 17 UDP> 525*5113495bSYour Name 526*5113495bSYour Name <enum 50 ESP> 527*5113495bSYour Name 528*5113495bSYour Name <enum 51 AH> 529*5113495bSYour Name 530*5113495bSYour Name <enum 58 ICMPV6> 531*5113495bSYour Name 532*5113495bSYour Name <legal 1, 6, 17, 50, 51, 58> 533*5113495bSYour Name */ 534*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_9_L4_PROTOCOL_OFFSET 0x00000024 535*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_9_L4_PROTOCOL_LSB 0 536*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_9_L4_PROTOCOL_MASK 0x000000ff 537*5113495bSYour Name 538*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_9_VALID 539*5113495bSYour Name 540*5113495bSYour Name Indicates validity of entry 541*5113495bSYour Name 542*5113495bSYour Name <legal all> 543*5113495bSYour Name */ 544*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_9_VALID_OFFSET 0x00000024 545*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_9_VALID_LSB 8 546*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_9_VALID_MASK 0x00000100 547*5113495bSYour Name 548*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_9_RESERVED_9 549*5113495bSYour Name 550*5113495bSYour Name <legal 0> 551*5113495bSYour Name */ 552*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_9_RESERVED_9_OFFSET 0x00000024 553*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_9_RESERVED_9_LSB 9 554*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_9_RESERVED_9_MASK 0x00fffe00 555*5113495bSYour Name 556*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_9_REO_DESTINATION_INDICATION 557*5113495bSYour Name 558*5113495bSYour Name The ID of the REO exit ring where the MSDU frame shall 559*5113495bSYour Name push after (MPDU level) reordering has finished. 560*5113495bSYour Name 561*5113495bSYour Name 562*5113495bSYour Name 563*5113495bSYour Name <enum 0 reo_destination_tcl> Reo will push the frame 564*5113495bSYour Name into the REO2TCL ring 565*5113495bSYour Name 566*5113495bSYour Name <enum 1 reo_destination_sw1> Reo will push the frame 567*5113495bSYour Name into the REO2SW1 ring 568*5113495bSYour Name 569*5113495bSYour Name <enum 2 reo_destination_sw2> Reo will push the frame 570*5113495bSYour Name into the REO2SW2 ring 571*5113495bSYour Name 572*5113495bSYour Name <enum 3 reo_destination_sw3> Reo will push the frame 573*5113495bSYour Name into the REO2SW3 ring 574*5113495bSYour Name 575*5113495bSYour Name <enum 4 reo_destination_sw4> Reo will push the frame 576*5113495bSYour Name into the REO2SW4 ring 577*5113495bSYour Name 578*5113495bSYour Name <enum 5 reo_destination_release> Reo will push the frame 579*5113495bSYour Name into the REO_release ring 580*5113495bSYour Name 581*5113495bSYour Name <enum 6 reo_destination_fw> Reo will push the frame into 582*5113495bSYour Name the REO2FW ring 583*5113495bSYour Name 584*5113495bSYour Name <enum 7 reo_destination_sw5> Reo will push the frame 585*5113495bSYour Name into the REO2SW5 ring 586*5113495bSYour Name 587*5113495bSYour Name <enum 8 reo_destination_sw6> Reo will push the frame 588*5113495bSYour Name into the REO2SW6 ring 589*5113495bSYour Name 590*5113495bSYour Name <enum 9 reo_destination_9> REO remaps this <enum 10 591*5113495bSYour Name reo_destination_10> REO remaps this 592*5113495bSYour Name 593*5113495bSYour Name <enum 11 reo_destination_11> REO remaps this 594*5113495bSYour Name 595*5113495bSYour Name <enum 12 reo_destination_12> REO remaps this <enum 13 596*5113495bSYour Name reo_destination_13> REO remaps this 597*5113495bSYour Name 598*5113495bSYour Name <enum 14 reo_destination_14> REO remaps this 599*5113495bSYour Name 600*5113495bSYour Name <enum 15 reo_destination_15> REO remaps this 601*5113495bSYour Name 602*5113495bSYour Name <enum 16 reo_destination_16> REO remaps this 603*5113495bSYour Name 604*5113495bSYour Name <enum 17 reo_destination_17> REO remaps this 605*5113495bSYour Name 606*5113495bSYour Name <enum 18 reo_destination_18> REO remaps this 607*5113495bSYour Name 608*5113495bSYour Name <enum 19 reo_destination_19> REO remaps this 609*5113495bSYour Name 610*5113495bSYour Name <enum 20 reo_destination_20> REO remaps this 611*5113495bSYour Name 612*5113495bSYour Name <enum 21 reo_destination_21> REO remaps this 613*5113495bSYour Name 614*5113495bSYour Name <enum 22 reo_destination_22> REO remaps this 615*5113495bSYour Name 616*5113495bSYour Name <enum 23 reo_destination_23> REO remaps this 617*5113495bSYour Name 618*5113495bSYour Name <enum 24 reo_destination_24> REO remaps this 619*5113495bSYour Name 620*5113495bSYour Name <enum 25 reo_destination_25> REO remaps this 621*5113495bSYour Name 622*5113495bSYour Name <enum 26 reo_destination_26> REO remaps this 623*5113495bSYour Name 624*5113495bSYour Name <enum 27 reo_destination_27> REO remaps this 625*5113495bSYour Name 626*5113495bSYour Name <enum 28 reo_destination_28> REO remaps this 627*5113495bSYour Name 628*5113495bSYour Name <enum 29 reo_destination_29> REO remaps this 629*5113495bSYour Name 630*5113495bSYour Name <enum 30 reo_destination_30> REO remaps this 631*5113495bSYour Name 632*5113495bSYour Name <enum 31 reo_destination_31> REO remaps this 633*5113495bSYour Name 634*5113495bSYour Name 635*5113495bSYour Name 636*5113495bSYour Name <legal all> 637*5113495bSYour Name */ 638*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_9_REO_DESTINATION_INDICATION_OFFSET 0x00000024 639*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_9_REO_DESTINATION_INDICATION_LSB 24 640*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_9_REO_DESTINATION_INDICATION_MASK 0x1f000000 641*5113495bSYour Name 642*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_9_MSDU_DROP 643*5113495bSYour Name 644*5113495bSYour Name Overriding indication to REO to forward to REO release 645*5113495bSYour Name ring 646*5113495bSYour Name 647*5113495bSYour Name <legal all> 648*5113495bSYour Name */ 649*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_9_MSDU_DROP_OFFSET 0x00000024 650*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_9_MSDU_DROP_LSB 29 651*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_9_MSDU_DROP_MASK 0x20000000 652*5113495bSYour Name 653*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_9_REO_DESTINATION_HANDLER 654*5113495bSYour Name 655*5113495bSYour Name Indicates how to decide the REO destination indication 656*5113495bSYour Name 657*5113495bSYour Name <enum 0 RXFT_USE_FT> Follow this entry 658*5113495bSYour Name 659*5113495bSYour Name <enum 1 RXFT_USE_ASPT> Use address search+peer table 660*5113495bSYour Name entry 661*5113495bSYour Name 662*5113495bSYour Name <enum 2 RXFT_USE_FT2> Follow this entry 663*5113495bSYour Name 664*5113495bSYour Name <enum 3 RXFT_USE_CCE> Use CCE super-rule 665*5113495bSYour Name 666*5113495bSYour Name <legal all> 667*5113495bSYour Name */ 668*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_9_REO_DESTINATION_HANDLER_OFFSET 0x00000024 669*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_9_REO_DESTINATION_HANDLER_LSB 30 670*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_9_REO_DESTINATION_HANDLER_MASK 0xc0000000 671*5113495bSYour Name 672*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_10_METADATA 673*5113495bSYour Name 674*5113495bSYour Name Value to be passed to SW if this flow search entry 675*5113495bSYour Name matches 676*5113495bSYour Name 677*5113495bSYour Name <legal all> 678*5113495bSYour Name */ 679*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_10_METADATA_OFFSET 0x00000028 680*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_10_METADATA_LSB 0 681*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_10_METADATA_MASK 0xffffffff 682*5113495bSYour Name 683*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_11_AGGREGATION_COUNT 684*5113495bSYour Name 685*5113495bSYour Name FISA: Number'of MSDU's aggregated so far 686*5113495bSYour Name 687*5113495bSYour Name 688*5113495bSYour Name 689*5113495bSYour Name Set to zero in chips not supporting FISA, e.g. Pine 690*5113495bSYour Name 691*5113495bSYour Name <legal all> 692*5113495bSYour Name */ 693*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_11_AGGREGATION_COUNT_OFFSET 0x0000002c 694*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_11_AGGREGATION_COUNT_LSB 0 695*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_11_AGGREGATION_COUNT_MASK 0x0000007f 696*5113495bSYour Name 697*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_11_LRO_ELIGIBLE 698*5113495bSYour Name 699*5113495bSYour Name FISA: To indicate whether the previous MSDU for this 700*5113495bSYour Name flow is eligible for LRO/FISA 701*5113495bSYour Name 702*5113495bSYour Name 703*5113495bSYour Name 704*5113495bSYour Name Set to zero in chips not supporting FISA, e.g. Pine 705*5113495bSYour Name 706*5113495bSYour Name <legal all> 707*5113495bSYour Name */ 708*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_11_LRO_ELIGIBLE_OFFSET 0x0000002c 709*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_11_LRO_ELIGIBLE_LSB 7 710*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_11_LRO_ELIGIBLE_MASK 0x00000080 711*5113495bSYour Name 712*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_11_MSDU_COUNT 713*5113495bSYour Name 714*5113495bSYour Name Number of Rx MSDUs matching this flow 715*5113495bSYour Name 716*5113495bSYour Name <legal all> 717*5113495bSYour Name */ 718*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_11_MSDU_COUNT_OFFSET 0x0000002c 719*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_11_MSDU_COUNT_LSB 8 720*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_11_MSDU_COUNT_MASK 0xffffff00 721*5113495bSYour Name 722*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_12_MSDU_BYTE_COUNT 723*5113495bSYour Name 724*5113495bSYour Name Number of bytes in Rx MSDUs matching this flow 725*5113495bSYour Name 726*5113495bSYour Name <legal all> 727*5113495bSYour Name */ 728*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_12_MSDU_BYTE_COUNT_OFFSET 0x00000030 729*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_12_MSDU_BYTE_COUNT_LSB 0 730*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_12_MSDU_BYTE_COUNT_MASK 0xffffffff 731*5113495bSYour Name 732*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_13_TIMESTAMP 733*5113495bSYour Name 734*5113495bSYour Name Time of last reception (as measured at Rx OLE) matching 735*5113495bSYour Name this flow 736*5113495bSYour Name 737*5113495bSYour Name <legal all> 738*5113495bSYour Name */ 739*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_13_TIMESTAMP_OFFSET 0x00000034 740*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_13_TIMESTAMP_LSB 0 741*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_13_TIMESTAMP_MASK 0xffffffff 742*5113495bSYour Name 743*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_14_CUMULATIVE_L4_CHECKSUM 744*5113495bSYour Name 745*5113495bSYour Name FISA: checksum 'or MSDU's that is part of this flow 746*5113495bSYour Name aggregated so far 747*5113495bSYour Name 748*5113495bSYour Name 749*5113495bSYour Name 750*5113495bSYour Name Set to zero in chips not supporting FISA, e.g. Pine 751*5113495bSYour Name 752*5113495bSYour Name <legal all> 753*5113495bSYour Name */ 754*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_14_CUMULATIVE_L4_CHECKSUM_OFFSET 0x00000038 755*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_14_CUMULATIVE_L4_CHECKSUM_LSB 0 756*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_14_CUMULATIVE_L4_CHECKSUM_MASK 0x0000ffff 757*5113495bSYour Name 758*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_14_CUMULATIVE_IP_LENGTH 759*5113495bSYour Name 760*5113495bSYour Name FISA: Total MSDU length that is part of this flow 761*5113495bSYour Name aggregated so far 762*5113495bSYour Name 763*5113495bSYour Name 764*5113495bSYour Name 765*5113495bSYour Name Set to zero in chips not supporting FISA, e.g. Pine 766*5113495bSYour Name 767*5113495bSYour Name <legal all> 768*5113495bSYour Name */ 769*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_14_CUMULATIVE_IP_LENGTH_OFFSET 0x00000038 770*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_14_CUMULATIVE_IP_LENGTH_LSB 16 771*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_14_CUMULATIVE_IP_LENGTH_MASK 0xffff0000 772*5113495bSYour Name 773*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_15_TCP_SEQUENCE_NUMBER 774*5113495bSYour Name 775*5113495bSYour Name FISA: TCP Sequence number of the last packet in this 776*5113495bSYour Name flow to detect sequence number jump 777*5113495bSYour Name 778*5113495bSYour Name 779*5113495bSYour Name 780*5113495bSYour Name Set to zero in chips not supporting FISA, e.g. Pine 781*5113495bSYour Name 782*5113495bSYour Name <legal all> 783*5113495bSYour Name */ 784*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_15_TCP_SEQUENCE_NUMBER_OFFSET 0x0000003c 785*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_15_TCP_SEQUENCE_NUMBER_LSB 0 786*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_15_TCP_SEQUENCE_NUMBER_MASK 0xffffffff 787*5113495bSYour Name 788*5113495bSYour Name 789*5113495bSYour Name #endif // _RX_FLOW_SEARCH_ENTRY_H_ 790