From patchwork Thu Aug 15 19:46:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Saeed Mahameed X-Patchwork-Id: 11096405 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A46E213A0 for ; Thu, 15 Aug 2019 19:46:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 96D7128998 for ; Thu, 15 Aug 2019 19:46:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8838E2899C; Thu, 15 Aug 2019 19:46:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6A0B228998 for ; Thu, 15 Aug 2019 19:46:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730859AbfHOTqW (ORCPT ); Thu, 15 Aug 2019 15:46:22 -0400 Received: from mail-eopbgr30083.outbound.protection.outlook.com ([40.107.3.83]:39650 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728128AbfHOTqW (ORCPT ); Thu, 15 Aug 2019 15:46:22 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iYC0SOqO58NQv80nHnTNJALNsXCs7RcL3R4yONDtaax8AHAOlBVql6iwFj26/cXx2cLzyKgDREAVnf8bFeiMpIL3MsWJ+xEyJ2l5lZ/6GEiA4pCgv3+NHUXDfYePQWVhULRHdQ54mhIjoLXhdFJc4/oET/nKbMf5KM7JmJMl1aE/EgtlYGx7c6XeJW04OMXP89OXM0hWzT9iSoo9Pe9YHU6hS2WmK6OvkBpyNSjrZ5EfAlLDtWqKX5PcEm7QtYdOLNLd1RTwZDi0Q5MvXScmbGKukdMILjR+bzLzbHgllF1j6rM3PWV5WKkvzv7oevefkRa9WuUVH/Cwm66BiJBcdQ== 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=BtvBMMBkplldhVGdqqddT0GP2k24jm4oPhmPy3zm2XQ=; b=Vz82PYYbaDO3CFK1xXSsdUZrX6sGOLtOez9jZhIahLj7OuRbfzS4HgUDpqNvRcFuinxMm6TAo0SNeohTob9z3Na2b8taj9GzW0HQH9bw7lVPj8UIvCN7Y3TjzJrYTJ9cvF4Ne+qDlr5V2K74oCA3XLsio6qOI4J3815WEVi9/P3r2a62XwwnWbkvKjrNkWs4R8zlSMo+58DEkr9YaaQrh2XM1UofhfwsMphOpTXPzjax9Or5Gbzk3Pp8RVpIxqEoMnTguIN52vAO6r9CjRuhx9Z3chh7E0Zq4qdIUUaLM/zquU0w7ZQIzuwe1NsJjkOsAYDqVoZR/5gurGvZI+FeuQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BtvBMMBkplldhVGdqqddT0GP2k24jm4oPhmPy3zm2XQ=; b=Sdui/K+aOM69ZU2H5SHhLFi/yh93+CnGnPrXr+nOxR797e7lTRS+AAZAqOqqzgTQEqVmUNKErDE1UEjs4AMIPxd1UyEEljIrsJUkmlYVUYchPv1n2SAk9vLT8ATaK/zfCnVMpFqDuo4MpBM6LlR/CPrtqBxeb8q9PppFWtmFi9E= Received: from DB6PR0501MB2759.eurprd05.prod.outlook.com (10.172.227.7) by DB6PR0501MB2759.eurprd05.prod.outlook.com (10.172.227.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2178.16; Thu, 15 Aug 2019 19:46:08 +0000 Received: from DB6PR0501MB2759.eurprd05.prod.outlook.com ([fe80::3c28:c77d:55b0:15b2]) by DB6PR0501MB2759.eurprd05.prod.outlook.com ([fe80::3c28:c77d:55b0:15b2%5]) with mapi id 15.20.2178.016; Thu, 15 Aug 2019 19:46:08 +0000 From: Saeed Mahameed To: Saeed Mahameed , Leon Romanovsky CC: "netdev@vger.kernel.org" , "linux-rdma@vger.kernel.org" Subject: [PATCH mlx5-next 1/5] net/mlx5: Add missing include file to lib/crypto.c Thread-Topic: [PATCH mlx5-next 1/5] net/mlx5: Add missing include file to lib/crypto.c Thread-Index: AQHVU6IVaP0LILAx+0OZsGxE0rVD/A== Date: Thu, 15 Aug 2019 19:46:08 +0000 Message-ID: <20190815194543.14369-2-saeedm@mellanox.com> References: <20190815194543.14369-1-saeedm@mellanox.com> In-Reply-To: <20190815194543.14369-1-saeedm@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.21.0 x-originating-ip: [209.116.155.178] x-clientproxiedby: BYAPR03CA0031.namprd03.prod.outlook.com (2603:10b6:a02:a8::44) To DB6PR0501MB2759.eurprd05.prod.outlook.com (2603:10a6:4:84::7) authentication-results: spf=none (sender IP is ) smtp.mailfrom=saeedm@mellanox.com; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f2931ec2-4a5a-4ea8-9726-08d721b93759 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:DB6PR0501MB2759; x-ms-traffictypediagnostic: DB6PR0501MB2759: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:538; x-forefront-prvs: 01304918F3 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(136003)(39860400002)(346002)(366004)(396003)(376002)(199004)(189003)(5660300002)(25786009)(7736002)(110136005)(14454004)(66476007)(66556008)(64756008)(66446008)(2906002)(305945005)(54906003)(6486002)(316002)(66946007)(14444005)(256004)(6636002)(76176011)(478600001)(1076003)(52116002)(99286004)(3846002)(2616005)(102836004)(6512007)(6116002)(6436002)(6506007)(386003)(4326008)(36756003)(186003)(26005)(8676002)(81156014)(81166006)(71200400001)(86362001)(66066001)(50226002)(11346002)(446003)(53936002)(450100002)(8936002)(476003)(71190400001)(486006);DIR:OUT;SFP:1101;SCL:1;SRVR:DB6PR0501MB2759;H:DB6PR0501MB2759.eurprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: EihiefiYFWbQ17X4xAC/4RACjNJ6UCgz7EcOqHIFsz+vmq9ujQvOEZhmYeeAynqmB7B+z/yUBwgK1QFzMzH3jzOT49T3w43ZqYBfMSB4rMIcvqOFPKP3J3/R5sLMNpTD4u/E2RnwSqcwS3b88/6zCpdsgQgfrbuIf/hVGD3gRHQnVOjP3p2o9ctJEI2dlYEiIgd7FaVMMk3i6fffowL9joyCxmssfSB43KNUDQc170OuZH4yRoYgCOIOGj7QqS1b22A4g/aDuilRAQqWtICIQgfabWfILT1w37I6vVbfL1PJEOG0rkNCxDiXQn5rrWSMHkvRFoGt9QxZZkBb96nG4yc9AHZdg+rc9yyxof8UjDVfmEDymBkmGy8kN/KupcbFmNtuQIjIOr0ykwwHh35JENDhDUMUFV16ZdIWLTMWR8M= Content-ID: <94A0DBE8CCE44E4CA4C249FFCA2FE01F@eurprd05.prod.outlook.com> MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: f2931ec2-4a5a-4ea8-9726-08d721b93759 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Aug 2019 19:46:08.1977 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 3iJTCbGZ6aM8ZL37HhHfk+AnTFN4FIyPGrAZ8F92P1fnpw1xurWg79NVDj1+fUv6o5k5cd1ruEACmgd1diTKFg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0501MB2759 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add missing include file to avoid compiler warnings: drivers/net/ethernet/mellanox/mlx5/core//lib/crypto.c:6:5: warning: no previous prototype for ‘mlx5_create_encryption_key’ 6 | int mlx5_create_encryption_key(struct mlx5_core_dev *mdev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/mellanox/mlx5/core//lib/crypto.c:60:6: warning: no previous prototype for ‘mlx5_destroy_encryption_key’ 60 | void mlx5_destroy_encryption_key(struct mlx5_core_dev *mdev, ... Fixes: 45d3b55dc665 ("net/mlx5: Add crypto library to support create/destroy encryption key") Signed-off-by: Saeed Mahameed --- drivers/net/ethernet/mellanox/mlx5/core/lib/crypto.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/lib/crypto.c b/drivers/net/ethernet/mellanox/mlx5/core/lib/crypto.c index ea9ee88491e5..22bc45c831d2 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/lib/crypto.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/lib/crypto.c @@ -2,6 +2,7 @@ // Copyright (c) 2019 Mellanox Technologies. #include "mlx5_core.h" +#include "lib/mlx5.h" int mlx5_create_encryption_key(struct mlx5_core_dev *mdev, void *key, u32 sz_bytes, From patchwork Thu Aug 15 19:46:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saeed Mahameed X-Patchwork-Id: 11096413 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 163575700 for ; Thu, 15 Aug 2019 19:46:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 090C428998 for ; Thu, 15 Aug 2019 19:46:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F19652899C; Thu, 15 Aug 2019 19:46:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8E9D628999 for ; Thu, 15 Aug 2019 19:46:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731730AbfHOTq0 (ORCPT ); Thu, 15 Aug 2019 15:46:26 -0400 Received: from mail-eopbgr30083.outbound.protection.outlook.com ([40.107.3.83]:39650 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726865AbfHOTqY (ORCPT ); Thu, 15 Aug 2019 15:46:24 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=U8lsCio4S/D3YR9CBVG5li5REHpof7SS/JTcu4X2Oa5PmFGGANPJhP+ZJTJnVQMIW20Cxrd4cIrJEmBJKj2AohiU39cu6pVlyYf7MLHeXbvPXP2KUqEcrKjimRgwiqTTiIozEFygoslieVwSyOblD0GQx3LLdMtOXW9mggJsAP6sPR9N6V+VPWD7qqz65sqSUFJegkP2VLfQhGmqFecoN4FZg61geK07sm2oqHFNkxpfwGd6DkIS6G5GFSFhWqu93pUNegOfOHZA9jeA8OyOp++yWwq9U8sOdlNBc3tkcXo4D0zPj7hMIMgNfEH5y5DHh1IM3pNyYcoMb/cCD7eulg== 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=TlY/r5hsQIngbkewnoULg+6Xid6HvNNnyVheigOmuHM=; b=TTjZ6x5poDa69LRLuDmvnoMem+S0AweckERgcWXuyH/kmvBGnPu5/fBMNT42Kfo67a6eewSAAkNlZukt2faKW4pD6v5IMZyHZSrgDl/XzHZvu7g70SpPthpcCBva8OZA1jd3+FJiZaJdLi4ib+mE1zyAXcslNeQYyS19fHLHu5h4I5XGyA+YrBSG+1d9Htnmjuj/RkHzIVku71jyew70i6NFZkK+8ls3ePRrD5QrhsSHbvx8MkygrGoHWmvqt3cx83kteBzzTbakEOZqQGY3vKxuFOSQFJUfpnhfV+qM2PorwsIZ7QAYRjq//3u1x5Di1BK2TsZRnAih1U1clI1nkQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TlY/r5hsQIngbkewnoULg+6Xid6HvNNnyVheigOmuHM=; b=Nw86v7ERU9+Vt6f4EjFiL5v0fCJfFqybGkL0gR/2+DLyysaC3kb3+vDWOAzHm/y38u2ZgDLK4bK8Maj6bTJ9tLq3NDDfB4c0HYFkMLyaTmnZ91eGcg1JTv61MLeEIlQyLqGKHFXrOPYOD2Z5AiAjL2OSGDuphZBCTqEVs5mB0xM= Received: from DB6PR0501MB2759.eurprd05.prod.outlook.com (10.172.227.7) by DB6PR0501MB2759.eurprd05.prod.outlook.com (10.172.227.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2178.16; Thu, 15 Aug 2019 19:46:16 +0000 Received: from DB6PR0501MB2759.eurprd05.prod.outlook.com ([fe80::3c28:c77d:55b0:15b2]) by DB6PR0501MB2759.eurprd05.prod.outlook.com ([fe80::3c28:c77d:55b0:15b2%5]) with mapi id 15.20.2178.016; Thu, 15 Aug 2019 19:46:16 +0000 From: Saeed Mahameed To: Saeed Mahameed , Leon Romanovsky CC: "netdev@vger.kernel.org" , "linux-rdma@vger.kernel.org" Subject: [PATCH mlx5-next 2/5] net/mlx5: Improve functions documentation Thread-Topic: [PATCH mlx5-next 2/5] net/mlx5: Improve functions documentation Thread-Index: AQHVU6IWym9ok89PuUSo5KPVSHYOiA== Date: Thu, 15 Aug 2019 19:46:09 +0000 Message-ID: <20190815194543.14369-3-saeedm@mellanox.com> References: <20190815194543.14369-1-saeedm@mellanox.com> In-Reply-To: <20190815194543.14369-1-saeedm@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.21.0 x-originating-ip: [209.116.155.178] x-clientproxiedby: BYAPR03CA0031.namprd03.prod.outlook.com (2603:10b6:a02:a8::44) To DB6PR0501MB2759.eurprd05.prod.outlook.com (2603:10a6:4:84::7) authentication-results: spf=none (sender IP is ) smtp.mailfrom=saeedm@mellanox.com; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 6732dba7-7a30-43a5-d8bd-08d721b9389d x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:DB6PR0501MB2759; x-ms-traffictypediagnostic: DB6PR0501MB2759: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-forefront-prvs: 01304918F3 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(136003)(39860400002)(346002)(366004)(396003)(376002)(199004)(189003)(5660300002)(25786009)(7736002)(110136005)(14454004)(66476007)(66556008)(64756008)(66446008)(2906002)(305945005)(54906003)(6486002)(316002)(66946007)(14444005)(256004)(6636002)(76176011)(478600001)(1076003)(52116002)(99286004)(3846002)(2616005)(102836004)(6512007)(6116002)(6436002)(6506007)(386003)(4326008)(36756003)(186003)(26005)(8676002)(81156014)(81166006)(71200400001)(86362001)(66066001)(50226002)(11346002)(446003)(53936002)(6666004)(450100002)(8936002)(476003)(71190400001)(486006);DIR:OUT;SFP:1101;SCL:1;SRVR:DB6PR0501MB2759;H:DB6PR0501MB2759.eurprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: Mz0pBYG5yx2pHIHbllFp4QqXV4XhwGVLqu6fT2dZId7nqwJDXdcFtfipie6idh7nkJbRR1Ir9wrlRuMVUDEznV/NqiDN0taKXOy8zxyuDY+7dAueV+ae4yLrODe3R8+U96iaBkMbEFG0YSbuhRidiP1Rqr/q96dtjsTCs8QLPOrqFN7yzEP18RTPN+gpYoz8UHncQ+QPnPW1We0+b78J3qN6qgLSR8cyHQD2kgmCA1fBxpghj7QgurYjzBwXEJ02sYMyiRq9cPBrUuff6mm+5hbkkEdT+UCsNzB/6XIv/0RfuqT7fTX3YwW6RnBips61tHad7u654Hv+iqJZj1OZ1uuP+AISzj7kGE2U09qx+w3mDdpPBb/r4yrWGfRce16yubFoGbs0hBqk5OUrljBEtExsGQFYexr0jOFkBH78JDk= MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6732dba7-7a30-43a5-d8bd-08d721b9389d X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Aug 2019 19:46:09.9939 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 43yp0sX7RhXIT1Lqpso/33NWlWg83jZh2cN1Jq8bd9671k0IrNmvdUzTd7zGNuEvq1ssnG5bWH48xJJaA1lhMg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0501MB2759 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fix documentation of mlx5_eq_enable/disable to cleanup compiler warnings. drivers/net/ethernet/mellanox/mlx5/core//eq.c:334: warning: Function parameter or member 'dev' not described in 'mlx5_eq_enable' warning: Function parameter or member 'eq' not described in 'mlx5_eq_enable' warning: Function parameter or member 'nb' not described in 'mlx5_eq_enable' drivers/net/ethernet/mellanox/mlx5/core//eq.c:355: warning: Function parameter or member 'dev' not described in 'mlx5_eq_disable' warning: Function parameter or member 'eq' not described in 'mlx5_eq_disable' warning: Function parameter or member 'nb' not described in 'mlx5_eq_disable' Signed-off-by: Saeed Mahameed --- drivers/net/ethernet/mellanox/mlx5/core/eq.c | 22 ++++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eq.c b/drivers/net/ethernet/mellanox/mlx5/core/eq.c index 2df9aaa421c6..a0e78ab64618 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/eq.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/eq.c @@ -324,10 +324,13 @@ create_map_eq(struct mlx5_core_dev *dev, struct mlx5_eq *eq, /** * mlx5_eq_enable - Enable EQ for receiving EQEs - * @dev - Device which owns the eq - * @eq - EQ to enable - * @nb - notifier call block - * mlx5_eq_enable - must be called after EQ is created in device. + * @dev : Device which owns the eq + * @eq : EQ to enable + * @nb : Notifier call block + * + * Must be called after EQ is created in device. + * + * @return: 0 if no error */ int mlx5_eq_enable(struct mlx5_core_dev *dev, struct mlx5_eq *eq, struct notifier_block *nb) @@ -344,11 +347,12 @@ int mlx5_eq_enable(struct mlx5_core_dev *dev, struct mlx5_eq *eq, EXPORT_SYMBOL(mlx5_eq_enable); /** - * mlx5_eq_disable - Enable EQ for receiving EQEs - * @dev - Device which owns the eq - * @eq - EQ to disable - * @nb - notifier call block - * mlx5_eq_disable - must be called before EQ is destroyed. + * mlx5_eq_disable - Disable EQ for receiving EQEs + * @dev : Device which owns the eq + * @eq : EQ to disable + * @nb : Notifier call block + * + * Must be called before EQ is destroyed. */ void mlx5_eq_disable(struct mlx5_core_dev *dev, struct mlx5_eq *eq, struct notifier_block *nb) From patchwork Thu Aug 15 19:46:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saeed Mahameed X-Patchwork-Id: 11096409 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BFB9756FF for ; Thu, 15 Aug 2019 19:46:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B181D28998 for ; Thu, 15 Aug 2019 19:46:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A54BB2899C; Thu, 15 Aug 2019 19:46:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 46EF828998 for ; Thu, 15 Aug 2019 19:46:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733165AbfHOTq3 (ORCPT ); Thu, 15 Aug 2019 15:46:29 -0400 Received: from mail-eopbgr70050.outbound.protection.outlook.com ([40.107.7.50]:51424 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729779AbfHOTq2 (ORCPT ); Thu, 15 Aug 2019 15:46:28 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ikPfZfLIDUEC4Kcwy7v2zigY4TAdDiQ7N5PghaKY72N67+bsPu1lpYDGKsTCsTOLNJtE0YDeHQDBxuOaVxh28TsL1bX6WT8aIQTVvQEDHzkFJ3UwH0kKhao2LL/O/lY7upDmvTpDEBMevtZ0I1S00sriNedtLq5NCMqACbvB2Os+5fR7j1EhJBw9O5M2nXLTzuhRZo0Q/EMlGnMUXH45Y1jsYv5jf61EtiO9V7XUvdfHe6A+U6C5vDd/hrVxz7Xo2wwabsn9y5+hv9ENUjzdHvkRGMrBJZPDujyheSxCE3neEI/B2kgOUg23g2PDg1M6LDP56DaQaLXrVHkxBmzQRQ== 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=dDyEgUKyvrx8sdtnnrqJD8uiwHNukYUrjhxxfNlAfkM=; b=lnuwC37BuQ65C6l6EVecdWzRGarnb8n4WZRhoYKN4HY1QUNYBZGCB73D1rp83dh5gbV9w90wmnkZkJcB9U++JdTfthNKpZui+hhdgO0hJREmTBnpvZoJd1XNNSsXCCYUNYikZ6HDfTEho0GwQwMpR2yux4jMSLSB71KRUufoHL1TASznhZ6kJ8XcH3BNVgUIVfcEr0Y8xVJZy9C9/dMWbTDhEOtBNvASMWaHJGz8ySU5rn6aqyMP9pzuhMPBs4yxMePRr/PL2UE8zfpHgKQwbDHU/EdIrNyDbZ3QJKaZVOKh5lH/AfI3wwtXNc0rTRj70iV9capdVtFNDe0e/rI7+Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dDyEgUKyvrx8sdtnnrqJD8uiwHNukYUrjhxxfNlAfkM=; b=G7vIMYyRgd50lJrVAATEb3jDIVbz/6pzSnPxDDh6Q1Vkv5K7wkg1sxjHzVFdnaYkHHZBvTx2S1P4vgo+eWaOjpxmXSQAdi3PzJ4wftMstRQglVnMHx+CzSWWrYvOvj4OAaj9ZKwKS/qAlw9dLKER+hZGXAHxZQqTFjXOMm2LwMA= Received: from DB6PR0501MB2759.eurprd05.prod.outlook.com (10.172.227.7) by DB6PR0501MB2693.eurprd05.prod.outlook.com (10.172.226.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2157.20; Thu, 15 Aug 2019 19:46:17 +0000 Received: from DB6PR0501MB2759.eurprd05.prod.outlook.com ([fe80::3c28:c77d:55b0:15b2]) by DB6PR0501MB2759.eurprd05.prod.outlook.com ([fe80::3c28:c77d:55b0:15b2%5]) with mapi id 15.20.2178.016; Thu, 15 Aug 2019 19:46:17 +0000 From: Saeed Mahameed To: Saeed Mahameed , Leon Romanovsky CC: "netdev@vger.kernel.org" , "linux-rdma@vger.kernel.org" , Moshe Shemesh Subject: [PATCH mlx5-next 3/5] net/mlx5: Add support for VNIC_ENV internal rq counter Thread-Topic: [PATCH mlx5-next 3/5] net/mlx5: Add support for VNIC_ENV internal rq counter Thread-Index: AQHVU6IXPC8L13wJmEq6DAsJL/7KVQ== Date: Thu, 15 Aug 2019 19:46:11 +0000 Message-ID: <20190815194543.14369-4-saeedm@mellanox.com> References: <20190815194543.14369-1-saeedm@mellanox.com> In-Reply-To: <20190815194543.14369-1-saeedm@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.21.0 x-originating-ip: [209.116.155.178] x-clientproxiedby: BYAPR03CA0031.namprd03.prod.outlook.com (2603:10b6:a02:a8::44) To DB6PR0501MB2759.eurprd05.prod.outlook.com (2603:10a6:4:84::7) authentication-results: spf=none (sender IP is ) smtp.mailfrom=saeedm@mellanox.com; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 4096c19e-7d90-453f-3b01-08d721b939a7 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:DB6PR0501MB2693; x-ms-traffictypediagnostic: DB6PR0501MB2693: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6108; x-forefront-prvs: 01304918F3 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(39860400002)(346002)(366004)(136003)(396003)(376002)(199004)(189003)(478600001)(64756008)(6506007)(186003)(102836004)(476003)(66556008)(26005)(14454004)(66446008)(86362001)(2906002)(25786009)(66476007)(66946007)(3846002)(4326008)(6486002)(6116002)(6636002)(76176011)(386003)(450100002)(53936002)(66066001)(107886003)(5660300002)(1076003)(71190400001)(8676002)(71200400001)(256004)(486006)(54906003)(6666004)(81156014)(8936002)(6512007)(99286004)(36756003)(305945005)(50226002)(52116002)(316002)(6436002)(110136005)(11346002)(446003)(7736002)(2616005)(81166006);DIR:OUT;SFP:1101;SCL:1;SRVR:DB6PR0501MB2693;H:DB6PR0501MB2759.eurprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: eNV867H7Lz4hHsxypuoPAqSudFEwhiOGL7sLVNW+YEVNApEhUkNHyXFlPNVPiJagndZH+sqPn9pLjw2K21uAq9UioCYF+AzHffYzlzmJHphuHgyC7aSA+TzsQDQgsfGaHjYly4G/YZylperxIFAJwnSnaVkkdRsBPkhqvPLhGm1Kr6zu9WxoefIyLS74LC3DjDagggZo4KovMngDA8JER9R9Nab2koDvSt1tuU9J9LzxkApQh8I1UVVDUyUMKakkUT7ak1ufl3bASYXWRYIaRV/N74fUQtLUhF9OCNmpdl+CbMBjV+FYXpCNcUN8ZeyxEuzv2PqRqETdJbmEt5VrxWz1fxbM/WGf2GjXoZ5JK0OAyWor/Mn+EFrxyKRrudKuvpc806B47BxbN7svD58pv98FmDBNpioXW6zZiQtp/7w= MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4096c19e-7d90-453f-3b01-08d721b939a7 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Aug 2019 19:46:11.9800 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: i1451xr5Jwjw/d/uPsJoXtPzFltl1gVQsgto8JJMGhb80jgsqZxVmITxMDTg17j8EUrJrIm4chyHfm+WJd3Vcg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0501MB2693 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Moshe Shemesh Add mlx5 interface support for reading internal rq out of buffer counter as part of QUERY_VNIC_ENV command. The command is used by the driver to query vnic diagnostic statistics from FW. Signed-off-by: Moshe Shemesh Signed-off-by: Saeed Mahameed --- include/linux/mlx5/mlx5_ifc.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h index ab6ae723aae6..c788f895b350 100644 --- a/include/linux/mlx5/mlx5_ifc.h +++ b/include/linux/mlx5/mlx5_ifc.h @@ -1116,7 +1116,9 @@ struct mlx5_ifc_cmd_hca_cap_bits { u8 cache_line_128byte[0x1]; u8 reserved_at_165[0x4]; u8 rts2rts_qp_counters_set_id[0x1]; - u8 reserved_at_16a[0x5]; + u8 reserved_at_16a[0x2]; + u8 vnic_env_int_rq_oob[0x1]; + u8 reserved_at_16d[0x2]; u8 qcam_reg[0x1]; u8 gid_table_size[0x10]; @@ -2772,7 +2774,11 @@ struct mlx5_ifc_vnic_diagnostic_statistics_bits { u8 transmit_discard_vport_down[0x40]; - u8 reserved_at_140[0xec0]; + u8 reserved_at_140[0xa0]; + + u8 internal_rq_out_of_buffer[0x20]; + + u8 reserved_at_200[0xe00]; }; struct mlx5_ifc_traffic_counter_bits { From patchwork Thu Aug 15 19:46:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saeed Mahameed X-Patchwork-Id: 11096407 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A1EDD17E2 for ; Thu, 15 Aug 2019 19:46:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 91BBF28998 for ; Thu, 15 Aug 2019 19:46:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 84B162899C; Thu, 15 Aug 2019 19:46:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1E61928998 for ; Thu, 15 Aug 2019 19:46:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730988AbfHOTqW (ORCPT ); Thu, 15 Aug 2019 15:46:22 -0400 Received: from mail-eopbgr70050.outbound.protection.outlook.com ([40.107.7.50]:51424 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729779AbfHOTqW (ORCPT ); Thu, 15 Aug 2019 15:46:22 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gmEOnrhxjVpJEy56gz/vVtCStxvbcPZzn8k37UBNxpDtiontGOu7SThg4Dyd4AMMFBQqBOyRIEZROtu7L9tWrTH4JNlcj967YMae3yO2Pw/5leT5ZyE1vTr4co8eE0EfnKgdk7frWRC5IEq2jzWZq8azbKkOJye8eKRHhqv4R8HXzWbg0ZaMyNG00+DxamkAKFjUnjJeFOTLLE2ipOPV11F00pLj4UJZFo5RdZrcXHjA54cpU77cFnyO8tzonOEXKgr310P3t1FYE0pm4C6NbGktB5wq++16FCqpQAdooREOO5NRdDgb4/j8bpTkjFuuR/Z6XiplUgu4bGaVNnk5tg== 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=06vtXuPF/djEz/D41R63/YfAUVxOXfSdGM/EZCVTLrw=; b=PNzWvdWyPUv28+h6wlEQHuj3dLP5YChh+Xx55EC2uMlYsn6qsL1W5Gz6kBZiIgSIF8hncB+EDqVF6PzJqwAs2cqsP4HQZDAXDPcSqhZwdGARpNjlvpX2+E6sBod5DZf7D+Wd8Mm5Cq2rk6mS34p00SW6p9Tgi/8uIanUfOq1v9/+fgqn2zeEbrIMAGNjiVKMhv/a+lETmiJ7gM4WwDB579n85RB7hDZCff3R0wZCnrO86ByUJnH5gi/kXaEBPs4d88+YIvCAHZZtaWW98MJJMvV7S9I3cmaKFH8+Ci91vIXAqeDeZtKCTYj8sn4tB6i3PkRGNvKYZHGSRGJVyJ1HiA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=06vtXuPF/djEz/D41R63/YfAUVxOXfSdGM/EZCVTLrw=; b=q7auQ8Hl8C93SY5DOMkAwiKWFiFxSizLctbHXchJtwSDp14xifM4SiEcvMmv01Dix+T8jcW2Z25IzDwhXhxUQhHQml8jbAWet4i9ZrG+XCL8SNcJx7s0oJHXb/ISnxePGVGOwhaAEDcMWhkLI8tYmhr7en+TA0GRl2OxgT4CXJo= Received: from DB6PR0501MB2759.eurprd05.prod.outlook.com (10.172.227.7) by DB6PR0501MB2693.eurprd05.prod.outlook.com (10.172.226.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2157.20; Thu, 15 Aug 2019 19:46:17 +0000 Received: from DB6PR0501MB2759.eurprd05.prod.outlook.com ([fe80::3c28:c77d:55b0:15b2]) by DB6PR0501MB2759.eurprd05.prod.outlook.com ([fe80::3c28:c77d:55b0:15b2%5]) with mapi id 15.20.2178.016; Thu, 15 Aug 2019 19:46:17 +0000 From: Saeed Mahameed To: Saeed Mahameed , Leon Romanovsky CC: "netdev@vger.kernel.org" , "linux-rdma@vger.kernel.org" , Aya Levin , Tariq Toukan Subject: [PATCH mlx5-next 4/5] net/mlx5: Expose IP-in-IP capability bit Thread-Topic: [PATCH mlx5-next 4/5] net/mlx5: Expose IP-in-IP capability bit Thread-Index: AQHVU6IYa6/crw8iskuKL1DPeIpvgQ== Date: Thu, 15 Aug 2019 19:46:14 +0000 Message-ID: <20190815194543.14369-5-saeedm@mellanox.com> References: <20190815194543.14369-1-saeedm@mellanox.com> In-Reply-To: <20190815194543.14369-1-saeedm@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.21.0 x-originating-ip: [209.116.155.178] x-clientproxiedby: BYAPR03CA0031.namprd03.prod.outlook.com (2603:10b6:a02:a8::44) To DB6PR0501MB2759.eurprd05.prod.outlook.com (2603:10a6:4:84::7) authentication-results: spf=none (sender IP is ) smtp.mailfrom=saeedm@mellanox.com; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 1889b687-da92-4655-50d2-08d721b93af6 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:DB6PR0501MB2693; x-ms-traffictypediagnostic: DB6PR0501MB2693: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2582; x-forefront-prvs: 01304918F3 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(39860400002)(346002)(366004)(136003)(396003)(376002)(199004)(189003)(478600001)(64756008)(6506007)(186003)(102836004)(476003)(66556008)(26005)(14454004)(66446008)(86362001)(2906002)(25786009)(66476007)(66946007)(3846002)(4326008)(6486002)(6116002)(6636002)(76176011)(386003)(450100002)(53936002)(66066001)(107886003)(5660300002)(1076003)(71190400001)(8676002)(71200400001)(256004)(486006)(4744005)(54906003)(6666004)(81156014)(8936002)(6512007)(14444005)(99286004)(36756003)(305945005)(50226002)(52116002)(316002)(6436002)(110136005)(11346002)(446003)(7736002)(2616005)(81166006);DIR:OUT;SFP:1101;SCL:1;SRVR:DB6PR0501MB2693;H:DB6PR0501MB2759.eurprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: y42W0y6ATO3kqm1lTYD25W8InBNtNpQK5kIpsOA+GxoblMK0EtW6S0VFf+a+oAhDe4xttCz+83ObYzFB+BXrvsqFlU2agsLzESm3mTSb5mofEXfFHBluJYrECR8bRGMo3ogLTFBpGqMkHwaGcZOh0bogko5EHvXNUlJq9zlKJqsky8N9WE0Z3q5t4t8wPQ/DMGgbwSmRW7ODNlycKXzMkmRicu7WFJQzsdnhykyvd6bQMIiLbseiTixz8ZPFyRw8NVNvsJHz5t3F43IkOAaoKikEWjj+614yDHvrgD9+IGrQ09+GgHw1WbtAr/1a+k5VZ/t4D9RdwFHrFUP08Fwrr7SkKx2IbEv6ubeo4kkWRuG31ZkLJX9QEcUTXgJma+rH8L4VdF1Z2J/6FwJ2kh3AkYp9X60Re59KhdjUdip18N8= MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1889b687-da92-4655-50d2-08d721b93af6 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Aug 2019 19:46:14.1300 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: lPRkO296nlxV3WNp0cDP4Jpcj7BTFMqKT91Af5RKOl/WXzyOnvZt+f0YkusJdpBjyOTI8BTFRTA7jkBVFpD7+w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0501MB2693 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Aya Levin Expose Fw indication that it supports Stateless Offloads for IP over IP tunneled packets. The following offloads are supported for the inner packets: RSS, RX & TX Checksum Offloads, LSO and Flow Steering. Signed-off-by: Aya Levin Reviewed-by: Tariq Toukan Signed-off-by: Saeed Mahameed --- include/linux/mlx5/mlx5_ifc.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h index c788f895b350..2837fe4d8901 100644 --- a/include/linux/mlx5/mlx5_ifc.h +++ b/include/linux/mlx5/mlx5_ifc.h @@ -808,7 +808,9 @@ struct mlx5_ifc_per_protocol_networking_offload_caps_bits { u8 swp_csum[0x1]; u8 swp_lso[0x1]; u8 cqe_checksum_full[0x1]; - u8 reserved_at_24[0xc]; + u8 reserved_at_24[0x5]; + u8 tunnel_stateless_ip_over_ip[0x1]; + u8 reserved_at_2a[0x6]; u8 max_vxlan_udp_ports[0x8]; u8 reserved_at_38[0x6]; u8 max_geneve_opt_len[0x1]; From patchwork Thu Aug 15 19:46:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saeed Mahameed X-Patchwork-Id: 11096411 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E72061395 for ; Thu, 15 Aug 2019 19:46:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D4B6128998 for ; Thu, 15 Aug 2019 19:46:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C86812899D; Thu, 15 Aug 2019 19:46:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5FC4228998 for ; Thu, 15 Aug 2019 19:46:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731246AbfHOTq0 (ORCPT ); Thu, 15 Aug 2019 15:46:26 -0400 Received: from mail-eopbgr70050.outbound.protection.outlook.com ([40.107.7.50]:51424 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730512AbfHOTqY (ORCPT ); Thu, 15 Aug 2019 15:46:24 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ofCeXoeV225OZKwvfv1I6oO/ZfVfo6gkcnR1Zjg9g0Yl0Ov6bCrTRcOGIcmQ7TyptLO64Hkajb4IPMClV4ww76nnNvFlS5G1PT/ZH48XuBdMk0URPwPzqnadX+KAX8iQPDHIP87QNvT6BH2KH2L2OA6U5lmMHjfuMtjbklV9ddpFdb+uWrEyS+ot7q1ZDW3et1DuPODM5CIHBIvJ2hH83WPqeTv/5HM0SCRWtJLt1QZ5+JOPK7WqPUDos0LBVRoqaJ1lpMXVED774ZG5VxsKUyngtHaCRfZPr5EsfpQo5MxLaYiwJ5mMXmngac1cuRYKRvAcMS8eozoqUgfl0dHMMg== 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=CidwOrsOu+w6kLp8klJ1vS5Hc5Tw22ZxCTZ0akY4lD0=; b=RX3x3nnyBn7c8gHSjvStmHgy0vhmR+e4tZFwqMHWY0ZCw4p239iXTbUR2FD6Ck5GP+56DDAoDKBFXW7cWcku0aTTgObKZKEvnrrxZ+OdnUWfE+VKY8YDv5xvKm97DUUAKoS3Su6V/QaILXvhfdeKnYbwp2WqQoATnzzacQAlPohetxbSHSLkmTApS9C+cc5eFt4qZf0qDVVm3hGf1tn45hnowUz5KpcpFyDNU2miAmvnhzctatz3od/qwMzyoIubXUlnhNftbNi5c6cNicbsUbalVGkkZVYH8GNUik96ntxwgTS8EFTWluz2DZO1SGn4M+twvLVkuMb70gOMz9qKVw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CidwOrsOu+w6kLp8klJ1vS5Hc5Tw22ZxCTZ0akY4lD0=; b=MTa9ShUtBM0r07LeLgqLvt73Gf9gJ/Z+fZmH0wKCtAF5rIEIVeO9d7bf2v5bE47SGBzN2ujR2yNmEeThJdhTsWYWeers3fTClTLzUUMGQbTVgGHdW1bKlF0M9I8FNNY61LCWtA8nbZi1Q3+bbakcZy0oBA4I20JGrgOBupcYfL0= Received: from DB6PR0501MB2759.eurprd05.prod.outlook.com (10.172.227.7) by DB6PR0501MB2693.eurprd05.prod.outlook.com (10.172.226.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2157.20; Thu, 15 Aug 2019 19:46:18 +0000 Received: from DB6PR0501MB2759.eurprd05.prod.outlook.com ([fe80::3c28:c77d:55b0:15b2]) by DB6PR0501MB2759.eurprd05.prod.outlook.com ([fe80::3c28:c77d:55b0:15b2%5]) with mapi id 15.20.2178.016; Thu, 15 Aug 2019 19:46:18 +0000 From: Saeed Mahameed To: Saeed Mahameed , Leon Romanovsky CC: "netdev@vger.kernel.org" , "linux-rdma@vger.kernel.org" , Maxim Mikityanskiy , Tariq Toukan Subject: [PATCH mlx5-next 5/5] net/mlx5: Add lag_tx_port_affinity capability bit Thread-Topic: [PATCH mlx5-next 5/5] net/mlx5: Add lag_tx_port_affinity capability bit Thread-Index: AQHVU6IZ2DBFYXeURUSMsyX/55btkg== Date: Thu, 15 Aug 2019 19:46:16 +0000 Message-ID: <20190815194543.14369-6-saeedm@mellanox.com> References: <20190815194543.14369-1-saeedm@mellanox.com> In-Reply-To: <20190815194543.14369-1-saeedm@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.21.0 x-originating-ip: [209.116.155.178] x-clientproxiedby: BYAPR03CA0031.namprd03.prod.outlook.com (2603:10b6:a02:a8::44) To DB6PR0501MB2759.eurprd05.prod.outlook.com (2603:10a6:4:84::7) authentication-results: spf=none (sender IP is ) smtp.mailfrom=saeedm@mellanox.com; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 6a2567fd-fc9d-4e9e-c6bb-08d721b93c34 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:DB6PR0501MB2693; x-ms-traffictypediagnostic: DB6PR0501MB2693: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1013; x-forefront-prvs: 01304918F3 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(39860400002)(346002)(366004)(136003)(396003)(376002)(199004)(189003)(478600001)(64756008)(6506007)(186003)(102836004)(476003)(66556008)(26005)(14454004)(66446008)(86362001)(2906002)(25786009)(66476007)(66946007)(3846002)(4326008)(6486002)(6116002)(6636002)(76176011)(386003)(450100002)(53936002)(66066001)(107886003)(5660300002)(1076003)(71190400001)(8676002)(71200400001)(256004)(486006)(4744005)(54906003)(81156014)(8936002)(6512007)(14444005)(99286004)(36756003)(305945005)(50226002)(52116002)(316002)(6436002)(110136005)(11346002)(446003)(7736002)(2616005)(81166006);DIR:OUT;SFP:1101;SCL:1;SRVR:DB6PR0501MB2693;H:DB6PR0501MB2759.eurprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: HJzQDcNwWWb4lWvT2D4ceunkAURdWuuWmydLQ5lC7Qf/vp8LssCaRNl8o1/sWGu2h9Ssm60B1JjRdokgQiov4eOaXVIJdpq7m2I0PpbcgG1E+TafHbumJzJ4sXniSKx3vql3VchU/wNK1PVm+aH7c0mamSo5PoiOUeZiYWnDJGedKLxV7kjZIEiXgqw2lBfjBWJVdK4RfVJtw4BteFTvPKyhGCy2YtC6UQRGgpbMQj5dW6uEEhpKVyW+1CBQrXznFcqgicqNUG4SbHQocX5GQGt2C1L05V3/VLpygxDP539mCUIhfboAOWJsYmVASzHp4Dnd2PYydaJh88DpPMlLPf9w/LQ3Y7t1mGQ+x2uxVgWMqCd8DGLj9DRL6dllO6u4yjUTSi/rEMno9UztirfPBrmsZuUeUM9LFZVeKsfC8/U= MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6a2567fd-fc9d-4e9e-c6bb-08d721b93c34 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Aug 2019 19:46:16.1841 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: IiEly1amo/XRudzrQNeMexLoF9jOay2G/NpDQDLTHCvr/AmuPWO/5V0Kk7LcrYfTGHaay86LARh3BRXc22JLUw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0501MB2693 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Maxim Mikityanskiy Add the lag_tx_port_affinity HCA capability bit that indicates that setting port affinity of TISes is supported. Signed-off-by: Maxim Mikityanskiy Reviewed-by: Tariq Toukan Signed-off-by: Saeed Mahameed --- include/linux/mlx5/mlx5_ifc.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h index 2837fe4d8901..1e55cf73e88c 100644 --- a/include/linux/mlx5/mlx5_ifc.h +++ b/include/linux/mlx5/mlx5_ifc.h @@ -1249,7 +1249,9 @@ struct mlx5_ifc_cmd_hca_cap_bits { u8 reserved_at_263[0x8]; u8 log_bf_reg_size[0x5]; - u8 reserved_at_270[0xb]; + u8 reserved_at_270[0x8]; + u8 lag_tx_port_affinity[0x1]; + u8 reserved_at_279[0x2]; u8 lag_master[0x1]; u8 num_lag_ports[0x4];