From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-f196.google.com (mail-lj1-f196.google.com [209.85.208.196]) by dpdk.org (Postfix) with ESMTP id A20FE4CE4 for ; Tue, 25 Sep 2018 09:05:23 +0200 (CEST) Received: by mail-lj1-f196.google.com with SMTP id r83-v6so2612366ljr.7 for ; Tue, 25 Sep 2018 00:05:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=IzFhARnn/qTrfY1WrrPEChsLZ3o1AnLguziDW2n8jS0=; b=RTGK8BPQfgPfcBFyHtnPCMeqf86xL6QeIWSb6SemaDUx1IPDG9/EasiLj3qfXRhkD7 xpQarLQr5/MdkGjseKCFV01nEhEsbKuWswmeXzOVqEFPiJItH1W62CqiGs6Df/bSISjQ E2YVceMZ0ypRLgHZ+Ka8xfHHatBym1eetQLqy8b+Gpag3P4A/VXvyiJaF+CjwSXWQrn+ ruhdYHkJHR67Gs2g7CYWqFsQM4iedcKC4Hhf5f6u4A/vnCImyVywBO01SK50KLLZh0Yt eNsokXOWvPGPIoR4l3S2GG5elyWPkUkLeq8ykL4v4DQ8zsLH3ZGrKnBjy/2TGEP+MRFf acmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=IzFhARnn/qTrfY1WrrPEChsLZ3o1AnLguziDW2n8jS0=; b=l9OT/fmUXyC+K9EQ6LmfI2XmMbIxCPxxz5Rq45Cvu2sy0K8hF6yIO4bbzDZtQYF68A IjRBClTcv9gYEEN8atDJ9v2wyjQYXp4L2BluoNY5MAZ4Vhdo7k1JxhgupbSmbXTam92E xb5P02ttAXR5ULtq2bUV/uUGHv0EDQ/kOksMFOpXmxl3c+S03W2jdrnBM19hmiHS1xFj 2z0erjg8e1iNpTh6Kobec2ISfRN4w/FnU6L5HTurOvr5YEXIPPlwylxui0y14mZitTcC 4c8FyDia80PPgL4DVAHkufx44k9tvYLJKULJF9Cg+rC/EoBX6634nomsNoVqkejOHNFj 7UKA== X-Gm-Message-State: ABuFfoix3aiaHWY0Wkjeo/MY7EVCUfWj4ONyKjX2ZXziPOwB9QDkKoja ILCQg2MorcXrGTZiCYXgsbEqXxNOLAWfXw== X-Google-Smtp-Source: ACcGV60XC+7d5NL83FF2Pvxe1WzwYGieHoXrluYzGpXCnz2NjcVvAIDvnpEyWFSDRP0W6Z8Jl6yBrQ== X-Received: by 2002:a2e:58e:: with SMTP id 136-v6mr1595737ljf.130.1537859123231; Tue, 25 Sep 2018 00:05:23 -0700 (PDT) Received: from amok.semihalf.local (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.googlemail.com with ESMTPSA id 24-v6sm238306ljb.76.2018.09.25.00.05.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 25 Sep 2018 00:05:22 -0700 (PDT) From: Andrzej Ostruszka To: dev@dpdk.org Cc: mw@semihalf.com, nadavh@marvell.com, Dmitri Epshtein Date: Tue, 25 Sep 2018 09:05:06 +0200 Message-Id: <1537859109-25659-11-git-send-email-amo@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1537859109-25659-1-git-send-email-amo@semihalf.com> References: <1536068953-9352-1-git-send-email-tdu@semihalf.com> <1537859109-25659-1-git-send-email-amo@semihalf.com> Subject: [dpdk-dev] [PATCH v3 10/13] crypto/mvsam: get number of CIOs dynamically X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Sep 2018 07:05:24 -0000 From: Dmitri Epshtein MUSDK 18.09 introduced API for getting CIOs number dynamically. Use that instead of predefined constant. Signed-off-by: Dmitri Epshtein Reviewed-by: Natalie Samsonov Tested-by: Natalie Samsonov --- drivers/crypto/mvsam/rte_mrvl_pmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/mvsam/rte_mrvl_pmd.c b/drivers/crypto/mvsam/rte_mrvl_pmd.c index 73eff75..6d54c06 100644 --- a/drivers/crypto/mvsam/rte_mrvl_pmd.c +++ b/drivers/crypto/mvsam/rte_mrvl_pmd.c @@ -864,7 +864,7 @@ cryptodev_mrvl_crypto_init(struct rte_vdev_device *vdev) .private_data_size = sizeof(struct mrvl_crypto_private), .max_nb_queue_pairs = - sam_get_num_inst() * SAM_HW_RING_NUM, + sam_get_num_inst() * sam_get_num_cios(0), .socket_id = rte_socket_id() }, .max_nb_sessions = MRVL_PMD_DEFAULT_MAX_NB_SESSIONS -- 2.7.4