From patchwork Wed May 13 05:48:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nithin Dabilpuram X-Patchwork-Id: 70142 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 507E9A034F; Wed, 13 May 2020 07:48:25 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EAB471C1B1; Wed, 13 May 2020 07:48:24 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id E18031C138 for ; Wed, 13 May 2020 07:48:23 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 04D5lMwa006831; Tue, 12 May 2020 22:48:23 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=pfpt0818; bh=iEM6rx/R0dvH2q4Q7Nt7mG8gQTJhDoA92ngM7uO+x/k=; b=C2aZU9eSghLo7eRRyhVUKIVH6HTfwG9RxF+qffbSyfj3kMXohOmNn3TZC1XkSa24VljL zFWIgFMCxvfGWSjwYjsSPxGludAtg/q4bzHLBsdUPl2JpVunASQ7mMHvbyCr4rGtsMhU IxFqjxvrfIKwKLGmi3fTbmZ9o5eX+JS8KAqn8VAbM7zrchFcef5cElQ8fJEt9avsBu19 Po8Mmb49/hKQIOWhp9DGAZ4bh2vpjQaEFuJjBYFsm31yABmkD53JSMvrEZoaugHPQcWA a15MidWtRwFluAb+w+Lkezyxp53SPa+y8QJiMI5J20KSDJLQm6yHfWX0tf9zzSE8CZq1 0Q== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0b-0016f401.pphosted.com with ESMTP id 3100xjtwdb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 12 May 2020 22:48:23 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 12 May 2020 22:48:21 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 12 May 2020 22:48:21 -0700 Received: from hyd1588t430.marvell.com (unknown [10.29.52.204]) by maili.marvell.com (Postfix) with ESMTP id 02B4F3F703F; Tue, 12 May 2020 22:48:18 -0700 (PDT) From: Nithin Dabilpuram To: , , , Nithin Dabilpuram , Pavan Nikhilesh CC: Date: Wed, 13 May 2020 11:18:16 +0530 Message-ID: <20200513054816.18848-1-ndabilpuram@marvell.com> X-Mailer: git-send-email 2.8.4 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216, 18.0.676 definitions=2020-05-13_01:2020-05-11, 2020-05-13 signatures=0 Subject: [dpdk-dev] [PATCH] node: fix arm64 build issue for older gcc 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" Older GCC(~4) complains about uninitialized 'dip' var though all the lanes of the vec register are set. Hence this patch explicitly initializes vec register to fix the issue. Fixes: 16df6a2c6671 ("node: add IPv4 lookup for arm64") Signed-off-by: Nithin Dabilpuram Reviewed-by: Ruifeng Wang --- lib/librte_node/ip4_lookup_neon.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_node/ip4_lookup_neon.h b/lib/librte_node/ip4_lookup_neon.h index bb3150f..dd21cb2 100644 --- a/lib/librte_node/ip4_lookup_neon.h +++ b/lib/librte_node/ip4_lookup_neon.h @@ -45,6 +45,7 @@ ip4_lookup_node_process(struct rte_graph *graph, struct rte_node *node, rte_prefetch0(rte_pktmbuf_mtod_offset(pkts[i], void *, sizeof(struct rte_ether_hdr))); + dip = vdupq_n_s32(0); /* Get stream for the speculated next node */ to_next = rte_node_next_stream_get(graph, node, next_index, nb_objs); while (n_left_from >= 4) {