| 265 | } |
| 266 | |
| 267 | static void bnxt_free_mem(struct bnxt *bp, bool reconfig) |
| 268 | { |
| 269 | bnxt_free_filter_mem(bp); |
| 270 | bnxt_free_vnic_attributes(bp); |
| 271 | bnxt_free_vnic_mem(bp); |
| 272 | |
| 273 | /* tx/rx rings are configured as part of *_queue_setup callbacks. |
| 274 | * If the number of rings change across fw update, |
| 275 | * we don't have much choice except to warn the user. |
| 276 | */ |
| 277 | if (!reconfig) { |
| 278 | bnxt_free_stats(bp); |
| 279 | bnxt_free_tx_rings(bp); |
| 280 | bnxt_free_rx_rings(bp); |
| 281 | } |
| 282 | bnxt_free_async_cp_ring(bp); |
| 283 | bnxt_free_rxtx_nq_ring(bp); |
| 284 | |
| 285 | rte_free(bp->grp_info); |
| 286 | bp->grp_info = NULL; |
| 287 | } |
| 288 | |
| 289 | static int bnxt_alloc_parent_info(struct bnxt *bp) |
| 290 | { |
no test coverage detected