| 5901 | } |
| 5902 | |
| 5903 | static int |
| 5904 | iflib_qset_structures_setup(if_ctx_t ctx) |
| 5905 | { |
| 5906 | int err; |
| 5907 | |
| 5908 | /* |
| 5909 | * It is expected that the caller takes care of freeing queues if this |
| 5910 | * fails. |
| 5911 | */ |
| 5912 | if ((err = iflib_tx_structures_setup(ctx)) != 0) { |
| 5913 | device_printf(ctx->ifc_dev, "iflib_tx_structures_setup failed: %d\n", err); |
| 5914 | return (err); |
| 5915 | } |
| 5916 | |
| 5917 | if ((err = iflib_rx_structures_setup(ctx)) != 0) |
| 5918 | device_printf(ctx->ifc_dev, "iflib_rx_structures_setup failed: %d\n", err); |
| 5919 | |
| 5920 | return (err); |
| 5921 | } |
| 5922 | |
| 5923 | int |
| 5924 | iflib_irq_alloc(if_ctx_t ctx, if_irq_t irq, int rid, |
no test coverage detected