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 A8ECDA04DC; Sun, 22 Nov 2020 14:00:15 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8D11E72DF; Sun, 22 Nov 2020 14:00:14 +0100 (CET) Received: from nat-hk.nvidia.com (nat-hk.nvidia.com [203.18.50.4]) by dpdk.org (Postfix) with ESMTP id EC4C9FFA; Sun, 22 Nov 2020 14:00:11 +0100 (CET) Received: from HKMAIL104.nvidia.com (Not Verified[10.18.92.77]) by nat-hk.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Sun, 22 Nov 2020 21:00:10 +0800 Received: from HKMAIL103.nvidia.com (10.18.16.12) by HKMAIL104.nvidia.com (10.18.16.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Sun, 22 Nov 2020 13:00:10 +0000 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.41) by HKMAIL103.nvidia.com (10.18.16.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Sun, 22 Nov 2020 13:00:10 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hF0nlpUGz/c57oa5dfqHff+cOjMipTK9xVN+zd3EwqZt1NJ/m9muDo12K5qxjJ2Z9MFBgMjUE42RLxr6pQmMfdNorT1YL5HITe7Otpv9Hru34hrRseydylHKmHr1AkjkMCNBkPwACccH8r4D8sQvKOKPbpk1TkT8xc+NfRUAEZUbR+qa+Oxn9uN0y8LBSdNOZhnLQGymijJ60peSEe+IN7umKkyPgEdm94X6QISsTuWczAB1fmssZgLMFndj9hmxJqLreyetnG5+2PSyuDb0+luNRynRKFmBrJVq/pX5J2v96hoMksNBOlYUmtJ3MypJgzLlf+h8//91LUGZVlnpRg== 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=H/oNq4WZ+T7UiNlyfTvE2NZerEeO01gNY6z1ySvteGM=; b=Q/rw/+RSjl/zzfDnnItJ7oO9ZnazWQdFG3pN3whDhZnOKI0b0Xtm+MIy0iv8Wj38Orj6Jng9gb58ly6Ij9jtS1rY/qgT3Qjxps+5IKpmhyqxYLr1430V6PKUBkrysfVqGEYgRlUV/J3h2FHZGLqnm/eFZbqqnogycboRJv2pOgxU26/hXnmn2HqmS2YtkZJCYphicjv8WCgVxU/BGqWPdJW8GSqVuVf9VMWBox/DBE4o6xjSd41VQcsjxFgtmzMgq+GwDVnQZTeA5VPk5ajQh5vRdmy1Xnzh92F5Q/rOtbtisPeN+FLPCvt7dcxcUWta8TJTBJtTEbWcNtlRj+WGOA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none Received: from DM6PR12MB2748.namprd12.prod.outlook.com (2603:10b6:5:43::28) by DM6PR12MB3532.namprd12.prod.outlook.com (2603:10b6:5:182::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3589.20; Sun, 22 Nov 2020 13:00:08 +0000 Received: from DM6PR12MB2748.namprd12.prod.outlook.com ([fe80::759a:fb10:c6af:87a3]) by DM6PR12MB2748.namprd12.prod.outlook.com ([fe80::759a:fb10:c6af:87a3%7]) with mapi id 15.20.3589.029; Sun, 22 Nov 2020 13:00:08 +0000 From: Raslan Darawsheh To: Slava Ovsiienko , "dev@dpdk.org" CC: Matan Azrad , Ori Kam , NBU-Contact-Thomas Monjalon , "xiangxia.m.yue@gmail.com" , "stable@dpdk.org" Thread-Topic: [PATCH v3] net/mlx5: check the reg available for metadata action Thread-Index: AQHWv0w2PjivVWiwO0Gnw0i2pgpTIqnUIBlA Date: Sun, 22 Nov 2020 13:00:07 +0000 Message-ID: References: <20200524110641.72147-1-xiangxia.m.yue@gmail.com> <1605883683-11576-1-git-send-email-viacheslavo@nvidia.com> In-Reply-To: <1605883683-11576-1-git-send-email-viacheslavo@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [188.161.230.205] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 759be6da-9876-4aa4-a03e-08d88ee68a04 x-ms-traffictypediagnostic: DM6PR12MB3532: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4714; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: QSUKMmgt1/NTNm/GmLZRirV6ZvVVrMFLTNALO/0ajV2H8tGrSyNzSscAXH7SubHLnmaVCYH4ATemt1UhnnWkZS7q63I9auwXvyY4cZfnl/XF7Qa1c9XCrwMpo2S3n4ZpIVI0/zCNJIZzEwhGklDpeBlRf1+6wtgwOwPrtvsCizeE/fG3LdNEzeauqexFCdbqEIL1N6tDU5cOXDjgLp/f5CdsMyeklU8CEFS+wjD+ozjK97A0zjkPklNkiUtOovHJ/SbxpMwVEk2VxXHx6stPE74WMoBkODrkMeAhXDi4VBpXmOPhFyyKzB7JYW3Fkjdhxjkx8CE5PmrokhAuxyMRsZeJ86IK5wk9PRa2c6cDs2HomL6j4cn/zoJ23/FHKVJe x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR12MB2748.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(366004)(39850400004)(396003)(346002)(376002)(316002)(478600001)(186003)(66446008)(26005)(55016002)(110136005)(66556008)(4326008)(71200400001)(8936002)(66946007)(8676002)(5660300002)(2906002)(76116006)(54906003)(64756008)(66476007)(9686003)(7696005)(33656002)(6506007)(86362001)(53546011)(52536014)(83380400001)(131093003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: QA5eqn1QJhMvYSjs3h1ggulIY11I8kO44z5BI1FTXQ9m745aMd1JN5/v9N8ZWJ1CkQ5D69B7CrwxpNy+yAKOO8eK47HrAQYqAURgRzF+zSIncakWu4jxcpnCbvy/g5LS0+Msmadu36G5vuI3aMiKYQs03sCnVazyzLvPFsr+byISgeQQ0gEYshwj9MkiA4y1k+D08o3OsOD2iPreJCIqGiOp6dxFovVrB5E3dA4PkNa2NeUP4S6tnT9lj/xXz26BkzQx3hcDrYG+aAU1NsmHMgObrANpxXKwDfC2+eQAz58vOcCreK3cNd8EfowVLHPv79vARITem7xR1ndy5C24+MISoAFgVZ/uxp4MwcsfzFCZc7fgLH7BqcOvGQiSsWS/T8kCzTux4N1IWeI2PYG9kfw9K4Sub8SIaE/HcY2lMTMS8MkQHmLFmU1yg0VkAQOejb5f6zOCgM5yHRx6n6Ctz9tGsANTxIelKIWjtycFd9937FXuov+6wmLgrxc+GehmxOyPU5kAHn5m3BPy2RZqldCVNuI7I3N1Nh2NCE5W5ifh4JuuKVPhQFn6Rjdh+mSLfufHZiKC/JmuouGTaEUFZUd4Sx8jEZpUEaSYxY6/LQmCrS+zCm4ZyD2+z8KQaAE/9jHm9fKLbqoFbdHZhYrA8q9tCVnf6HJSaAZgdBFOdRa+7rtTLPZHUywUSqv/9gaYjgh0gaMGzg+gg3yKV6v81m4vIsvrVbyIm5joqLATxEeuED0EoADSeawrP75GVhFtzIX8vp4aPpt4hrpm9O/JBS0CfYrFhp9eQKkgpirX0MA186PCgTjWXXEzsSo/kCx8+9nZyOJiR9xoS7rIDeRQK/u6zML137eDQzuXdKwbUVyy4hxa68ixE4B33LsmU1ddaEo+8aPQcqkBqLXVFja7pg== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB2748.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 759be6da-9876-4aa4-a03e-08d88ee68a04 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Nov 2020 13:00:08.1346 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Jxna/r79x97zsUtJtRWOiUwYLrdOtmE/YHX528Lang/5zUxhlUyszLfbnT8VdhJpg6bsoYX+t7knUifZh7uLaA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3532 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1606050010; bh=H/oNq4WZ+T7UiNlyfTvE2NZerEeO01gNY6z1ySvteGM=; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To: CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References: In-Reply-To:Accept-Language:Content-Language:X-MS-Has-Attach: X-MS-TNEF-Correlator:authentication-results:x-originating-ip: x-ms-publictraffictype:x-ms-office365-filtering-correlation-id: x-ms-traffictypediagnostic:x-ld-processed: x-ms-exchange-transport-forked:x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers:x-ms-exchange-senderadcheck: x-microsoft-antispam:x-microsoft-antispam-message-info: x-forefront-antispam-report:x-ms-exchange-antispam-messagedata: Content-Type:Content-Transfer-Encoding:MIME-Version: X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-AuthSource: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-originalarrivaltime: X-MS-Exchange-CrossTenant-fromentityheader: X-MS-Exchange-CrossTenant-id:X-MS-Exchange-CrossTenant-mailboxtype: X-MS-Exchange-CrossTenant-userprincipalname: X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-OriginatorOrg; b=mhAo3owIjobzYS46Rj3UnG/+a3Anabg71TCgTccYQR+6/vi/1/CrKEyt3t93oTD6K 11+R7N4xngfSGZGCYUp4zsuYKLcg5TbeUMCj1bbYZdHCg7p8iZJ/yza2/0t3LTp9BH 4IdgH7v5y9x3v6MKlD1JV0pF/xNSApnii5ijSm3SeRjZ1YftC1mVniM7AcuyBCx3bW BJR8u2Z2X/Uw3EZZIakuIIAf7InyW7BHq1mGKDJ6AYZGqCGxre0/kLu58s6XbcI8tp zhUL2qgKHF4oY1/OTI3PS7CzlFYERMK+pKQ2S4/55qFcIsKeSmGq7/bX/NM30dIi9Y 16QE0X5A1if3w== Subject: Re: [dpdk-dev] [PATCH v3] net/mlx5: check the reg available for metadata action 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" Hi, > -----Original Message----- > From: Viacheslav Ovsiienko > Sent: Friday, November 20, 2020 4:48 PM > To: dev@dpdk.org > Cc: Raslan Darawsheh ; Matan Azrad > ; Ori Kam ; NBU-Contact-Thomas > Monjalon ; xiangxia.m.yue@gmail.com; > stable@dpdk.org > Subject: [PATCH v3] net/mlx5: check the reg available for metadata action >=20 > From: Tonghao Zhang >=20 > If user don't set the dv_xmeta_en to 1 or 2, > in the flow_dv_convert_action_set_meta function: >=20 > - flow_dv_get_metadata_reg may return the REG_NONE, > when MLX5_METADATA_FDB enabled for metadata set action. >=20 > - reg_to_field(REG_NONE) returns MLX5_MODI_OUT_NONE, > that is invalid and rdma-core fails. >=20 > The rdma-core calltrace: > dr_action_create_modify_action > dr_actions_convert_modify_header > dr_action_modify_sw_to_hw > dr_action_modify_sw_to_hw_set > dr_ste_get_modify_hdr_hw_field >=20 > Fixes: fcc8d2f716fd ("net/mlx5: extend flow metadata support") > Cc: stable@dpdk.org >=20 > Signed-off-by: Tonghao Zhang > Signed-off-by: Viacheslav Ovsiienko > --- Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh