From patchwork Fri Jul 14 18:06:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Traynor X-Patchwork-Id: 1808002 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=b5VACyex; dkim-atps=neutral Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4R2fZC5WLXz20cB for ; Sat, 15 Jul 2023 04:06:59 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 24852842A0; Fri, 14 Jul 2023 18:06:57 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 24852842A0 Authentication-Results: smtp1.osuosl.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=b5VACyex X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vbNhokKhd1i1; Fri, 14 Jul 2023 18:06:56 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp1.osuosl.org (Postfix) with ESMTPS id 3BA8B84299; Fri, 14 Jul 2023 18:06:55 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 3BA8B84299 Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id E11D2C0071; Fri, 14 Jul 2023 18:06:54 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists.linuxfoundation.org (Postfix) with ESMTP id C99B7C0032 for ; Fri, 14 Jul 2023 18:06:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 979F184297 for ; Fri, 14 Jul 2023 18:06:53 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 979F184297 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id V3YCVVtcCtXH for ; Fri, 14 Jul 2023 18:06:52 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 1738384295 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by smtp1.osuosl.org (Postfix) with ESMTPS id 1738384295 for ; Fri, 14 Jul 2023 18:06:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1689358011; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=sHgX/g/QfSunIZ2jmwq9mJazKHw26jEAN+L5ETnMltI=; b=b5VACyexUhb91QNBVE/1KAahF7cYenrC4s7L88h7Q02GKcQoA7qiAqq0uP09N9YMN9W1CD IuGDbhOptFZYyAEsrqyUKzX0JBrZvCUpC82hZw7CXudfaFDZcARC5q5CylX4AxrUbrupJL GKz6YfIauFn0QQ+OdmG+/KFSuoejeXg= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-178-1qFvihLyMPq-J4tPvVMrCg-1; Fri, 14 Jul 2023 14:06:47 -0400 X-MC-Unique: 1qFvihLyMPq-J4tPvVMrCg-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7BB66185A793; Fri, 14 Jul 2023 18:06:47 +0000 (UTC) Received: from rh.redhat.com (unknown [10.39.193.206]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1C65E2166B26; Fri, 14 Jul 2023 18:06:45 +0000 (UTC) From: Kevin Traynor To: dev@openvswitch.org Date: Fri, 14 Jul 2023 19:06:32 +0100 Message-ID: <20230714180636.644049-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Cc: simon.horman@corigine.com, david.marchand@redhat.com, i.maximets@ovn.org Subject: [ovs-dev] [PATCH v4 0/4] PMD load based sleep updates X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" Patches are about adding some visiblity and preparing for new functionality in a later series. Patch 1 renames 'pmd-maxsleep' to 'pmd-sleep-max'. To soften the change over, 'pmd-maxsleep' is deprecated and may still be used. v4 - Drop patches 5-6 (per-pmd control) from this series to split into a separate series as it's close to OVS 3.2 and they require more rework and need to be tested again. - Resolved comments on v3 for patches 1-4 (Ilya) - 1/4 Decided to soften removal of 'pmd-maxsleep' to a deprecation. If it is set, a deprecation warning will be displayed and it will only be used if 'pmd-sleep-max' is not present. - 1/4 Wasn't sure whether to keep David's RvB and he is not available, but the goal of the patch is the same, it's just not done as quickly, so on balance will keep it. We can remove it if anyone thinks we should but otherwise blame me, not David if it's broken ;-) - 3/4 Changed format of pmd-sleep-show as per comments related to later patches v3 - Rebased NEWS - 1/6 Added warning for use of pmd-maxsleep (Simon) - 5/6 Minor changes (David) v2 - 2/6 fixed UT macro - 3/6 rebased NEWS confict - 3/6 moved pmd_max_sleep_show() location - 6/6 removed incorrect check GHA: https://github.com/kevintraynor/ovs/actions/runs/5556620548 Kevin Traynor (4): dpif-netdev: Rename pmd-maxsleep config option. pmd.at: Add macro for checking pmd sleep max time and state. dpif-netdev: Add pmd-sleep-show command. dpif-netdev: Remove pmd-sleep-max experimental tag. Documentation/topics/dpdk/pmd.rst | 15 +++++-- NEWS | 5 +++ lib/dpif-netdev.c | 34 +++++++++++--- tests/pmd.at | 73 ++++++++++++++++++++++--------- vswitchd/vswitch.xml | 2 +- 5 files changed, 99 insertions(+), 30 deletions(-)