| 981 | } |
| 982 | |
| 983 | __checkReturn efx_rc_t |
| 984 | efx_rx_qcreate( |
| 985 | __in efx_nic_t *enp, |
| 986 | __in unsigned int index, |
| 987 | __in unsigned int label, |
| 988 | __in efx_rxq_type_t type, |
| 989 | __in size_t buf_size, |
| 990 | __in efsys_mem_t *esmp, |
| 991 | __in size_t ndescs, |
| 992 | __in uint32_t id, |
| 993 | __in unsigned int flags, |
| 994 | __in efx_evq_t *eep, |
| 995 | __deref_out efx_rxq_t **erpp) |
| 996 | { |
| 997 | const efx_nic_cfg_t *encp = efx_nic_cfg_get(enp); |
| 998 | efx_rxq_type_data_t type_data; |
| 999 | efx_rc_t rc; |
| 1000 | |
| 1001 | if (buf_size > encp->enc_rx_dma_desc_size_max) { |
| 1002 | rc = EINVAL; |
| 1003 | goto fail1; |
| 1004 | } |
| 1005 | |
| 1006 | memset(&type_data, 0, sizeof (type_data)); |
| 1007 | |
| 1008 | type_data.ertd_default.ed_buf_size = buf_size; |
| 1009 | |
| 1010 | return efx_rx_qcreate_internal(enp, index, label, type, &type_data, |
| 1011 | esmp, ndescs, id, flags, eep, erpp); |
| 1012 | |
| 1013 | fail1: |
| 1014 | EFSYS_PROBE1(fail1, efx_rc_t, rc); |
| 1015 | |
| 1016 | return (rc); |
| 1017 | } |
| 1018 | |
| 1019 | #if EFSYS_OPT_RX_PACKED_STREAM |
| 1020 |
no test coverage detected