From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-f65.google.com (mail-lf1-f65.google.com [209.85.167.65]) by dpdk.org (Postfix) with ESMTP id B947E5F34 for ; Fri, 24 Aug 2018 16:55:06 +0200 (CEST) Received: by mail-lf1-f65.google.com with SMTP id e23-v6so6878730lfc.13 for ; Fri, 24 Aug 2018 07:55:06 -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=bS/0QWC6i3HcHohfg+tq7ieZwVePOVIPtlt2AcdHIqoQch/Ntcs/KJMoUQuPxeTvnK 9Y7YF3IcSFam/pSHgRyl/bRhRitO+aHoOoBK3Tlfoif3EmEBVVNh5DwQHRSG0oHEF8k+ tseeWW6tDUfL+kbCghh+muK5+4nfZWJzMr30Orb+61TG+fJE+JpiY6ZeyDepy1xQMIZp I+YYzY9VmeheYPG+01Hr7UuGxn15kR+UgMhTFYWtqUxFDBH3NU4qDQzpSU94g4QaApPF CDXEGDliyFoAhu6edjhGD5OG8j2no7ZWRYhqtauk/5Rb9siTnKasA8/60Pt6aalEkou2 0aqw== 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=WCUKQRoQuH1P3e+U8KQ47pYQL9nsVFFaeOCXLyYqntlX+i+0aPwemJ7AdJk1huz/ET oWokNqWy9SMpz8wmLFlIkpODLhCJX4t6LLfNQKhpFkRqW0zL3GUW0nK+/WjJNASi2MrT yj8NC1IteO/lPHUdRcTiNUIl3+dqu8pMkO/2PhrfPhYmrCZOJRqW7zul4ASSb7c2QZp/ MoZazdAjGP+SwjDIE5HPddiCwbufafJy+SK4aC5Um1jlRBas66Lla7undENFyLI90nzr 08/Gu+Ge8883yBEpPXlq5E+rViYgje6ogq1sFABimbHsBBR3u/petKLfkc9iW75Vcyqq /4NQ== X-Gm-Message-State: APzg51BqcAm2NBMQ/XAXmmzXCYgidHfnPvUxnVrnx2YenxB0CzgliS2f KrXVk5Oh8PtnsFJucMwhELxZbXRAo94= X-Google-Smtp-Source: ANB0VdZ2+axFVKAjlnUvNm6ZRCvl95V4EhhtSufYRVbpKtOggB51DCzpXaANk9J/P98YPga/tLBRpw== X-Received: by 2002:a19:b2c8:: with SMTP id t69-v6mr1538948lfk.105.1535122506120; Fri, 24 Aug 2018 07:55:06 -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 j140-v6sm1373659lfg.16.2018.08.24.07.55.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 Aug 2018 07:55:05 -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 16:54:51 +0200 Message-Id: <1535122494-30249-4-git-send-email-tdu@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535122494-30249-1-git-send-email-tdu@semihalf.com> References: <1535113006-9393-1-git-send-email-tdu@semihalf.com> <1535122494-30249-1-git-send-email-tdu@semihalf.com> Subject: [dpdk-dev] [PATCH v2 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 14:55:07 -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