From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-f195.google.com (mail-lj1-f195.google.com [209.85.208.195]) by dpdk.org (Postfix) with ESMTP id 3BB0C1B063 for ; Fri, 24 Aug 2018 20:30:29 +0200 (CEST) Received: by mail-lj1-f195.google.com with SMTP id j19-v6so7587649ljc.7 for ; Fri, 24 Aug 2018 11:30:29 -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=23B68GOIwyoN7udtt/ZpKpY/ci2wftwnQPmFE/VJp74=; b=zjQLkebxbDKaNJB7VMjrttzCYy/fsrc87aAz80lgQ+sNEbEkyb4y9ONr8/Vzgsq9yL oJAIj87K4ubA1/Gxenb/CUh1dh0eLzQxe3Ohr6A/TMdsLCKJjEAF1/mBUelE1PbE12K2 0lT7o4eAxIZ4knyt9jFPZWKCNZfhim+9SyaYVKY9jynmhbz4MVMY2/3th9hJXTswEAdj 0DGVvg1kWQhTsvWyrsp5WLjoiYl1cyMPyhKy86ca0Pfh6HTdqY6A7nMA86oyGjrzuZHE BUsEhxQAYyEWhzYfqpK0kRZBrCNPYlKO5OjUbVaysTON59NCrQ3gPNPij4GZtlYktNIp uM9g== 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=23B68GOIwyoN7udtt/ZpKpY/ci2wftwnQPmFE/VJp74=; b=miF8XZAZkwd2S4MuzEIahght37+Z15lIcGka5b+1aOrMGHZ/x55BLoI1cR66tjGJHI J4FQB7XRBytsHRunmTCDHvEeWIUNNd6rpmgeqYb5YZXOUmtnZU3DKPAp4k8646JIDv2z mO1AvhelZ9xdC7QXi+gJ1dyzAnaUIM03hel3fh3hVTqyYlgCDJ5e8QG11w+HHY6LZPat j2nba5QJsuYXdxR0CIjL0ZxKfD7wlzmjuxT0EnBrhxNxti+Bn2kBNhvx4AHaz7veL49z oO6mU518YD8EzK924ly6haIzIDqBVlT/rJhirLq9O9wv+l6S0uHPVk5oYLV9y8RS80Vj 83lQ== X-Gm-Message-State: APzg51CwVn9dz9ISI/bY4pBRadfWOfrpQZFBJu4bfG45dq+On+6CCOy8 cv/WFTSbmzJo8QsmGidxcdx34aCgf7c= X-Google-Smtp-Source: ANB0VdYZ8T1s3B41F+C9K5ardBlpNzxab8PPW0Mqn9b9r0mHNFc0mchCYRoXKAGzF72MKI0RuFeCYg== X-Received: by 2002:a2e:99c3:: with SMTP id l3-v6mr2262231ljj.48.1535135428745; Fri, 24 Aug 2018 11:30:28 -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 g16-v6sm1420484lfb.5.2018.08.24.11.30.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 Aug 2018 11:30:27 -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 20:30:00 +0200 Message-Id: <1535135403-16115-4-git-send-email-tdu@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535135403-16115-1-git-send-email-tdu@semihalf.com> References: <1535122494-30249-1-git-send-email-tdu@semihalf.com> <1535135403-16115-1-git-send-email-tdu@semihalf.com> Subject: [dpdk-dev] [PATCH v3 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 18:30:29 -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 8e1a32f..fdf416b 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