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 B4D88A0548; Thu, 4 Nov 2021 12:27:08 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7CAD041144; Thu, 4 Nov 2021 12:27:08 +0100 (CET) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2073.outbound.protection.outlook.com [40.107.92.73]) by mails.dpdk.org (Postfix) with ESMTP id 6CCD340DFD for ; Thu, 4 Nov 2021 12:27:06 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=I1zl12JqeHYYWPPVBYqmNmdRMRy8AnwNIdP7ooVWBT/smM8zIdLtdKs4LUmy7wjDlNJ7L/5GQvaGV0evap21ajDbmyzYAoaPhaEWvXWMAf+v/4NPKRrU8IFODQs2glAo0D/wFoFI9AvosKTEgw1wzXLWhwBnCHyS/sn4Ggvbq1Ck1kQtEotdf53KwgflwIDDYO2//Uw3/rUzRDveYdmNfHc7/mYGUvyZQIFXEYgmvC0DRXJB7xKUo9F8sfWC/AR2KLUPgP0fT6btL6P5Bf+dkGVey1+2+ES1Fd6O7BNYE0hKdn14Oc3oWsPOE884GDdlr4uFBRC6pvK3bCMGGva5gw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=0J2KPwviFSQoAuW/dCgtLfLLs+Vv8+CtkVoaFb6WG20=; b=irk4LjIdZMOFZuhUG6n2COWoJ4XNd7hWp+6huo/DgFraSxVA4HNBupy+oNGSSXSxAA8irK1g+3XeXyHcKQx0nnwObVGGmTEKZE2zFEBSh4zaJJASkvZ6Pz/ro8mY46qfXh93j0njBvIsR2trdIhZwAjeT88sj405glXVzKZAqcA7lMW0LAKW4Lcv6XA8LbuHNrOPd876+8fPGvs5IDyZeU/t88yTDAzL6qWGOve46aeV1fH591tW9vDvgvDTPRXnZkhUUyM9SF+4gXefVQfoJ/ioONAZ312D7k8QSMk1dM7fAQIJfd4PqIvWt4zbDl+CzliVRPpUvNrxbDdzRm5fmg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=monjalon.net smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); 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=0J2KPwviFSQoAuW/dCgtLfLLs+Vv8+CtkVoaFb6WG20=; b=MM7//E1gcj/f35Bnwnr5t9jl+lybMY0FHIeQY95/srlY2IXBLLamHIFkxJ/aquvPYEeze/nEVDuxyw+G6PFk9yjrzARRG1/PM3IjS+/Wjn8euHg95c19mIWPOpIZMmde90teVwPAfaruH39N9icx0WgXr4zEB+XEqpjoqJbR5+0WMNO+FjEqmOWD+FBVBrwQfWA8BjNl1yknSECzdPB+G1KJhpZZ/lzzoDtfZ0vZK8fv9Fju+SPG39ljGrCZ+iAQHdVIJRU3/fMaxzxni8JM65/XPlNnvuQ+M+abO56DnZPA9YBUgH8y59gWAFt9F+j5nELMfe/11o3m5GlCA3GEYQ== Received: from MWHPR15CA0052.namprd15.prod.outlook.com (2603:10b6:301:4c::14) by MW3PR12MB4524.namprd12.prod.outlook.com (2603:10b6:303:2d::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.15; Thu, 4 Nov 2021 11:27:04 +0000 Received: from CO1NAM11FT064.eop-nam11.prod.protection.outlook.com (2603:10b6:301:4c:cafe::ec) by MWHPR15CA0052.outlook.office365.com (2603:10b6:301:4c::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.10 via Frontend Transport; Thu, 4 Nov 2021 11:27:04 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; monjalon.net; dkim=none (message not signed) header.d=none;monjalon.net; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by CO1NAM11FT064.mail.protection.outlook.com (10.13.175.77) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4669.10 via Frontend Transport; Thu, 4 Nov 2021 11:27:04 +0000 Received: from nvidia.com (172.20.187.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Thu, 4 Nov 2021 11:27:01 +0000 From: Bing Zhao To: , CC: , , , Date: Thu, 4 Nov 2021 13:26:41 +0200 Message-ID: <20211104112644.17278-2-bingz@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20211104112644.17278-1-bingz@nvidia.com> References: <20211104112644.17278-1-bingz@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.5] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8984a557-77b0-4023-55c5-08d99f860719 X-MS-TrafficTypeDiagnostic: MW3PR12MB4524: X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2958; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: PpDNPxlBC+ZwVTb1e2w+CKwdJoHG7v/8qs67MW/U38sAae5y+tkYvszbI3B4Ox/JQc76PsYXCRJxskn4KG2EDvzUS1H6KoCy/IcG3Jb/wAh5xvnZxxCpWU0SpK9S4e9URqFtYFOubsPNR1dMIQrfLcmQZ3eJHziCKOxT2aX/BKPwc1yvZoHjjSQ42udDnHNBdVuq3wnUDHyGIhF6dpp4AP11mMPNnjT97zoNzr2ETssfSZ3F/9rx3v4raRvgjfeGcrw5mPhkXfFFOJo/OTcsDFbhBjKMHMc/t08vZ68ia/yD2z9wxI+rAa+NvxFyVv0zwBde9PNQf02B5rHMfa6Htqmb/+7b+hjrYwiDhgf1csiehJSYAvRZP8vY8L6swsOFNq5GSKOHLcSZppUm5j0GHZ86cSXMA9ef3LYGllxCTKhXsJksUX94Uvfm9aRCRbuRUsZJwct4H7CU5tezPUjORuWlaFMPKix4ZKGKCiDf29ievIvzCItEO9dTsnLXJY1fkMR3p2kwqIjTQ13PSQ+xIy0LyV3NLycWrp8ksPW94cI9OGZhwEDgKc9gpLpkwmd2NM4dQChWPYMrE4cZjVp3SAMuTZJBNW8cMyNLpyA1pztaTeKplkveE9gHH2HryVy3gRY2YvMAlFC8SJom1+QIEJvJkqhN6eGgLsopYor7QLZHrDGoE1y60GWk6uQrP6zdsOLlZdouIWYyrVMVpnqnHQ== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(46966006)(36840700001)(1076003)(2906002)(7636003)(54906003)(8676002)(356005)(70206006)(36756003)(6666004)(5660300002)(70586007)(6636002)(8936002)(82310400003)(16526019)(186003)(36860700001)(2616005)(107886003)(426003)(508600001)(6286002)(86362001)(55016002)(47076005)(7696005)(26005)(4326008)(316002)(110136005)(336012); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Nov 2021 11:27:04.2071 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8984a557-77b0-4023-55c5-08d99f860719 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT064.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR12MB4524 Subject: [dpdk-dev] [PATCH 1/4] common/mlx5: support delay drop capabilities query 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" The "rq_delay_drop" capability in the HCA_CAP is checked and saved in the output data structure for the future usage. Signed-off-by: Bing Zhao --- drivers/common/mlx5/mlx5_devx_cmds.c | 1 + drivers/common/mlx5/mlx5_devx_cmds.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/common/mlx5/mlx5_devx_cmds.c b/drivers/common/mlx5/mlx5_devx_cmds.c index 12c114a91b..eaf1dd5046 100644 --- a/drivers/common/mlx5/mlx5_devx_cmds.c +++ b/drivers/common/mlx5/mlx5_devx_cmds.c @@ -962,6 +962,7 @@ mlx5_devx_cmd_query_hca_attr(void *ctx, attr->ct_offload = !!(MLX5_GET64(cmd_hca_cap, hcattr, general_obj_types) & MLX5_GENERAL_OBJ_TYPES_CAP_CONN_TRACK_OFFLOAD); + attr->rq_delay_drop = MLX5_GET(cmd_hca_cap, hcattr, rq_delay_drop); if (attr->qos.sup) { hcattr = mlx5_devx_get_hca_cap(ctx, in, out, &rc, MLX5_GET_HCA_CAP_OP_MOD_QOS_CAP | diff --git a/drivers/common/mlx5/mlx5_devx_cmds.h b/drivers/common/mlx5/mlx5_devx_cmds.h index 2326f1e968..25e2814ac0 100644 --- a/drivers/common/mlx5/mlx5_devx_cmds.h +++ b/drivers/common/mlx5/mlx5_devx_cmds.h @@ -176,6 +176,7 @@ struct mlx5_hca_attr { uint32_t swp_csum:1; uint32_t swp_lso:1; uint32_t lro_max_msg_sz_mode:2; + uint32_t rq_delay_drop:1; uint32_t lro_timer_supported_periods[MLX5_LRO_NUM_SUPP_PERIODS]; uint16_t lro_min_mss_size; uint32_t flex_parser_protocols; -- 2.27.0