From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 888C0A046B for ; Tue, 20 Aug 2019 15:46:03 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9193C1BECF; Tue, 20 Aug 2019 15:46:01 +0200 (CEST) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id E35CF1BEBC; Tue, 20 Aug 2019 15:45:59 +0200 (CEST) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2350CA35FEF; Tue, 20 Aug 2019 13:45:59 +0000 (UTC) Received: from dmarchan.remote.csb (ovpn-204-32.brq.redhat.com [10.40.204.32]) by smtp.corp.redhat.com (Postfix) with ESMTP id 982F560C18; Tue, 20 Aug 2019 13:45:55 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: ian.stokes@intel.com, i.maximets@samsung.com, stable@dpdk.org, Adrien Mazarguil , Thomas Monjalon , Ferruh Yigit , Andrew Rybchenko Date: Tue, 20 Aug 2019 15:45:03 +0200 Message-Id: <1566308703-23381-1-git-send-email-david.marchand@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.68]); Tue, 20 Aug 2019 13:45:59 +0000 (UTC) Subject: [dpdk-dev] [PATCH] ethdev: fix endian annotation for spi item 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" spi should be set with network endian values. While 0xffffffff == htonl(0xffffffff), this missing annotation is caught by sparse when compiling ovs (dpdk-latest branch). Fixes: d4b684f7197a ("net: add ESP header to generic flow steering") Cc: stable@dpdk.org Signed-off-by: David Marchand --- lib/librte_ethdev/rte_flow.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_ethdev/rte_flow.h b/lib/librte_ethdev/rte_flow.h index b66bf14..354cb1d 100644 --- a/lib/librte_ethdev/rte_flow.h +++ b/lib/librte_ethdev/rte_flow.h @@ -935,7 +935,7 @@ struct rte_flow_item_esp { #ifndef __cplusplus static const struct rte_flow_item_esp rte_flow_item_esp_mask = { .hdr = { - .spi = 0xffffffff, + .spi = RTE_BE32(0xffffffff), }, }; #endif -- 1.8.3.1