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 76ED9A0093; Wed, 20 May 2020 15:58:51 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 594471D171; Wed, 20 May 2020 15:58:49 +0200 (CEST) Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by dpdk.org (Postfix) with ESMTP id 75A231D148; Wed, 20 May 2020 15:58:47 +0200 (CEST) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 5959B1217; Wed, 20 May 2020 09:58:46 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Wed, 20 May 2020 09:58:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm1; bh=fYeX6hW+LGspE FQ6O8cqikdMHCUvUjXZVV7d+SprNpY=; b=w13fk4Rw/F7RJ3jbrDMrXaTwqMeaI 9/FqPeSczqO2ihKTjperFGpBDxUfgK2xuQ7tuG6ncaOxkYXZGnwQMrJuXO+EhZNu bOTQqyPr9TJt5JTIy5XQ8dO5/V9rAFpLeV9PBpIjgFGWMFpFOcsnM2VHNSDc/sVq P7s/0dbRSCy+Oc819/82anBiZLirAax1ilRhKEi49swgBg1SsLrukEEuJZ1Nsui4 pH2RVzLddtIxr5VNHAWCAnMM8EZVp2g7x05o4+ohLaM8hxFZa81yMmg3qOMinfgy CcMDUEwoDxVE+JREXQSlYQOdDQHo1Wbtksh43j/BLiJJw/9fWMpqFjgWQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=fYeX6hW+LGspEFQ6O8cqikdMHCUvUjXZVV7d+SprNpY=; b=vtDV7CUK TB9PhePL5Eswf17Kyj+hVS6fSnANmPcf57+2C6UkB/f2KBPMnl9ZFrNSMfg4QQYh Y1rWUDmtqY7yLda84kRUFaQp9q/lEMqSKAxOAW9ITHTqi8z2x4Illt8MtZ6Km8no jRZdu+NAwuKL7hKrZdkCkQOU+k5MJOCbEOR2thDUUdE0V1l8NM4WIuplmFVXCU77 erv+XQ/iubYY2JVQkzGiTuQx/H3l7I+0fOjOUBH0kNVXsUSd/EDfOCGZfH8IZ1aS R/c4pRcf8GZhUtSlW6ncbHOd78QjbnpalveWeABlt88916aebBmeYjIy7WTzjMj0 b6SJYbY5nfezkg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedruddtledgieelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg ftrfgrthhtvghrnhepvdehgfeivdejgedtveehfefhteelfefgieevgfffveefjeegtdfg uedthedtgeevnecukfhppeejjedrudefgedrvddtfedrudekgeenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghl ohhnrdhnvght X-ME-Proxy: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id EBC5E3066446; Wed, 20 May 2020 09:58:44 -0400 (EDT) From: Thomas Monjalon To: dev@dpdk.org Cc: david.marchand@redhat.com, stable@dpdk.org, Liron Himi , Natalie Samsonov , Tomasz Duszynski Date: Wed, 20 May 2020 15:58:27 +0200 Message-Id: <20200520135830.1178242-2-thomas@monjalon.net> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200520135830.1178242-1-thomas@monjalon.net> References: <20200520135830.1178242-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 1/4] net/mvpp2: fix build with gcc 10 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" GCC 10 is detecting the enum mismatch when assigning UDP variables with MUSDK constants for TCP. Fixes: 7235341d7517 ("net/mrvl: support classifier") Cc: stable@dpdk.org Signed-off-by: Thomas Monjalon --- drivers/net/mvpp2/mrvl_flow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/mvpp2/mrvl_flow.c b/drivers/net/mvpp2/mrvl_flow.c index 381b54e291..ea43255284 100644 --- a/drivers/net/mvpp2/mrvl_flow.c +++ b/drivers/net/mvpp2/mrvl_flow.c @@ -2511,14 +2511,14 @@ mrvl_create_cls_table(struct rte_eth_dev *dev, struct rte_flow *first_flow) if (first_flow->pattern & F_UDP_SPORT) { key->proto_field[key->num_fields].proto = MV_NET_PROTO_UDP; - key->proto_field[key->num_fields].field.tcp = MV_NET_TCP_F_SP; + key->proto_field[key->num_fields].field.udp = MV_NET_UDP_F_SP; key->key_size += 2; key->num_fields += 1; } if (first_flow->pattern & F_UDP_DPORT) { key->proto_field[key->num_fields].proto = MV_NET_PROTO_UDP; - key->proto_field[key->num_fields].field.udp = MV_NET_TCP_F_DP; + key->proto_field[key->num_fields].field.udp = MV_NET_UDP_F_DP; key->key_size += 2; key->num_fields += 1; } -- 2.26.2