![]() dport ) * 8 ) if ( ret != 0 ) return ret /* Get handler of the required helper. */ ret = rte_thash_add_helper ( ctx, "snat", sizeof ( uint16_t ) * 8, offsetof ( union rte_thash_tuple, v4. In the * SNAT case we want to choose a new source port on SNAT translation in a * way that the reverse tuple will have the same LSBs as the original * direction tuple so that the selected source port will be the * destination port on reply. */ ctx = rte_thash_init_ctx ( "SNAT", key_len, reta_sz, initial_key, 0 ) /** Add a helper and specify the variable tuple part and its length. */ /* Create and initialize a new thash context. */ int reta_sz = 7 int ret struct rte_thash_ctx * ctx uint8_t initial_key = /* Default empty key. */ /** The default Niantic RSS reta size = 2^7 entries, LSBs of hash value are * used as an indexes in RSS ReTa. Int key_len = 40 /* The default Niantic RSS key length. Helpers that may overlap with their corresponding bit sequences of RSS hash The flag can be used in the case of a relatively large number of Generated for the required log2(RETA_SZ) least significant bits of the This flag forces the minimum bit sequence in the hash key to be However, theĬollision generation task requires only the log2(RETA_SZ) bits in the Sequence in the hash key for all the bits of the subtuple.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |