From patchwork Tue Oct 24 14:48:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aviad Yehezkel X-Patchwork-Id: 30813 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 370ED1B838; Tue, 24 Oct 2017 16:48:22 +0200 (CEST) Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id 8223C1B62B for ; Tue, 24 Oct 2017 16:48:20 +0200 (CEST) Received: from Internal Mail-Server by MTLPINE1 (envelope-from aviadye@dev.mellanox.co.il) with ESMTPS (AES256-SHA encrypted); 24 Oct 2017 16:48:16 +0200 Received: from l-vmw-rdcore-205.mtl.labs.mlnx (l-vmw-rdcore-205.mtl.labs.mlnx [10.7.66.205]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id v9OEmG8w015540; Tue, 24 Oct 2017 17:48:16 +0300 From: aviadye@dev.mellanox.co.il To: jingjing.wu@intel.com, dev@dpdk.org, aviadye@mellanox.com Cc: borisp@mellanox.com, aviadye@dev.mellanox.co.il, liranl@mellanox.com, thomas@monjalon.net Date: Tue, 24 Oct 2017 17:48:16 +0300 Message-Id: <1508856496-30155-1-git-send-email-aviadye@dev.mellanox.co.il> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1508439233-17981-1-git-send-email-aviadye@dev.mellanox.co.il> References: <1508439233-17981-1-git-send-email-aviadye@dev.mellanox.co.il> Subject: [dpdk-dev] [PATCH v2] app/testpmd: compile without ixgbe and bnxt pmds 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Aviad Yehezkel Signed-off-by: Aviad Yehezkel Reviewed-by: Ferruh Yigit --- v2: * Address feedbacks. Signed-off-by: Aviad Yehezkel --- app/test-pmd/cmdline.c | 2 ++ app/test-pmd/config.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 1159a4a..1eefb04 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -7494,6 +7494,8 @@ cmd_set_vf_rxmode_parsed(void *parsed_result, rx_mode |= ETH_VMDQ_ACCEPT_MULTICAST; } + RTE_SET_USED(is_on); + #ifdef RTE_LIBRTE_IXGBE_PMD if (ret == -ENOTSUP) ret = rte_pmd_ixgbe_set_vf_rxmode(res->port_id, res->vf_id, diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index bafe76c..3117cb1 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -3185,6 +3185,10 @@ set_vf_rate_limit(portid_t port_id, uint16_t vf, uint16_t rate, uint64_t q_msk) { int diag = -ENOTSUP; + RTE_SET_USED(vf); + RTE_SET_USED(rate); + RTE_SET_USED(q_msk); + #ifdef RTE_LIBRTE_IXGBE_PMD if (diag == -ENOTSUP) diag = rte_pmd_ixgbe_set_vf_rate_limit(port_id, vf, rate,