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 D7E45A0C56; Fri, 5 Nov 2021 14:36:42 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5B275411A7; Fri, 5 Nov 2021 14:36:40 +0100 (CET) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2063.outbound.protection.outlook.com [40.107.223.63]) by mails.dpdk.org (Postfix) with ESMTP id 052C741180 for ; Fri, 5 Nov 2021 14:36:39 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D5DYp5CXFQe45P0WIcmRSYXdTTbgp1F56eamUpSrOTNeBV0zEKbZcZKhbZwZ7z80dd83P69I+KaoqUJnXuAnjJe/tJZ+J4elKol9KPeMmpXdZM4TqZomh5EA/pS4gE3weXsmLGyOgRdld41WtDJYIYmRgIzuBfsi4a0/kcVo7/SohUF63Ttfs3+NrUu1+bSGxT94i4Kg8a7y6xH0odh85BlkcrK7DRG80uBJ5BLbm+aKvUwzj2ioSev72NyF1A7lSTRNb4zkDk3kZGzXDY3xXyGYiJonQ2N/yagcKdJUTpwaxA/NRvghLokL17JznEg7mTn+eFQ9JZw8jWAZOYPgnA== 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=L22kBUKuxqN/LwAg8RHopLr5NXurS2vZTSxezbJy7k4=; b=I9XA2iiWH6zLiGBMRxZzFjb4HmB9fFeB9TF7ak4MJfMclll2nm8ZxxaTkz8L4OZ7MnSwY3u+mSmUN7m/40mnu0MmRLhq4XyXVFJIFVJBpaPUYzRtJ0zRCV6vTzh8dpjGgcS1CHkE7E31Ma4RbUVmsgj9hN4jGXS28cUe/gk8d76Bq8j3jLVtKkRob0GrIJKbzoXlslRjd9Ec48tGOxK6IVeuNnjI0EDYZwPsoH7ZBabYTd1OEI8Y23zcH6NOQq8evcpzzKxuMaNEGI3Rby8RSgl/K/vo7avSV6GKycLGJZ62eX76HDUQNDgC28I8ETYA/RinVhm77v2pvxMU1k3+mg== 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=L22kBUKuxqN/LwAg8RHopLr5NXurS2vZTSxezbJy7k4=; b=UfDZr/oMkEC77smvx+dLfXvSMaZV5fxBhHgEB0osErTYWic73HF3hjxDHci7CX6JTH22tWwWmnl9gfwZjfcL1rKwXeL42L2STaZFrUWAxsoMPgGWOQVrQwnIHYenkkleUqfFwE4az8DZulPHYa4Rj5jaUfH/NiQ4OeFLOlWN2Frqro+iQxQlJ7X5v3TW+T90zlREPx5bG5ar/YXwiMmDG3Y5Gz6ZgoFQY1Nyq1eKO+vIEGD0ql6J0l54k5w7dAp2PxhjKTxx4B1yVDp3599opmWYmoREHsBrjrCQKVQIqZ+/lPtCQ0JQTYXD3TQo1N0+raB6smbhTtHZ5oz7BT6IyQ== Received: from MWHPR14CA0060.namprd14.prod.outlook.com (2603:10b6:300:81::22) by PH0PR12MB5451.namprd12.prod.outlook.com (2603:10b6:510:ee::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.14; Fri, 5 Nov 2021 13:36:37 +0000 Received: from CO1NAM11FT029.eop-nam11.prod.protection.outlook.com (2603:10b6:300:81:cafe::21) by MWHPR14CA0060.outlook.office365.com (2603:10b6:300:81::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.10 via Frontend Transport; Fri, 5 Nov 2021 13:36:36 +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 CO1NAM11FT029.mail.protection.outlook.com (10.13.174.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; Fri, 5 Nov 2021 13:36:36 +0000 Received: from nvidia.com (172.20.187.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Fri, 5 Nov 2021 13:36:33 +0000 From: Bing Zhao To: , CC: , , , Date: Fri, 5 Nov 2021 15:36:15 +0200 Message-ID: <20211105133617.177189-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.6] 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: 02d3d803-42f1-4f3d-7da9-08d9a06149e5 X-MS-TrafficTypeDiagnostic: PH0PR12MB5451: X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1051; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 18BkZnfEJUbijER1DLYqQgwQd4na0H9VuaNl+nIidQyvpxg+ZLlekKlhaQbyRQA7H24gw0UCm7zuOglQIB2HDowQ+7UkiP00/5+FiBlmvdV4CjTIkxoXWkFMpXiB1RVGMRNcvDHgroAdEndojny/GZXei2PzM1ndYqSf6bDmDhqvXPKMsrTY4npRs4EHXShju36xXJbdIaY8UE7l75jsoIHWU1ZCsMOL6IqPoT64id3E0hbGzqkCkI/dsOMkaReAQghViJhRgoqStp3FTeID1Kn+kMaekJq4fxok54BOaMLzuEzGAamllflf3oYT1QdRLB5fLEJcntoDBVXdfzGnXQ+mEiGOlyVhNMLubssRibUSK9ZrvDn2pLFixUPnFMyQRSFLElsWyERYLvD3DYxlDtCmXKV7Ap+xj9u1+E4IPGIN58+cNVBF9HSTHDoGRwOXcEf+T8D6slYMaV4IpVjR/x+pVYnRL5ciXcocY3dodalHYzrmE1/Cx/q6/WA0kxHGHxn12zFUfnQO3oiiCsKMuwkUgEisNlwHDOdljaiV/yBuASDM1RbxriUqa4X+r/sMG41UeK8JaN5Q17oaoqsSuI+CnV8JR+vF35Dy5Z0RwtoY4kl84UzU4upIDKeAAG6WtDnrB8nQ0RMSs03A2yI2tE380ofNwCP6bEa6fWtUy7aS4ifzbj863cfCjSvpI/8BoDlMZJY+j2DS7gZnaaE8DA== 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)(6666004)(426003)(7696005)(356005)(26005)(336012)(36756003)(1076003)(36860700001)(47076005)(86362001)(82310400003)(316002)(2616005)(4326008)(6286002)(7636003)(55016002)(8676002)(70586007)(70206006)(83380400001)(54906003)(5660300002)(8936002)(186003)(6636002)(16526019)(508600001)(2906002)(110136005)(107886003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Nov 2021 13:36:36.0555 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 02d3d803-42f1-4f3d-7da9-08d9a06149e5 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: CO1NAM11FT029.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR12MB5451 Subject: [dpdk-dev] [PATCH v5 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 v4: code style update and commit log polishing v5: - split and fix the document description - devarg name update --- 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 | 27 ++++++ 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 | 111 ++++++++++++++++++++++ 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, 210 insertions(+) -- 2.27.0