1*5113495bSYour Name /* 2*5113495bSYour Name * Copyright (c) 2016-2019 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 #ifndef _RX_FLOW_SEARCH_ENTRY_H_ 20*5113495bSYour Name #define _RX_FLOW_SEARCH_ENTRY_H_ 21*5113495bSYour Name #if !defined(__ASSEMBLER__) 22*5113495bSYour Name #endif 23*5113495bSYour Name 24*5113495bSYour Name 25*5113495bSYour Name // ################ START SUMMARY ################# 26*5113495bSYour Name // 27*5113495bSYour Name // Dword Fields 28*5113495bSYour Name // 0 src_ip_127_96[31:0] 29*5113495bSYour Name // 1 src_ip_95_64[31:0] 30*5113495bSYour Name // 2 src_ip_63_32[31:0] 31*5113495bSYour Name // 3 src_ip_31_0[31:0] 32*5113495bSYour Name // 4 dest_ip_127_96[31:0] 33*5113495bSYour Name // 5 dest_ip_95_64[31:0] 34*5113495bSYour Name // 6 dest_ip_63_32[31:0] 35*5113495bSYour Name // 7 dest_ip_31_0[31:0] 36*5113495bSYour Name // 8 src_port[15:0], dest_port[31:16] 37*5113495bSYour Name // 9 l4_protocol[7:0], valid[8], reserved_9[29:9], reo_destination_handler[31:30] 38*5113495bSYour Name // 10 metadata[31:0] 39*5113495bSYour Name // 11 reo_destination_indication[4:0], msdu_drop[5], reserved_11[7:6], msdu_count[31:8] 40*5113495bSYour Name // 12 msdu_byte_count[31:0] 41*5113495bSYour Name // 13 timestamp[31:0] 42*5113495bSYour Name // 43*5113495bSYour Name // ################ END SUMMARY ################# 44*5113495bSYour Name 45*5113495bSYour Name #define NUM_OF_DWORDS_RX_FLOW_SEARCH_ENTRY 14 46*5113495bSYour Name 47*5113495bSYour Name struct rx_flow_search_entry { 48*5113495bSYour Name uint32_t src_ip_127_96 : 32; //[31:0] 49*5113495bSYour Name uint32_t src_ip_95_64 : 32; //[31:0] 50*5113495bSYour Name uint32_t src_ip_63_32 : 32; //[31:0] 51*5113495bSYour Name uint32_t src_ip_31_0 : 32; //[31:0] 52*5113495bSYour Name uint32_t dest_ip_127_96 : 32; //[31:0] 53*5113495bSYour Name uint32_t dest_ip_95_64 : 32; //[31:0] 54*5113495bSYour Name uint32_t dest_ip_63_32 : 32; //[31:0] 55*5113495bSYour Name uint32_t dest_ip_31_0 : 32; //[31:0] 56*5113495bSYour Name uint32_t src_port : 16, //[15:0] 57*5113495bSYour Name dest_port : 16; //[31:16] 58*5113495bSYour Name uint32_t l4_protocol : 8, //[7:0] 59*5113495bSYour Name valid : 1, //[8] 60*5113495bSYour Name reserved_9 : 21, //[29:9] 61*5113495bSYour Name reo_destination_handler : 2; //[31:30] 62*5113495bSYour Name uint32_t metadata : 32; //[31:0] 63*5113495bSYour Name uint32_t reo_destination_indication : 5, //[4:0] 64*5113495bSYour Name msdu_drop : 1, //[5] 65*5113495bSYour Name reserved_11 : 2, //[7:6] 66*5113495bSYour Name msdu_count : 24; //[31:8] 67*5113495bSYour Name uint32_t msdu_byte_count : 32; //[31:0] 68*5113495bSYour Name uint32_t timestamp : 32; //[31:0] 69*5113495bSYour Name }; 70*5113495bSYour Name 71*5113495bSYour Name /* 72*5113495bSYour Name 73*5113495bSYour Name src_ip_127_96 74*5113495bSYour Name 75*5113495bSYour Name Uppermost 32 bits of source IPv6 address or prefix as 76*5113495bSYour Name per Common Parser register field IP_DA_SA_PREFIX (with the 77*5113495bSYour Name first byte in the MSB and the last byte in the LSB, i.e. 78*5113495bSYour Name requiring a byte-swap for little-endian SW w.r.t. the byte 79*5113495bSYour Name order in an IPv6 packet) 80*5113495bSYour Name 81*5113495bSYour Name <legal all> 82*5113495bSYour Name 83*5113495bSYour Name src_ip_95_64 84*5113495bSYour Name 85*5113495bSYour Name Next 32 bits of source IPv6 address or prefix (requiring 86*5113495bSYour Name a byte-swap for little-endian SW) <legal all> 87*5113495bSYour Name 88*5113495bSYour Name src_ip_63_32 89*5113495bSYour Name 90*5113495bSYour Name Next 32 bits of source IPv6 address or lowest 32 bits of 91*5113495bSYour Name prefix (requiring a byte-swap for little-endian SW) 92*5113495bSYour Name 93*5113495bSYour Name <legal all> 94*5113495bSYour Name 95*5113495bSYour Name src_ip_31_0 96*5113495bSYour Name 97*5113495bSYour Name Lowest 32 bits of source IPv6 address, or source IPv4 98*5113495bSYour Name address (requiring a byte-swap for little-endian SW w.r.t. 99*5113495bSYour Name the byte order in an IPv6 or IPv4 packet) 100*5113495bSYour Name 101*5113495bSYour Name <legal all> 102*5113495bSYour Name 103*5113495bSYour Name dest_ip_127_96 104*5113495bSYour Name 105*5113495bSYour Name Uppermost 32 bits of destination IPv6 address or prefix 106*5113495bSYour Name as per Common Parser register field IP_DA_SA_PREFIX (with 107*5113495bSYour Name the first byte in the MSB and the last byte in the LSB, i.e. 108*5113495bSYour Name requiring a byte-swap for little-endian SW w.r.t. the byte 109*5113495bSYour Name order as in an IPv6 packet) 110*5113495bSYour Name 111*5113495bSYour Name <legal all> 112*5113495bSYour Name 113*5113495bSYour Name dest_ip_95_64 114*5113495bSYour Name 115*5113495bSYour Name Next 32 bits of destination IPv6 address or prefix 116*5113495bSYour Name (requiring a byte-swap for little-endian SW) 117*5113495bSYour Name 118*5113495bSYour Name <legal all> 119*5113495bSYour Name 120*5113495bSYour Name dest_ip_63_32 121*5113495bSYour Name 122*5113495bSYour Name Next 32 bits of destination IPv6 address or lowest 32 123*5113495bSYour Name bits of prefix (requiring a byte-swap for little-endian SW) 124*5113495bSYour Name 125*5113495bSYour Name <legal all> 126*5113495bSYour Name 127*5113495bSYour Name dest_ip_31_0 128*5113495bSYour Name 129*5113495bSYour Name Lowest 32 bits of destination IPv6 address, or 130*5113495bSYour Name destination IPv4 address (requiring a byte-swap for 131*5113495bSYour Name little-endian SW w.r.t. the byte order in an IPv6 or IPv4 132*5113495bSYour Name packet) 133*5113495bSYour Name 134*5113495bSYour Name <legal all> 135*5113495bSYour Name 136*5113495bSYour Name src_port 137*5113495bSYour Name 138*5113495bSYour Name LSB of SPI in case of ESP/AH 139*5113495bSYour Name 140*5113495bSYour Name else source port in case of TCP/UDP without IPsec, 141*5113495bSYour Name 142*5113495bSYour Name else zeros in case of ICMP (with the first/third byte in 143*5113495bSYour Name the MSB and the second/fourth byte in the LSB, i.e. 144*5113495bSYour Name requiring a byte-swap for little-endian SW w.r.t. the byte 145*5113495bSYour Name order as in an IPv6 or IPv4 packet) <legal all> 146*5113495bSYour Name 147*5113495bSYour Name dest_port 148*5113495bSYour Name 149*5113495bSYour Name MSB of SPI in case of ESP/AH 150*5113495bSYour Name 151*5113495bSYour Name else destination port in case of TCP/UDP without IPsec, 152*5113495bSYour Name 153*5113495bSYour Name else zeros in case of ICMP (with the first byte in the 154*5113495bSYour Name MSB and the second byte in the LSB, i.e. requiring a 155*5113495bSYour Name byte-swap for little-endian SW w.r.t. the byte order as in 156*5113495bSYour Name an IPv6 or IPv4 packet) 157*5113495bSYour Name 158*5113495bSYour Name <legal all> 159*5113495bSYour Name 160*5113495bSYour Name l4_protocol 161*5113495bSYour Name 162*5113495bSYour Name IPsec or L4 protocol 163*5113495bSYour Name 164*5113495bSYour Name 165*5113495bSYour Name 166*5113495bSYour Name <enum 1 ICMPV4> 167*5113495bSYour Name 168*5113495bSYour Name <enum 6 TCP> 169*5113495bSYour Name 170*5113495bSYour Name <enum 17 UDP> 171*5113495bSYour Name 172*5113495bSYour Name <enum 50 ESP> 173*5113495bSYour Name 174*5113495bSYour Name <enum 51 AH> 175*5113495bSYour Name 176*5113495bSYour Name <enum 58 ICMPV6> 177*5113495bSYour Name 178*5113495bSYour Name <legal 1, 6, 17, 50, 51, 58> 179*5113495bSYour Name 180*5113495bSYour Name valid 181*5113495bSYour Name 182*5113495bSYour Name Indicates validity of entry 183*5113495bSYour Name 184*5113495bSYour Name <legal all> 185*5113495bSYour Name 186*5113495bSYour Name reserved_9 187*5113495bSYour Name 188*5113495bSYour Name <legal 0> 189*5113495bSYour Name 190*5113495bSYour Name reo_destination_handler 191*5113495bSYour Name 192*5113495bSYour Name Indicates how to decide the REO destination indication 193*5113495bSYour Name 194*5113495bSYour Name <enum 0 RXFT_USE_FT> Follow this entry 195*5113495bSYour Name 196*5113495bSYour Name <enum 1 RXFT_USE_ASPT> Use address search+peer table 197*5113495bSYour Name entry 198*5113495bSYour Name 199*5113495bSYour Name <enum 2 RXFT_USE_FT2> Follow this entry 200*5113495bSYour Name 201*5113495bSYour Name <enum 3 RXFT_USE_CCE> Use CCE super-rule 202*5113495bSYour Name 203*5113495bSYour Name <legal all> 204*5113495bSYour Name 205*5113495bSYour Name metadata 206*5113495bSYour Name 207*5113495bSYour Name Value to be passed to SW if this flow search entry 208*5113495bSYour Name matches 209*5113495bSYour Name 210*5113495bSYour Name <legal all> 211*5113495bSYour Name 212*5113495bSYour Name reo_destination_indication 213*5113495bSYour Name 214*5113495bSYour Name The ID of the REO exit ring where the MSDU frame shall 215*5113495bSYour Name push after (MPDU level) reordering has finished. 216*5113495bSYour Name 217*5113495bSYour Name 218*5113495bSYour Name 219*5113495bSYour Name <enum 0 reo_destination_tcl> Reo will push the frame 220*5113495bSYour Name into the REO2TCL ring 221*5113495bSYour Name 222*5113495bSYour Name <enum 1 reo_destination_sw1> Reo will push the frame 223*5113495bSYour Name into the REO2SW1 ring 224*5113495bSYour Name 225*5113495bSYour Name <enum 2 reo_destination_sw2> Reo will push the frame 226*5113495bSYour Name into the REO2SW1 ring 227*5113495bSYour Name 228*5113495bSYour Name <enum 3 reo_destination_sw3> Reo will push the frame 229*5113495bSYour Name into the REO2SW1 ring 230*5113495bSYour Name 231*5113495bSYour Name <enum 4 reo_destination_sw4> Reo will push the frame 232*5113495bSYour Name into the REO2SW1 ring 233*5113495bSYour Name 234*5113495bSYour Name <enum 5 reo_destination_release> Reo will push the frame 235*5113495bSYour Name into the REO_release ring 236*5113495bSYour Name 237*5113495bSYour Name <enum 6 reo_destination_fw> Reo will push the frame into 238*5113495bSYour Name the REO2FW ring 239*5113495bSYour Name 240*5113495bSYour Name <enum 7 reo_destination_7> REO remaps this 241*5113495bSYour Name 242*5113495bSYour Name <enum 8 reo_destination_8> REO remaps this <enum 9 243*5113495bSYour Name reo_destination_9> REO remaps this <enum 10 244*5113495bSYour Name reo_destination_10> REO remaps this 245*5113495bSYour Name 246*5113495bSYour Name <enum 11 reo_destination_11> REO remaps this 247*5113495bSYour Name 248*5113495bSYour Name <enum 12 reo_destination_12> REO remaps this <enum 13 249*5113495bSYour Name reo_destination_13> REO remaps this 250*5113495bSYour Name 251*5113495bSYour Name <enum 14 reo_destination_14> REO remaps this 252*5113495bSYour Name 253*5113495bSYour Name <enum 15 reo_destination_15> REO remaps this 254*5113495bSYour Name 255*5113495bSYour Name <enum 16 reo_destination_16> REO remaps this 256*5113495bSYour Name 257*5113495bSYour Name <enum 17 reo_destination_17> REO remaps this 258*5113495bSYour Name 259*5113495bSYour Name <enum 18 reo_destination_18> REO remaps this 260*5113495bSYour Name 261*5113495bSYour Name <enum 19 reo_destination_19> REO remaps this 262*5113495bSYour Name 263*5113495bSYour Name <enum 20 reo_destination_20> REO remaps this 264*5113495bSYour Name 265*5113495bSYour Name <enum 21 reo_destination_21> REO remaps this 266*5113495bSYour Name 267*5113495bSYour Name <enum 22 reo_destination_22> REO remaps this 268*5113495bSYour Name 269*5113495bSYour Name <enum 23 reo_destination_23> REO remaps this 270*5113495bSYour Name 271*5113495bSYour Name <enum 24 reo_destination_24> REO remaps this 272*5113495bSYour Name 273*5113495bSYour Name <enum 25 reo_destination_25> REO remaps this 274*5113495bSYour Name 275*5113495bSYour Name <enum 26 reo_destination_26> REO remaps this 276*5113495bSYour Name 277*5113495bSYour Name <enum 27 reo_destination_27> REO remaps this 278*5113495bSYour Name 279*5113495bSYour Name <enum 28 reo_destination_28> REO remaps this 280*5113495bSYour Name 281*5113495bSYour Name <enum 29 reo_destination_29> REO remaps this 282*5113495bSYour Name 283*5113495bSYour Name <enum 30 reo_destination_30> REO remaps this 284*5113495bSYour Name 285*5113495bSYour Name <enum 31 reo_destination_31> REO remaps this 286*5113495bSYour Name 287*5113495bSYour Name 288*5113495bSYour Name 289*5113495bSYour Name <legal all> 290*5113495bSYour Name 291*5113495bSYour Name msdu_drop 292*5113495bSYour Name 293*5113495bSYour Name Overriding indication to REO to forward to REO release 294*5113495bSYour Name ring 295*5113495bSYour Name 296*5113495bSYour Name <legal all> 297*5113495bSYour Name 298*5113495bSYour Name reserved_11 299*5113495bSYour Name 300*5113495bSYour Name <legal 0> 301*5113495bSYour Name 302*5113495bSYour Name msdu_count 303*5113495bSYour Name 304*5113495bSYour Name Number of Rx MSDUs matching this flow 305*5113495bSYour Name 306*5113495bSYour Name <legal all> 307*5113495bSYour Name 308*5113495bSYour Name msdu_byte_count 309*5113495bSYour Name 310*5113495bSYour Name Number of bytes in Rx MSDUs matching this flow 311*5113495bSYour Name 312*5113495bSYour Name <legal all> 313*5113495bSYour Name 314*5113495bSYour Name timestamp 315*5113495bSYour Name 316*5113495bSYour Name Time of last reception (as measured at Rx OLE) matching 317*5113495bSYour Name this flow 318*5113495bSYour Name 319*5113495bSYour Name <legal all> 320*5113495bSYour Name */ 321*5113495bSYour Name 322*5113495bSYour Name 323*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_0_SRC_IP_127_96 324*5113495bSYour Name 325*5113495bSYour Name Uppermost 32 bits of source IPv6 address or prefix as 326*5113495bSYour Name per Common Parser register field IP_DA_SA_PREFIX (with the 327*5113495bSYour Name first byte in the MSB and the last byte in the LSB, i.e. 328*5113495bSYour Name requiring a byte-swap for little-endian SW w.r.t. the byte 329*5113495bSYour Name order in an IPv6 packet) 330*5113495bSYour Name 331*5113495bSYour Name <legal all> 332*5113495bSYour Name */ 333*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_0_SRC_IP_127_96_OFFSET 0x00000000 334*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_0_SRC_IP_127_96_LSB 0 335*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_0_SRC_IP_127_96_MASK 0xffffffff 336*5113495bSYour Name 337*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_1_SRC_IP_95_64 338*5113495bSYour Name 339*5113495bSYour Name Next 32 bits of source IPv6 address or prefix (requiring 340*5113495bSYour Name a byte-swap for little-endian SW) <legal all> 341*5113495bSYour Name */ 342*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_1_SRC_IP_95_64_OFFSET 0x00000004 343*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_1_SRC_IP_95_64_LSB 0 344*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_1_SRC_IP_95_64_MASK 0xffffffff 345*5113495bSYour Name 346*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_2_SRC_IP_63_32 347*5113495bSYour Name 348*5113495bSYour Name Next 32 bits of source IPv6 address or lowest 32 bits of 349*5113495bSYour Name prefix (requiring a byte-swap for little-endian SW) 350*5113495bSYour Name 351*5113495bSYour Name <legal all> 352*5113495bSYour Name */ 353*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_2_SRC_IP_63_32_OFFSET 0x00000008 354*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_2_SRC_IP_63_32_LSB 0 355*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_2_SRC_IP_63_32_MASK 0xffffffff 356*5113495bSYour Name 357*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_3_SRC_IP_31_0 358*5113495bSYour Name 359*5113495bSYour Name Lowest 32 bits of source IPv6 address, or source IPv4 360*5113495bSYour Name address (requiring a byte-swap for little-endian SW w.r.t. 361*5113495bSYour Name the byte order in an IPv6 or IPv4 packet) 362*5113495bSYour Name 363*5113495bSYour Name <legal all> 364*5113495bSYour Name */ 365*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_3_SRC_IP_31_0_OFFSET 0x0000000c 366*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_3_SRC_IP_31_0_LSB 0 367*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_3_SRC_IP_31_0_MASK 0xffffffff 368*5113495bSYour Name 369*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_4_DEST_IP_127_96 370*5113495bSYour Name 371*5113495bSYour Name Uppermost 32 bits of destination IPv6 address or prefix 372*5113495bSYour Name as per Common Parser register field IP_DA_SA_PREFIX (with 373*5113495bSYour Name the first byte in the MSB and the last byte in the LSB, i.e. 374*5113495bSYour Name requiring a byte-swap for little-endian SW w.r.t. the byte 375*5113495bSYour Name order as in an IPv6 packet) 376*5113495bSYour Name 377*5113495bSYour Name <legal all> 378*5113495bSYour Name */ 379*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_4_DEST_IP_127_96_OFFSET 0x00000010 380*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_4_DEST_IP_127_96_LSB 0 381*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_4_DEST_IP_127_96_MASK 0xffffffff 382*5113495bSYour Name 383*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_5_DEST_IP_95_64 384*5113495bSYour Name 385*5113495bSYour Name Next 32 bits of destination IPv6 address or prefix 386*5113495bSYour Name (requiring a byte-swap for little-endian SW) 387*5113495bSYour Name 388*5113495bSYour Name <legal all> 389*5113495bSYour Name */ 390*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_5_DEST_IP_95_64_OFFSET 0x00000014 391*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_5_DEST_IP_95_64_LSB 0 392*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_5_DEST_IP_95_64_MASK 0xffffffff 393*5113495bSYour Name 394*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_6_DEST_IP_63_32 395*5113495bSYour Name 396*5113495bSYour Name Next 32 bits of destination IPv6 address or lowest 32 397*5113495bSYour Name bits of prefix (requiring a byte-swap for little-endian SW) 398*5113495bSYour Name 399*5113495bSYour Name <legal all> 400*5113495bSYour Name */ 401*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_6_DEST_IP_63_32_OFFSET 0x00000018 402*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_6_DEST_IP_63_32_LSB 0 403*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_6_DEST_IP_63_32_MASK 0xffffffff 404*5113495bSYour Name 405*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_7_DEST_IP_31_0 406*5113495bSYour Name 407*5113495bSYour Name Lowest 32 bits of destination IPv6 address, or 408*5113495bSYour Name destination IPv4 address (requiring a byte-swap for 409*5113495bSYour Name little-endian SW w.r.t. the byte order in an IPv6 or IPv4 410*5113495bSYour Name packet) 411*5113495bSYour Name 412*5113495bSYour Name <legal all> 413*5113495bSYour Name */ 414*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_7_DEST_IP_31_0_OFFSET 0x0000001c 415*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_7_DEST_IP_31_0_LSB 0 416*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_7_DEST_IP_31_0_MASK 0xffffffff 417*5113495bSYour Name 418*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_8_SRC_PORT 419*5113495bSYour Name 420*5113495bSYour Name LSB of SPI in case of ESP/AH 421*5113495bSYour Name 422*5113495bSYour Name else source port in case of TCP/UDP without IPsec, 423*5113495bSYour Name 424*5113495bSYour Name else zeros in case of ICMP (with the first/third byte in 425*5113495bSYour Name the MSB and the second/fourth byte in the LSB, i.e. 426*5113495bSYour Name requiring a byte-swap for little-endian SW w.r.t. the byte 427*5113495bSYour Name order as in an IPv6 or IPv4 packet) <legal all> 428*5113495bSYour Name */ 429*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_8_SRC_PORT_OFFSET 0x00000020 430*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_8_SRC_PORT_LSB 0 431*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_8_SRC_PORT_MASK 0x0000ffff 432*5113495bSYour Name 433*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_8_DEST_PORT 434*5113495bSYour Name 435*5113495bSYour Name MSB of SPI in case of ESP/AH 436*5113495bSYour Name 437*5113495bSYour Name else destination port in case of TCP/UDP without IPsec, 438*5113495bSYour Name 439*5113495bSYour Name else zeros in case of ICMP (with the first byte in the 440*5113495bSYour Name MSB and the second byte in the LSB, i.e. requiring a 441*5113495bSYour Name byte-swap for little-endian SW w.r.t. the byte order as in 442*5113495bSYour Name an IPv6 or IPv4 packet) 443*5113495bSYour Name 444*5113495bSYour Name <legal all> 445*5113495bSYour Name */ 446*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_8_DEST_PORT_OFFSET 0x00000020 447*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_8_DEST_PORT_LSB 16 448*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_8_DEST_PORT_MASK 0xffff0000 449*5113495bSYour Name 450*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_9_L4_PROTOCOL 451*5113495bSYour Name 452*5113495bSYour Name IPsec or L4 protocol 453*5113495bSYour Name 454*5113495bSYour Name 455*5113495bSYour Name 456*5113495bSYour Name <enum 1 ICMPV4> 457*5113495bSYour Name 458*5113495bSYour Name <enum 6 TCP> 459*5113495bSYour Name 460*5113495bSYour Name <enum 17 UDP> 461*5113495bSYour Name 462*5113495bSYour Name <enum 50 ESP> 463*5113495bSYour Name 464*5113495bSYour Name <enum 51 AH> 465*5113495bSYour Name 466*5113495bSYour Name <enum 58 ICMPV6> 467*5113495bSYour Name 468*5113495bSYour Name <legal 1, 6, 17, 50, 51, 58> 469*5113495bSYour Name */ 470*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_9_L4_PROTOCOL_OFFSET 0x00000024 471*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_9_L4_PROTOCOL_LSB 0 472*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_9_L4_PROTOCOL_MASK 0x000000ff 473*5113495bSYour Name 474*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_9_VALID 475*5113495bSYour Name 476*5113495bSYour Name Indicates validity of entry 477*5113495bSYour Name 478*5113495bSYour Name <legal all> 479*5113495bSYour Name */ 480*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_9_VALID_OFFSET 0x00000024 481*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_9_VALID_LSB 8 482*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_9_VALID_MASK 0x00000100 483*5113495bSYour Name 484*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_9_RESERVED_9 485*5113495bSYour Name 486*5113495bSYour Name <legal 0> 487*5113495bSYour Name */ 488*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_9_RESERVED_9_OFFSET 0x00000024 489*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_9_RESERVED_9_LSB 9 490*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_9_RESERVED_9_MASK 0x3ffffe00 491*5113495bSYour Name 492*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_9_REO_DESTINATION_HANDLER 493*5113495bSYour Name 494*5113495bSYour Name Indicates how to decide the REO destination indication 495*5113495bSYour Name 496*5113495bSYour Name <enum 0 RXFT_USE_FT> Follow this entry 497*5113495bSYour Name 498*5113495bSYour Name <enum 1 RXFT_USE_ASPT> Use address search+peer table 499*5113495bSYour Name entry 500*5113495bSYour Name 501*5113495bSYour Name <enum 2 RXFT_USE_FT2> Follow this entry 502*5113495bSYour Name 503*5113495bSYour Name <enum 3 RXFT_USE_CCE> Use CCE super-rule 504*5113495bSYour Name 505*5113495bSYour Name <legal all> 506*5113495bSYour Name */ 507*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_9_REO_DESTINATION_HANDLER_OFFSET 0x00000024 508*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_9_REO_DESTINATION_HANDLER_LSB 30 509*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_9_REO_DESTINATION_HANDLER_MASK 0xc0000000 510*5113495bSYour Name 511*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_10_METADATA 512*5113495bSYour Name 513*5113495bSYour Name Value to be passed to SW if this flow search entry 514*5113495bSYour Name matches 515*5113495bSYour Name 516*5113495bSYour Name <legal all> 517*5113495bSYour Name */ 518*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_10_METADATA_OFFSET 0x00000028 519*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_10_METADATA_LSB 0 520*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_10_METADATA_MASK 0xffffffff 521*5113495bSYour Name 522*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_11_REO_DESTINATION_INDICATION 523*5113495bSYour Name 524*5113495bSYour Name The ID of the REO exit ring where the MSDU frame shall 525*5113495bSYour Name push after (MPDU level) reordering has finished. 526*5113495bSYour Name 527*5113495bSYour Name 528*5113495bSYour Name 529*5113495bSYour Name <enum 0 reo_destination_tcl> Reo will push the frame 530*5113495bSYour Name into the REO2TCL ring 531*5113495bSYour Name 532*5113495bSYour Name <enum 1 reo_destination_sw1> Reo will push the frame 533*5113495bSYour Name into the REO2SW1 ring 534*5113495bSYour Name 535*5113495bSYour Name <enum 2 reo_destination_sw2> Reo will push the frame 536*5113495bSYour Name into the REO2SW1 ring 537*5113495bSYour Name 538*5113495bSYour Name <enum 3 reo_destination_sw3> Reo will push the frame 539*5113495bSYour Name into the REO2SW1 ring 540*5113495bSYour Name 541*5113495bSYour Name <enum 4 reo_destination_sw4> Reo will push the frame 542*5113495bSYour Name into the REO2SW1 ring 543*5113495bSYour Name 544*5113495bSYour Name <enum 5 reo_destination_release> Reo will push the frame 545*5113495bSYour Name into the REO_release ring 546*5113495bSYour Name 547*5113495bSYour Name <enum 6 reo_destination_fw> Reo will push the frame into 548*5113495bSYour Name the REO2FW ring 549*5113495bSYour Name 550*5113495bSYour Name <enum 7 reo_destination_7> REO remaps this 551*5113495bSYour Name 552*5113495bSYour Name <enum 8 reo_destination_8> REO remaps this <enum 9 553*5113495bSYour Name reo_destination_9> REO remaps this <enum 10 554*5113495bSYour Name reo_destination_10> REO remaps this 555*5113495bSYour Name 556*5113495bSYour Name <enum 11 reo_destination_11> REO remaps this 557*5113495bSYour Name 558*5113495bSYour Name <enum 12 reo_destination_12> REO remaps this <enum 13 559*5113495bSYour Name reo_destination_13> REO remaps this 560*5113495bSYour Name 561*5113495bSYour Name <enum 14 reo_destination_14> REO remaps this 562*5113495bSYour Name 563*5113495bSYour Name <enum 15 reo_destination_15> REO remaps this 564*5113495bSYour Name 565*5113495bSYour Name <enum 16 reo_destination_16> REO remaps this 566*5113495bSYour Name 567*5113495bSYour Name <enum 17 reo_destination_17> REO remaps this 568*5113495bSYour Name 569*5113495bSYour Name <enum 18 reo_destination_18> REO remaps this 570*5113495bSYour Name 571*5113495bSYour Name <enum 19 reo_destination_19> REO remaps this 572*5113495bSYour Name 573*5113495bSYour Name <enum 20 reo_destination_20> REO remaps this 574*5113495bSYour Name 575*5113495bSYour Name <enum 21 reo_destination_21> REO remaps this 576*5113495bSYour Name 577*5113495bSYour Name <enum 22 reo_destination_22> REO remaps this 578*5113495bSYour Name 579*5113495bSYour Name <enum 23 reo_destination_23> REO remaps this 580*5113495bSYour Name 581*5113495bSYour Name <enum 24 reo_destination_24> REO remaps this 582*5113495bSYour Name 583*5113495bSYour Name <enum 25 reo_destination_25> REO remaps this 584*5113495bSYour Name 585*5113495bSYour Name <enum 26 reo_destination_26> REO remaps this 586*5113495bSYour Name 587*5113495bSYour Name <enum 27 reo_destination_27> REO remaps this 588*5113495bSYour Name 589*5113495bSYour Name <enum 28 reo_destination_28> REO remaps this 590*5113495bSYour Name 591*5113495bSYour Name <enum 29 reo_destination_29> REO remaps this 592*5113495bSYour Name 593*5113495bSYour Name <enum 30 reo_destination_30> REO remaps this 594*5113495bSYour Name 595*5113495bSYour Name <enum 31 reo_destination_31> REO remaps this 596*5113495bSYour Name 597*5113495bSYour Name 598*5113495bSYour Name 599*5113495bSYour Name <legal all> 600*5113495bSYour Name */ 601*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_11_REO_DESTINATION_INDICATION_OFFSET 0x0000002c 602*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_11_REO_DESTINATION_INDICATION_LSB 0 603*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_11_REO_DESTINATION_INDICATION_MASK 0x0000001f 604*5113495bSYour Name 605*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_11_MSDU_DROP 606*5113495bSYour Name 607*5113495bSYour Name Overriding indication to REO to forward to REO release 608*5113495bSYour Name ring 609*5113495bSYour Name 610*5113495bSYour Name <legal all> 611*5113495bSYour Name */ 612*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_11_MSDU_DROP_OFFSET 0x0000002c 613*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_11_MSDU_DROP_LSB 5 614*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_11_MSDU_DROP_MASK 0x00000020 615*5113495bSYour Name 616*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_11_RESERVED_11 617*5113495bSYour Name 618*5113495bSYour Name <legal 0> 619*5113495bSYour Name */ 620*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_11_RESERVED_11_OFFSET 0x0000002c 621*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_11_RESERVED_11_LSB 6 622*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_11_RESERVED_11_MASK 0x000000c0 623*5113495bSYour Name 624*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_11_MSDU_COUNT 625*5113495bSYour Name 626*5113495bSYour Name Number of Rx MSDUs matching this flow 627*5113495bSYour Name 628*5113495bSYour Name <legal all> 629*5113495bSYour Name */ 630*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_11_MSDU_COUNT_OFFSET 0x0000002c 631*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_11_MSDU_COUNT_LSB 8 632*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_11_MSDU_COUNT_MASK 0xffffff00 633*5113495bSYour Name 634*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_12_MSDU_BYTE_COUNT 635*5113495bSYour Name 636*5113495bSYour Name Number of bytes in Rx MSDUs matching this flow 637*5113495bSYour Name 638*5113495bSYour Name <legal all> 639*5113495bSYour Name */ 640*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_12_MSDU_BYTE_COUNT_OFFSET 0x00000030 641*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_12_MSDU_BYTE_COUNT_LSB 0 642*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_12_MSDU_BYTE_COUNT_MASK 0xffffffff 643*5113495bSYour Name 644*5113495bSYour Name /* Description RX_FLOW_SEARCH_ENTRY_13_TIMESTAMP 645*5113495bSYour Name 646*5113495bSYour Name Time of last reception (as measured at Rx OLE) matching 647*5113495bSYour Name this flow 648*5113495bSYour Name 649*5113495bSYour Name <legal all> 650*5113495bSYour Name */ 651*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_13_TIMESTAMP_OFFSET 0x00000034 652*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_13_TIMESTAMP_LSB 0 653*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_13_TIMESTAMP_MASK 0xffffffff 654*5113495bSYour Name 655*5113495bSYour Name 656*5113495bSYour Name #endif // _RX_FLOW_SEARCH_ENTRY_H_ 657