New upstream version 18.11.1
[deb_dpdk.git] / drivers / net / sfc / base / efx_tx.c
index bf1180a..9fa9e2e 100644 (file)
@@ -926,7 +926,8 @@ siena_tx_qcreate(
        EFX_STATIC_ASSERT(ISP2(EFX_TXQ_MINNDESCS));
 
        if (!ISP2(ndescs) ||
-           (ndescs < EFX_TXQ_MINNDESCS) || (ndescs > EFX_EVQ_MAXNEVS)) {
+           (ndescs < EFX_TXQ_MINNDESCS) ||
+           (ndescs > encp->enc_txq_max_ndescs)) {
                rc = EINVAL;
                goto fail1;
        }