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 0079CA0093; Wed, 20 May 2020 16:06:00 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C05691C2A3; Wed, 20 May 2020 16:05:59 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 8472D1C295; Wed, 20 May 2020 16:05:57 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 04KE0Wft031781; Wed, 20 May 2020 07:05:56 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pfpt0818; bh=rSd3KMeuB6bwQxEs41TCaWNIKF/gNGf8awmY3+bE73M=; b=L6GciuBI19ieAbBvOng3W+gOrGSJGM4MVAh6ws28y4/cjTvkD7beJ2iaCicHS2v39PXC //57z7VYqRwIJI2wKP94eHyY5NWtHM03molnRmWRNHA8BCO3rbF6Zpd0tmPyaCh4joak pvuvQOZ1GLaVlONPuokxh5u7TW+FXtBMQZONLVROJGFFby5b91OT1L4Ks1fbVRa+EGaP LfqjGTNpKNR8p+iXZkOFnVNOwt+Q9AWUarZ6tuWgYOjNFR9aWBR6kv0ijSoIbzs5ewHy Gawm478cfu1wz8xBeF5MrN24cwBbrg+q7WjiwF+YGhqPSJd2Es8AICCcJGriDtdpu1wl wQ== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0a-0016f401.pphosted.com with ESMTP id 312dhqs843-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 20 May 2020 07:05:56 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 20 May 2020 07:05:55 -0700 Received: from SC-EXCH02.marvell.com (10.93.176.82) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 20 May 2020 07:05:54 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.169) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Wed, 20 May 2020 07:05:54 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bN73q+10A39hiym7lECfM5rNypFV+/he+PKxXY0wCveo+i63Ial2YCcOBNTWdI4T+B/2UA8e158JbqF3YHzyJRRO7kqzOIm2ylmMrm6LJjHdL1J4g7fSMUyye0fM4qE43JjJUcW38O1ecVN74bBCjKag1neDu5OKxXfOiKiufJK+U3j7ANXWtDrGFEq+VnqL4aOAE/rkpJ96SWoCcJMalkbCEp3KfyheaPEBXghixccrT+G1e/i3AwNhK0sGCcXtAuVm4tYguNfkExM1iDrQHUCg1CIYv3VH5R05DwGhCxZKyZ7YVbJ0Y5Oww8HK4TBQrDcqYhqnFlUGID/4PK9mGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rSd3KMeuB6bwQxEs41TCaWNIKF/gNGf8awmY3+bE73M=; b=GS4qECef2Bpa1Su/qcdYeXaHA+Vd+frAu3pU0fS4e7063nRb2nng6RjdCtxEBHGD0f2UjTsjoACvYOYzSoFsUIgj39Y1wJrPCrZHK8iViPwDeeo2H2QDQJRkyO3NXWMfcch1+nT/O21jRKf0G45WZJRBN/zcnQsf0t4vmgAnAu+h7f8RsXSE/UlNRIZOeaLb5UK1vFwfguGSgguh18j+W1nJSlbo1OQGIU8GZPADo3i+qEyIedI2ous27w86sPm/TvWiRguOCPsI5cEZeIZjcafzSIybliIs9ushvClVfgANUqW0m9WJaqqmaCLH0i6VRb7SErg/j+RTqXKTZc81qA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rSd3KMeuB6bwQxEs41TCaWNIKF/gNGf8awmY3+bE73M=; b=cpkoNdYDdl9BpuAgvR6prFYvzBr4RIVqITfpxZZM8gWXk5y4crIQ/4fFCoL5sUFahgy5Cp0dPlX70PFtcuZYDdWdBMWT0DC1grOKzImbkREQQPSE57WueCm3rnxQpRsvAzGHHjoEXcSGIOWTfYfOZd9ciS68Y0Wr2hlxwuPnbW8= Received: from DM5PR18MB2214.namprd18.prod.outlook.com (2603:10b6:4:b9::21) by DM5PR18MB1386.namprd18.prod.outlook.com (2603:10b6:3:bd::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.23; Wed, 20 May 2020 14:05:52 +0000 Received: from DM5PR18MB2214.namprd18.prod.outlook.com ([fe80::a18a:2341:a36c:2c41]) by DM5PR18MB2214.namprd18.prod.outlook.com ([fe80::a18a:2341:a36c:2c41%3]) with mapi id 15.20.3000.034; Wed, 20 May 2020 14:05:52 +0000 From: Liron Himi To: Thomas Monjalon , "dev@dpdk.org" CC: "david.marchand@redhat.com" , "stable@dpdk.org" , Natalie Samsonov , Tomasz Duszynski , Liron Himi Thread-Topic: [EXT] [PATCH 1/4] net/mvpp2: fix build with gcc 10 Thread-Index: AQHWLq7Ndu7Bm666vUac0s3uiQtAeqixAgMQ Date: Wed, 20 May 2020 14:05:52 +0000 Message-ID: References: <20200520135830.1178242-1-thomas@monjalon.net> <20200520135830.1178242-2-thomas@monjalon.net> In-Reply-To: <20200520135830.1178242-2-thomas@monjalon.net> Accept-Language: he-IL, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: monjalon.net; dkim=none (message not signed) header.d=none;monjalon.net; dmarc=none action=none header.from=marvell.com; x-originating-ip: [89.139.16.88] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 541e8551-80b1-4a2e-6903-08d7fcc6e806 x-ms-traffictypediagnostic: DM5PR18MB1386: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2958; x-forefront-prvs: 04097B7F7F x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: X7tQ5LV7xI83Ssd9fCyHpQuw8mwPHRUbT5SYvknjDkFOrPShpIvrx23inBWQgNuHniTqq1DoapHv4zzDTsIG43zd3PxU0FC+sxaBYiRRMyVEf7jb5kpbMe6LokCBX3OhF0WbFx/lxhO1ceqZXV1Xd/CNITDrD908tkPrUAZ185upJLWmgxxkZVfqpwUZk4oDjiLiOcMz5L46BEEn70cCRhisJVk6/xfOafUWu795qxYlvRJ5UXUf//icKMT6+XaBeTEaILkSe44lFUUcKuiOPOEcP20UoEwV+lFBocTJKvbWfC6RKbv5EW6ExADwQ2vu x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM5PR18MB2214.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(39860400002)(136003)(366004)(346002)(376002)(396003)(8936002)(9686003)(71200400001)(478600001)(55016002)(8676002)(33656002)(107886003)(66476007)(54906003)(64756008)(66556008)(66946007)(66446008)(76116006)(4326008)(316002)(53546011)(86362001)(7696005)(2906002)(186003)(5660300002)(110136005)(26005)(6506007)(52536014); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: WelFzKCegr0GTCkO+qu+NKhI0s3qNj+MokalLCrsUcXXXvszbbk5nMxR9eXtwgO3TzoEQrGGcgNGkukG9BCuCSi93wGGMS644v4UWgTrT9LCRcqX3eZrXqL9lVldCzoPjMlRMkd+xj1YSFQnJAUQpDvu0LUrZx9Y2FL6zH0Tqz+eXJ/1KzH2WKrTUaClZe18ArbSpgnU88c4JjZ72nNA4HY9Ma+cTZqAuWk4ePXY9apUGne65Dbmpr9rXmgO2l2QtiVMEky79ng8SgtkTilHxFA3C9zCWxIwjcwmc3NB73zx6JyBzgLPWX8gqir5fqW8cum4LyvvP3HvxCtS2swJjpPR+5kOubBizHMP8Ym7aDp+fBl2ph3o3CdF+w3nDCJYqnB5mLNL//JrN+2+zzpkxd9BNsGqEglr1XBDq4cPu4TLh9Wvpbjrn7yNFQsvDi4F9AcD8JbvCZ9X4oANq/z8zFn/b1dinD5NowgT0gsGgV8= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 541e8551-80b1-4a2e-6903-08d7fcc6e806 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 May 2020 14:05:52.1183 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: xcWQrfnjwHdYZPvEcWu389x15PYf2V8kUeCWEvPYdpHxUaE1OJwn7gLsOcYAmObVpIqMXja5xrBptlVIqHeOtQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR18MB1386 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216, 18.0.676 definitions=2020-05-20_09:2020-05-20, 2020-05-20 signatures=0 Subject: Re: [dpdk-dev] [EXT] [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" Acked-by: Liron Himi Regards, Liron -----Original Message----- From: Thomas Monjalon =20 Sent: Wednesday, 20 May 2020 16:58 To: dev@dpdk.org Cc: david.marchand@redhat.com; stable@dpdk.org; Liron Himi ; Natalie Samsonov ; Tomasz Duszynski Subject: [EXT] [PATCH 1/4] net/mvpp2: fix build with gcc 10 External Email ---------------------------------------------------------------------- GCC 10 is detecting the enum mismatch when assigning UDP variables with MUS= DK 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, stru= ct rte_flow *first_flow) =20 if (first_flow->pattern & F_UDP_SPORT) { key->proto_field[key->num_fields].proto =3D MV_NET_PROTO_UDP; - key->proto_field[key->num_fields].field.tcp =3D MV_NET_TCP_F_SP; + key->proto_field[key->num_fields].field.udp =3D MV_NET_UDP_F_SP; key->key_size +=3D 2; key->num_fields +=3D 1; } =20 if (first_flow->pattern & F_UDP_DPORT) { key->proto_field[key->num_fields].proto =3D MV_NET_PROTO_UDP; - key->proto_field[key->num_fields].field.udp =3D MV_NET_TCP_F_DP; + key->proto_field[key->num_fields].field.udp =3D MV_NET_UDP_F_DP; key->key_size +=3D 2; key->num_fields +=3D 1; } -- 2.26.2