MCPcopy Create free account
hub / github.com/F-Stack/f-stack / iflib_qset_structures_setup

Function iflib_qset_structures_setup

freebsd/net/iflib.c:5903–5921  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5901}
5902
5903static int
5904iflib_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
5923int
5924iflib_irq_alloc(if_ctx_t ctx, if_irq_t irq, int rid,

Callers 2

iflib_device_registerFunction · 0.85
iflib_pseudo_registerFunction · 0.85

Calls 3

device_printfFunction · 0.85

Tested by

no test coverage detected