* Based on number of buckets calculated required size for the * structure that holds replay window and sequence number (RSN) information. */
| 95 | * structure that holds replay window and sequence number (RSN) information. |
| 96 | */ |
| 97 | static size_t |
| 98 | rsn_size(uint32_t nb_bucket) |
| 99 | { |
| 100 | size_t sz; |
| 101 | struct replay_sqn *rsn; |
| 102 | |
| 103 | sz = sizeof(*rsn) + nb_bucket * sizeof(rsn->window[0]); |
| 104 | sz = RTE_ALIGN_CEIL(sz, RTE_CACHE_LINE_SIZE); |
| 105 | return sz; |
| 106 | } |
| 107 | |
| 108 | /* |
| 109 | * for given size, calculate required number of buckets. |
no outgoing calls
no test coverage detected