From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-f67.google.com (mail-lf1-f67.google.com [209.85.167.67]) by dpdk.org (Postfix) with ESMTP id 122744C99 for ; Fri, 24 Aug 2018 14:17:04 +0200 (CEST) Received: by mail-lf1-f67.google.com with SMTP id h64-v6so5033414lfi.10 for ; Fri, 24 Aug 2018 05:17:04 -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=27kVjXLcn+xnuRXnsBpb6FC4jqCh8tUmyPgN9dHQcAg=; b=vpc26aJYNrnuqHw5e2oETuPuNXa0Mt6svy+fBx2AiXhR7dW3Oibep3P4Mr4xXjM5ac 7RDJNFH8plKWaRdc84dY1CJFXlq2l4gqbLtrM8kWN2yCuPerwBeqdhdq7G+SSCW6neRJ VQ2TRPCx63Yk9b5Nzv4BWLiEh/dc6/ITH6MSKRPNkxKnP2ggDUyh2OFO0wsIM1EfV0MS jvscGdj91/NEPT7GdJF5HICydz53O8S3lehrzcWEN6b7+1yFqpHWKIwUejroDALLHm4N vp6YcMy4MUGFcupzxDEtKmfbvOKcp1iHpKrgiM28FBotPbNtAsENxhh7x0UUrZpveL1Q e0GA== 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=27kVjXLcn+xnuRXnsBpb6FC4jqCh8tUmyPgN9dHQcAg=; b=AOVBpq4bLKt70xLK18BSfxP9U0dY3xqdV68gLA+8vlHhJnOsXpoUAYB6JS1BnM63bk LTfN/LdzuVRIra71n1Q7eru4U4dgzSr4Cat11B6RGHUUcfD1neqnnFe045TwJUTjaSPT ozOnks6lSO/fFupTyqBynQVJ2RPk1buHD8ArTBcFVejOZlM82fHDd2J7IXmCdv8WM0IT Vhm/NXfCXQDxQjYYSno0Qe7p9eo7r/MK8D5/8/Q1fccJOilc4oG8nxxcrePfGG5Z2EuT Dx8StXFIOUE1FEKj73jzsyabrCD9tQnnJFROgOR4xhpJbxLd5Yg+/vk7uanhFc8amIv1 eVJQ== X-Gm-Message-State: APzg51CmiJaCGx6Z7j/Z5nnv9NPDQ4uceybrMIvyqBhwsNXC9cxIcZz4 f3S2CMwb/vtZzZZfPtyhOhkVMVjhilg= X-Google-Smtp-Source: ANB0Vda+QTIktkCJkHtMyW3H9OLw+4wQP4JJFnH5QJ84cY14JZazndbm/bDx4CvOMhmto/jhJHXW9A== X-Received: by 2002:a19:2287:: with SMTP id i129-v6mr1200540lfi.20.1535113023607; Fri, 24 Aug 2018 05:17:03 -0700 (PDT) Received: from sh.semihalf.local (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id a18-v6sm1177672ljk.47.2018.08.24.05.17.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 Aug 2018 05:17:02 -0700 (PDT) From: Tomasz Duszynski To: dev@dpdk.org Cc: nsamsono@marvell.com, mw@semihalf.com, Tomasz Duszynski , stable@dpdk.org Date: Fri, 24 Aug 2018 14:16:43 +0200 Message-Id: <1535113006-9393-4-git-send-email-tdu@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535113006-9393-1-git-send-email-tdu@semihalf.com> References: <1535113006-9393-1-git-send-email-tdu@semihalf.com> Subject: [dpdk-dev] [PATCH 3/6] net/mvpp2: fix array initialization 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: Fri, 24 Aug 2018 12:17:04 -0000 Fix used_bpools array initialization by using range initializer. This way all necessary variables are properly initialized regardless of PP2_NUM_PKT_PROC value. Fixes: 0ddc9b815b11 ("net/mrvl: add net PMD skeleton") Cc: stable@dpdk.org Signed-off-by: Tomasz Duszynski --- drivers/net/mvpp2/mrvl_ethdev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/mvpp2/mrvl_ethdev.c b/drivers/net/mvpp2/mrvl_ethdev.c index 7ea8946..60ca6e0 100644 --- a/drivers/net/mvpp2/mrvl_ethdev.c +++ b/drivers/net/mvpp2/mrvl_ethdev.c @@ -84,8 +84,7 @@ static const char * const valid_args[] = { static int used_hifs = MRVL_MUSDK_HIFS_RESERVED; static struct pp2_hif *hifs[RTE_MAX_LCORE]; static int used_bpools[PP2_NUM_PKT_PROC] = { - MRVL_MUSDK_BPOOLS_RESERVED, - MRVL_MUSDK_BPOOLS_RESERVED + [0 ... PP2_NUM_PKT_PROC - 1] = MRVL_MUSDK_BPOOLS_RESERVED }; struct pp2_bpool *mrvl_port_to_bpool_lookup[RTE_MAX_ETHPORTS]; -- 2.7.4