| 203 | */ |
| 204 | |
| 205 | uint16_t bnxt_rss_ctxts(const struct bnxt *bp) |
| 206 | { |
| 207 | unsigned int num_rss_rings = RTE_MIN(bp->rx_nr_rings, |
| 208 | BNXT_RSS_TBL_SIZE_P5); |
| 209 | |
| 210 | if (!BNXT_CHIP_P5(bp)) |
| 211 | return 1; |
| 212 | |
| 213 | return RTE_ALIGN_MUL_CEIL(num_rss_rings, |
| 214 | BNXT_RSS_ENTRIES_PER_CTX_P5) / |
| 215 | BNXT_RSS_ENTRIES_PER_CTX_P5; |
| 216 | } |
| 217 | |
| 218 | uint16_t bnxt_rss_hash_tbl_size(const struct bnxt *bp) |
| 219 | { |
no outgoing calls
no test coverage detected