From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 941BEA09E4; Thu, 22 Apr 2021 12:17:37 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 82D9C41CF7; Thu, 22 Apr 2021 12:17:37 +0200 (CEST) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2062.outbound.protection.outlook.com [40.107.236.62]) by mails.dpdk.org (Postfix) with ESMTP id 845F841CEE for ; Thu, 22 Apr 2021 12:17:36 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Tgwl++7TDpERpu8Ux2kYWaM04g8S5Q06kx4RN3bIagmWZBBI1XuX1dM0ECcpIBq9aIM7SlQIhVwtGuBnMYC02yMcWIHwZyWGwgR8S6R2bYFGQ1jjLBVxkcwc5P1XDw7VUnier/gop4PvNJnHYEVs6Ky8qLiHI7mwWs6FfhsJb993ywAArixvjyaLy1qUwPfb4PDRm609lGxdoHdOFEYvfrKJPTYXdaZjGrR+nzf+Wg8Cb1TbJU3Xev/qri1EFtE59HgzoQUSMezXgBmqsY2NmaIRyKqEWG2fF/EnxbBeERs1uL1uZ75/b9HB0wfne948zX6BvxFz9nj4aNEFV5ugXw== 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=3B7UCIp7NzRaeE2YN2FJeJU1ClbTK/7w04HY/Xf1I5I=; b=M4sb+11+36wgOmaqin661bPihWOOnenOmebrI3JDlMsCVSYB7xZSf/b/qxHm3EPL2ubyo3v1/84QOL/fu0yoPnjg+ScN+lw9r1upUGrpHlpD1TQ/uw4/OUl5TKcJrbKn3AupdISlAl0gZIrDuFMU3uklLcfbYE5zPZFrEdQ9cF7I8Pw+ZG9wWFwsF4swdtVfWMqbNPThfxQXMTgtAKSVuYCB+76ZRtXCsMtZpNfXH5m4+9ORWu4ooDaVMWgVx/312FruptH7H5wOP/2Bn1nJ30KsW3JwVsUucEEbb/TqSXDf/UsLCOdxGRXNZi4XzvTBQYgOpis6je7zyg3p6pZieQ== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3B7UCIp7NzRaeE2YN2FJeJU1ClbTK/7w04HY/Xf1I5I=; b=US4JjTqLQ11UfcNrHsZRssPZf6dSqOKdQuorchGnwPPV+q0S58iARj8NO5R1AuygXA3BNHHRnVewFieU6Aw6GMzMPrC/ilDSH1hG8E5KF7fbGE9kKMaQli1cM9xQyOc9yuHlz2iyuihxbh9bO4ngV0/6hjU+z9OfmcBo/mSGTYstCQVavPOFfGvWXHsLjukGpQVSjJd2JbzqQlJZzrw+SoREvi3NTsJNWZmAhCIhZ67w8Bqc657YGwaSxY5QuwyRbsWZaES55zsStsYvG0H4hr3/2u8BzE8Ph6hqch9a7m9jP3QAUG1v8ryPwSL/iq85NOESWH2tUeGbnAGKSY5kqQ== Received: from BYAPR12MB2824.namprd12.prod.outlook.com (2603:10b6:a03:97::10) by BY5PR12MB4115.namprd12.prod.outlook.com (2603:10b6:a03:20f::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.22; Thu, 22 Apr 2021 10:17:35 +0000 Received: from BYAPR12MB2824.namprd12.prod.outlook.com ([fe80::2d91:5745:468a:191d]) by BYAPR12MB2824.namprd12.prod.outlook.com ([fe80::2d91:5745:468a:191d%6]) with mapi id 15.20.4042.024; Thu, 22 Apr 2021 10:17:35 +0000 From: Odi Assli To: Tal Shnaiderman , "dev@dpdk.org" CC: NBU-Contact-Thomas Monjalon , Matan Azrad , Raslan Darawsheh , Asaf Penso Thread-Topic: [PATCH 2/3] common/mlx5: read checksum capability from DevX Thread-Index: AQHXNsxOLFMA1z848Ui+8X5fJrxFkKrAU8YQ Date: Thu, 22 Apr 2021 10:17:35 +0000 Message-ID: References: <20210421163441.17240-1-talshn@nvidia.com> <20210421163441.17240-3-talshn@nvidia.com> In-Reply-To: <20210421163441.17240-3-talshn@nvidia.com> Accept-Language: en-GB, 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: [31.210.177.255] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: def02d57-2c71-4c54-3233-08d90577d965 x-ms-traffictypediagnostic: BY5PR12MB4115: 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:2887; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: O5l25e4gYW1t683/UOmPGRB836l+9TXYJQZ2PJbp+6bKxsw/R6pjTRLTlo+IkTq9o7kGVToH73WUV5UejTR+gFVQmXBO3omCXeFXt07G+FkNlOLL3Ni5YQkFm17g7w8sm9laCIPBy7aNg+ow6Unt/yTcNhDg9grzrmSnGRRr6OFrk5QcxQU/mYJLUPTjzaYqJUFzzRtwcC76uURoL41Mx9Kjj6ORCCh/JgPUrThPKa3+/EQhwNJMd1DiWmpGo+beEJXZqfrhWw2GfjBrfGXUquSIPkA0LaIIy/r8jKx3QzSDmGi66BdOMGcSqu4u6KOmIVVa1PUV8s8C15CDS+3qSCb4zXCsPGDHl24otInBuaA1jIHhqI0xyE6kL5mqqa5F5iGb7RGg7skOtB/ZriwgN1K/9ebxGDMirIw0K+tsiHXTxrqwNc4nMKxC3JdUQoBvgOv3+Wm4uH4ffta6ColVTtUTasb6BPO9PNHp9t9nKUYHiD+c2romsHqg8hI2baEf+/8Uj04dZNxXrh/Ty41AZBs1Di7LM40P8JYwUyRoPJVv7oMPPhiW8DAsd7QXN6/2yLPEnLuGusEC7CH58ZB18UMAOSfdMRW9k4bKmdRYhYw= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR12MB2824.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(346002)(136003)(39860400002)(366004)(396003)(6506007)(86362001)(186003)(66476007)(5660300002)(66446008)(64756008)(66556008)(52536014)(9686003)(7696005)(55016002)(478600001)(66946007)(26005)(76116006)(2906002)(8936002)(33656002)(38100700002)(71200400001)(54906003)(316002)(110136005)(8676002)(4326008)(122000001)(107886003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?ccATPjw0m51haIspksUkFfC7f4awpsyfOgxhw+D+mUXrt/VMRWcLTmo2m50W?= =?us-ascii?Q?E6miyWYMi2m1IxbONrxgw6X2sxuzQqG8S+HMZywprhB4GqUi3aJ/gRaS/w/h?= =?us-ascii?Q?6Vh0yTzUlMwdLAPGWz0+WvXDkUlNlRc+f4bxVsa2VHQol9xFhB1FRlJE/czh?= =?us-ascii?Q?GL5TrcraxsfSt0qBLp/XUfQZm1y2RAJw65SmZo8hXP2NNnh0E0UrgrdtlvNp?= =?us-ascii?Q?pUlOQWqj1p351iey6K51g+HNnwk8jeKYJV/oiVTENoA4lMpDHqbMMD+tJalL?= =?us-ascii?Q?K9JWJSQ3+SiuzKG4J6l6oCqWJXOAz/o4emSf01080yzQqe14HffUn6n7Gcng?= =?us-ascii?Q?+Nui5TxgOUJu/9hZ/eINPrivE+eOaYffqiFs2gaOhCrB5QJ0poUFvpZVtzHZ?= =?us-ascii?Q?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ugH5D2CvDiTQVliTZftmj?= =?us-ascii?Q?ljFzTjSZBLa36kQ1d/X8/N/V?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR12MB2824.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: def02d57-2c71-4c54-3233-08d90577d965 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Apr 2021 10:17:35.3292 (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: PZ/ndnPZ2DMHDuYYTk4FkXa1oRd/uBTUdwyaLFjjq4k7yIL7MxMKr6xvu+oFsm3F X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB4115 Subject: Re: [dpdk-dev] [PATCH 2/3] common/mlx5: read checksum capability from DevX X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" > Subject: [PATCH 2/3] common/mlx5: read checksum capability from DevX >=20 > mlx5 in Windows needs the hca capability csum_cap to query the NIC for > checksum offloading support >=20 > Added the capability as part of the capabilities queried by the PMD using > DevX. >=20 > Signed-off-by: Tal Shnaiderman > Acked-by: Matan Azrad > --- > drivers/common/mlx5/mlx5_devx_cmds.c | 2 ++ > drivers/common/mlx5/mlx5_devx_cmds.h | 1 + > 2 files changed, 3 insertions(+) >=20 > diff --git a/drivers/common/mlx5/mlx5_devx_cmds.c > b/drivers/common/mlx5/mlx5_devx_cmds.c > index 268bcd0d99..d2e4ab33a2 100644 > --- a/drivers/common/mlx5/mlx5_devx_cmds.c > +++ b/drivers/common/mlx5/mlx5_devx_cmds.c > @@ -837,6 +837,8 @@ mlx5_devx_cmd_query_hca_attr(void *ctx, > hcattr =3D MLX5_ADDR_OF(query_hca_cap_out, out, capability); > attr->wqe_vlan_insert =3D > MLX5_GET(per_protocol_networking_offload_caps, > hcattr, wqe_vlan_insert); > + attr->csum_cap =3D > MLX5_GET(per_protocol_networking_offload_caps, > + hcattr, csum_cap); > attr->lro_cap =3D MLX5_GET(per_protocol_networking_offload_caps, > hcattr, > lro_cap); > attr->tunnel_lro_gre =3D > MLX5_GET(per_protocol_networking_offload_caps, > diff --git a/drivers/common/mlx5/mlx5_devx_cmds.h > b/drivers/common/mlx5/mlx5_devx_cmds.h > index 67b5f771c6..1fb9130e51 100644 > --- a/drivers/common/mlx5/mlx5_devx_cmds.h > +++ b/drivers/common/mlx5/mlx5_devx_cmds.h > @@ -92,6 +92,7 @@ struct mlx5_hca_attr { > uint32_t eth_net_offloads:1; > uint32_t eth_virt:1; > uint32_t wqe_vlan_insert:1; > + uint32_t csum_cap:1; > uint32_t wqe_inline_mode:2; > uint32_t vport_inline_mode:3; > uint32_t tunnel_stateless_geneve_rx:1; > -- > 2.16.1.windows.4 Tested-by: Odi Assli