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 7FF9AA0C41; Thu, 4 Nov 2021 12:27:36 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E9086426F3; Thu, 4 Nov 2021 12:27:23 +0100 (CET) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2070.outbound.protection.outlook.com [40.107.243.70]) by mails.dpdk.org (Postfix) with ESMTP id 67154426EA for ; Thu, 4 Nov 2021 12:27:23 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e5d+MEKMvC4suZyXHBhky8mNAl6Pser8TG0e5rr4Hz9OVmwuXQyMk6xMcJdLFGqNzxOJvPA7WnqoC97ohssNB0w3YPG6X5xx8NcTg2FrHIAbpQsRAm1W+sgk5610AwjBSM/xlddue+48lMaGInO5ypVRcrvhJ5yt8ICEEM5sNT/QzZdMfKH84S0/HgCTivUVCgl0nrXCdRTIdoeUMqezX6S6rgQbtBeaskwKBfC11yf82DvzeJMqYqieqwFn2UI/0Vlfqy2tBgY3r6oxvMU2MxpBhzhCELFjv982OTPBrz1/Q4p+5z0y/GVBTLJdeygOeoznpAFRgU4DDvw2LKwypg== 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=CD9cC5D8dG1AplSVqQlCF0VfQBrc6Hz4tMw/N01TFWc=; b=ZjtvgNnOeJ0eBZfHvS1hX8Dg4j/1MAFX13BzQj/WcFGouWMJYUx5pjEfHtNYYgBT7lURH24MadvMM4haCi/RS2fQzg5GIJvavsou4etuXc6OGJG1Fc3doWiN+n5DEdnMguQJSErkVJGcnQK386NfXbO3OHwrnreOY5ybgsnoYhpVnRu+N4knRtnphBzT2GHL5SHBoTqrtIrnjjIuJHTeHfqx4DoG/7DinFlyTTCKkTEl3u/baWFbSoey7EHhafpFAs1FNgxAdsEi8pZ35a2oX1F2+wuV15po76G/9Fre9K8kzgljJBYgiGHoS1hepssP/AhRCc5F1dOuBRKdbrSnBQ== 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=CD9cC5D8dG1AplSVqQlCF0VfQBrc6Hz4tMw/N01TFWc=; b=AYgWfKmulxMbCmqWnI4XZutaTjBcoM/cfS8VdT3H/HS8spWcuFLtMzGXJBbynWBE0EJ1ASFebAfKRlj1rOoSSAcVRA0u/bUVLBI6/vqLSat5w46rQEyq7UIpMoxHrqhhyhhkBTaoeU0AfaYCO+6FzDW+XDdeJiBHaYgZzD9UH6M5xcWXxhQVep9VVBtCJYnA/xR4kxj/YjBZT/rWDQTHvkTJK6AoCylM1V41Juy/QOe6Dhi6N5pNWfVL3zzp01O+wwlAsOk3sVaKK74h00+rPoaFwPGjdZVPcGsSENFxZn8vUtJb+HPECNkd7AB3xnQfsjEEgT6NhXkwXLvIEStVNA== Received: from MWHPR21CA0031.namprd21.prod.outlook.com (2603:10b6:300:129::17) by CY4PR12MB1621.namprd12.prod.outlook.com (2603:10b6:910:10::18) 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:16 +0000 Received: from CO1NAM11FT052.eop-nam11.prod.protection.outlook.com (2603:10b6:300:129:cafe::68) by MWHPR21CA0031.outlook.office365.com (2603:10b6:300:129::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.0 via Frontend Transport; Thu, 4 Nov 2021 11:27:16 +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 CO1NAM11FT052.mail.protection.outlook.com (10.13.174.225) 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:13 +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:10 +0000 From: Bing Zhao To: , CC: , , , Date: Thu, 4 Nov 2021 13:26:44 +0200 Message-ID: <20211104112644.17278-5-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: ba311906-c987-470c-b197-08d99f860ca6 X-MS-TrafficTypeDiagnostic: CY4PR12MB1621: X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: wkodrHTtJ1JHIpwfBH+aXACpsS3Oa1PnPZ+GhfZY5WOgW8/hlTaWXyh9QsmPv0UoBCBcXOCVo4hL4/W0aIvMHMLp0377Cs/vJ2BCcEZX6Sm3pl5WG6l8yLzlBjJAeuuTOlUAA6V1AJ0FfPCFv/O5SYcx0PrUCthMdbXewpjavuJSYrPnIRniNDYMMVPZUGQG7DlaHw3hekllyMobyx8t0AzI0jGapWZXcUW7zreDPKFqh4Z4RBqUPg8N4P8k4A2CGMjexeEg0x1dG5ubF/HreqhXDNy5jPPAHRHdzLE/jfB/OGaLBBpWnrkQwFsmmc7p/gmcDTzDlrzD47DhCm4Jt2Ws59UWCNdn3X0CtLP/FXcNvBGEHYBO+Nr/5zx+4bJicoK3vvs4QZa3PqUc9CJjjnPD0jg4k5KLWJc/IJLk0xCfm6KucpBs0PPcdKtZ4CjrE720Yyv4PXe4H67QkDu/rIiZjFx9WofyEhx7CA2NdptViwrHPSVOV4zwVgyAPBkWpVxg2Tan5gSt+G/BxA9I9I3DJoD9jzmXsaAufu5KrwN8UmG52IZj2ppgFzuhNrRwn3YgpvnsVpq2gbNZ3TIjVP1kDC+eKtd5qjrzlmpmzjM9wdKKHOpzJVhL42NcIx8H1I5M9Pb9NZ6A/7fAut0neUTX9UzsQjgy3HmkrFqQJw3Thw0g2jERSFcyijM17mp+cLTSCZO5rn/dxeFPfUDUhQ== 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)(36840700001)(46966006)(6666004)(110136005)(54906003)(2906002)(6636002)(186003)(15650500001)(16526019)(336012)(7696005)(107886003)(1076003)(86362001)(5660300002)(83380400001)(82310400003)(36860700001)(356005)(8936002)(8676002)(4326008)(426003)(7636003)(316002)(26005)(47076005)(36756003)(508600001)(2616005)(55016002)(70586007)(6286002)(70206006); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Nov 2021 11:27:13.5121 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ba311906-c987-470c-b197-08d99f860ca6 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: CO1NAM11FT052.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1621 Subject: [dpdk-dev] [PATCH 4/4] doc: update the description for Rx delay drop 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 release note and new device parameter "delay_drop_en" for the delay drop feature in mlx5.rst are updated. Signed-off-by: Bing Zhao --- doc/guides/nics/mlx5.rst | 26 ++++++++++++++++++++++++++ doc/guides/rel_notes/release_21_11.rst | 1 + 2 files changed, 27 insertions(+) diff --git a/doc/guides/nics/mlx5.rst b/doc/guides/nics/mlx5.rst index bb92520dff..2874a34cb6 100644 --- a/doc/guides/nics/mlx5.rst +++ b/doc/guides/nics/mlx5.rst @@ -1123,6 +1123,27 @@ Driver options By default, the PMD will set this value to 1. +- ``delay_drop_en`` parameter [int] + + Bitmask value for the Rx queue delay drop attribute. Bit 0 is used for standard + Rx queue and bit 1 is used for hairpin Rx queue. + By default, the delay drop will be enabled for all hairpin Rx queues (if any) + and disabled for all standard Rx queues. It will be ignored if the NIC does + not support the attribute. + A timeout value is set in the driver to control the waiting time before dropping + a packet when there is no WQE available on a delay drop Rx queue. Once the timer + is expired, the delay drop will be deactivated for all queues. To re-activeate it, + a rearming is needed and now it is part of the kernel driver. + + To enable / disable the delay drop rearming, the private flag ``dropless_rq`` can + be set and queried via ethtool: + + - ethtool --set-priv-flags dropless_rq on (/ off) + - ethtool --show-priv-flags + + The configuration flag is global per PF and can only be set on the PF, once it is on, + all the VFs', SFs' and representors' Rx queues will share the timer and rearming. + .. _mlx5_firmware_config: Firmware configuration @@ -1797,6 +1818,11 @@ Supported hardware offloads | | | | | rdma-core 35 | | | | | | ConnectX-6 Dx | +-----------------------+-----------------+-----------------+ + | Rxq Delay drop | | DPDK 21.11 | | DPDK 21.11 | + | | | OFED 5.5 | | OFED 5.5 | + | | | N/A | | N/A | + | | | ConnectX-5 | | ConnectX-5 | + +-----------------------+-----------------+-----------------+ .. table:: Minimal SW/HW versions for shared action offload :name: sact diff --git a/doc/guides/rel_notes/release_21_11.rst b/doc/guides/rel_notes/release_21_11.rst index 13d8330873..76d18aeb6b 100644 --- a/doc/guides/rel_notes/release_21_11.rst +++ b/doc/guides/rel_notes/release_21_11.rst @@ -191,6 +191,7 @@ New Features * Added implicit mempool registration to avoid data path hiccups (opt-out). * Added NIC offloads for the PMD on Windows (TSO, VLAN strip, CRC keep). * Added socket direct mode bonding support. + * Added delay drop support for Rx queue. * **Updated Solarflare network PMD.** -- 2.27.0