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 BB68FA0C57; Thu, 4 Nov 2021 17:56:16 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 83A6E42762; Thu, 4 Nov 2021 17:56:15 +0100 (CET) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2089.outbound.protection.outlook.com [40.107.92.89]) by mails.dpdk.org (Postfix) with ESMTP id 6A22F411C9 for ; Thu, 4 Nov 2021 17:56:14 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MaV0niS8yVDM0j/TB22I4XJPY5W8fcrtmT7knFn4nFvQuYjL6wrW6rzBsxFJuGdOBs9OcPTuqxGoc/Ao/QI+YXATc9zIG6At2h49PfoM7IkibwO6b5Y9We4uahdye1Ewql7BTBb0ACmFpp1sFCsRo/8y8lN6Sn732eVT0LJfWR4SMs7nDhZ8KlFg/0FXX8H1dCctJ7Y0awLZCJp1Iz2dMER2qMdjX5YkcERvlQ0NPF/eENQYh7IXZ8ZrLUbVy+HnaH2ELa3uO9wi8WcI3ZLlnJi0PWUtA+qDsEYfdiH47ETnn3P++nYrNCw1Nh2oR9woxZYJQcXdPAT2g06jKyp9sA== 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=u/QSX/ynnoFEMWtg0I34CvnPb5duj2h4zcoGjHVZwns=; b=iZhg5UTv/K/EveR6vgyNbZ9qytH/Q7G8PAzaD1Nd/CUikzLjznjHgmq/FpWJVJDbprU96gE05WU5QeYPCiaziR8w0U2khbYJYC9bzJvCOrkLmscNguqZELyK/5oD6sE1838RN1SPvVM3VewTykVCBgXNmC/lOVk787RSQA9Nh5DHGFg2FWMILn/DGzx6otfxxcuTr4dQxvwDvtK2zlNGXLFK6FslatZ6ztdqU9AdIIU3dd3FCLcCNHEsHDxIBVix+I1bNdnOCbby5z4XYSJlX7dOgCTWXTnsK6lauprNH59c5XbGbiwlIib2GEpNHnzCu2ztXjlmrUdcy37sL8zK0g== 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=u/QSX/ynnoFEMWtg0I34CvnPb5duj2h4zcoGjHVZwns=; b=BcsmlPw8c9bh+cZoHhUl9zF6HIVH5uRdL5OW22adcTPbCxo/9eJ2A+wtK3m9100beZaYrdRleeqT8v5h48WOyKyvKBRdDHPTdNxo993iUpNPuO+8WkZyjHGvMySs/MJ73mewvDP0cy4A0eRrajux4eyfE1aoxwavtAC30UCuwDj6E22ATdFbOALQOBAFb4W3vR3WimkTef2HyR+mHFsanqMWaHUbYJq76SYNriBIkm7+J5eqR/3RJJGi5oslmfCpRPpM7zc+NQm7HEbiJ0a8ccSzu5XNHrbNKOSVvLAd5FGHdjfFmrSIe0TMrml3tZn+GBlXLhSP5MKyradCSh23bQ== Received: from MWHPR04CA0066.namprd04.prod.outlook.com (2603:10b6:300:6c::28) by BN6PR1201MB0241.namprd12.prod.outlook.com (2603:10b6:405:58::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.10; Thu, 4 Nov 2021 16:56:12 +0000 Received: from CO1NAM11FT028.eop-nam11.prod.protection.outlook.com (2603:10b6:300:6c:cafe::b6) by MWHPR04CA0066.outlook.office365.com (2603:10b6:300:6c::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.11 via Frontend Transport; Thu, 4 Nov 2021 16:56:12 +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 CO1NAM11FT028.mail.protection.outlook.com (10.13.175.214) 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 16:56:11 +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 16:56:08 +0000 From: Bing Zhao To: , CC: , , , Date: Thu, 4 Nov 2021 18:55:50 +0200 Message-ID: <20211104165552.57663-1-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: HQMAIL107.nvidia.com (172.20.187.13) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 45b03c6b-9d0e-4e4d-4b7c-08d99fb40156 X-MS-TrafficTypeDiagnostic: BN6PR1201MB0241: X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XmmQAEdqwZaTrrUUK0VygPWachlUsmj5FKIZjS85u0TsqEPyd4ZEObMaqN6b+BTHY7N2kq5wYygXJ9BDyspWtPxrge7Pl/yIu9rku+u3PO0Wqa54lspXbNbhuUi3btgmZFh8VSgfR+l9yAnJaYRbN9E3kiTIUnqS0HvOefgVgenPY2rig7fV/S01WBrjVKYQiUMbKWPiSkif713eYKeYBM3PUCu2ESqM9ud07kIE4KhNi4BN5vLVNdPXN/com+c+mti80FEM/9lNMoYxnHTnKUiw+7v1LJao+qvgtcT9X+9VoKq1lGMenD0ckde/o6LHxuCrk4LGNmiSxTgJXgfBf9HwUt6L2+klqfBlZQesKTaRz48XU28K9Mwg0d1yhVh3Nmr42KyZUQIaBwsb3b1uYo1ql9DrpY9N9A656i3yqihSHP8Y3ea64YR4/3hiVve8Vv5/+T9PMkMSux6otwz8Uf2sCAvIO0rKtJ7yLfN0AxZWS/2RTLv02K+qrObfmXMOXEroZmB9ngYzh8TesnrUv8IzKhkUGr6qeazu0AErcL1FkuJD9G+JcPamRmkiR8n4MFu6drWS1nWivXUB8Jg2545+aK+iCKOAtN7vLD56cW6m+G0W+TZj/QSeG6AOaBi9ijT9fBEWUKSzVjwbsZ8PJWH3vCdGddabgkSRAJAnWILTahf/1FstZkp+FTr8BNQzaodWioWC5TDaDpbVCt2LxA== 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)(6636002)(47076005)(186003)(16526019)(1076003)(82310400003)(55016002)(6286002)(2906002)(36860700001)(508600001)(26005)(36756003)(110136005)(54906003)(6666004)(83380400001)(426003)(4326008)(316002)(7636003)(70586007)(70206006)(7696005)(356005)(86362001)(8676002)(2616005)(336012)(5660300002)(8936002)(107886003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Nov 2021 16:56:11.3858 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 45b03c6b-9d0e-4e4d-4b7c-08d99fb40156 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: CO1NAM11FT028.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR1201MB0241 Subject: [dpdk-dev] [PATCH v3 0/2] Add delay drop support for Rx queue 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" This patch set introduce a new devarg to support delay drop when creating the Rx queues. The default attribute will be disabled and the behavior will remain the same as before. --- v2: - change hairpin queue delay drop to disable by default - combine the commits - fix Windows building - change the log print v3: fix conflict and building --- Bing Zhao (2): net/mlx5: add support for Rx queue delay drop net/mlx5: check delay drop settings in kernel driver doc/guides/nics/mlx5.rst | 26 +++++ doc/guides/rel_notes/release_21_11.rst | 1 + drivers/common/mlx5/mlx5_devx_cmds.c | 1 + drivers/common/mlx5/mlx5_devx_cmds.h | 1 + drivers/net/mlx5/linux/mlx5_ethdev_os.c | 114 ++++++++++++++++++++++ drivers/net/mlx5/linux/mlx5_os.c | 11 +++ drivers/net/mlx5/mlx5.c | 7 ++ drivers/net/mlx5/mlx5.h | 10 ++ drivers/net/mlx5/mlx5_devx.c | 5 + drivers/net/mlx5/mlx5_rx.h | 1 + drivers/net/mlx5/mlx5_trigger.c | 18 ++++ drivers/net/mlx5/windows/mlx5_ethdev_os.c | 17 ++++ 12 files changed, 212 insertions(+) -- 2.27.0