From patchwork Thu Jun 17 16:27:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kumar Amber X-Patchwork-Id: 1493750 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.138; helo=smtp1.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G5SWr4PsLz9sRf for ; Fri, 18 Jun 2021 02:42:16 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id EF26884344; Thu, 17 Jun 2021 16:42:14 +0000 (UTC) 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 8sL2J7vxNgpQ; Thu, 17 Jun 2021 16:42:14 +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 1F1988433E; Thu, 17 Jun 2021 16:42:13 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id DF4B9C000D; Thu, 17 Jun 2021 16:42:12 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) by lists.linuxfoundation.org (Postfix) with ESMTP id 104D9C000D for ; Thu, 17 Jun 2021 16:42:12 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id C50BD83F15 for ; Thu, 17 Jun 2021 16:41:31 +0000 (UTC) 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 8WvsMmIlAUaP for ; Thu, 17 Jun 2021 16:41:30 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by smtp1.osuosl.org (Postfix) with ESMTPS id C6AF784284 for ; Thu, 17 Jun 2021 16:41:29 +0000 (UTC) IronPort-SDR: Rwkhb/kcHO4Uj78K7bVcGnorV49RFNM6ba6wnxxDxHD4bdMWoLQ3s9TOj8bn7fouJXirP6Wk6s wOG2+C0ZR5wQ== X-IronPort-AV: E=McAfee;i="6200,9189,10018"; a="193719983" X-IronPort-AV: E=Sophos;i="5.83,281,1616482800"; d="scan'208";a="193719983" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jun 2021 09:41:29 -0700 IronPort-SDR: 6SW3xOevthqvYFSua0R2nbVwvQVqqU9tjoHeSCmE2ICb2jSPJyJDs5IHlr/spOVD+lKykGRMo1 rAAWIs3xaQIg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,281,1616482800"; d="scan'208";a="555253009" Received: from bmca4bf01706bbf.iind.intel.com (HELO localhost.localdomain) ([10.190.213.111]) by fmsmga001.fm.intel.com with ESMTP; 17 Jun 2021 09:41:27 -0700 From: Kumar Amber To: dev@openvswitch.org Date: Thu, 17 Jun 2021 21:57:54 +0530 Message-Id: <20210617162754.2028048-13-kumar.amber@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210617162754.2028048-1-kumar.amber@intel.com> References: <20210517135708.685517-1-kumar.amber@intel.com> <20210617162754.2028048-1-kumar.amber@intel.com> MIME-Version: 1.0 Cc: i.maximets@ovn.org Subject: [ovs-dev] [v4 12/12] dpif/dpcls: limit count subtable search info logs 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" From: Harry van Haaren This commit avoids many instances of "using subtable X for miniflow (x,y)" in the ovs-vswitchd log when using the DPCLS Autovalidator. This occurs when no specialized subtable is found, and the generic "_any" version of the avx512 subtable search implementation was used. This change logs the subtable usage once, avoiding duplicates. Signed-off-by: Harry van Haaren --- lib/dpif-netdev-lookup-avx512-gather.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dpif-netdev-lookup-avx512-gather.c b/lib/dpif-netdev-lookup-avx512-gather.c index 2e754c89f..deed527b0 100644 --- a/lib/dpif-netdev-lookup-avx512-gather.c +++ b/lib/dpif-netdev-lookup-avx512-gather.c @@ -411,7 +411,7 @@ dpcls_subtable_avx512_gather_probe(uint32_t u0_bits, uint32_t u1_bits) */ if (!f && (u0_bits + u1_bits) < (NUM_U64_IN_ZMM_REG * 2)) { f = dpcls_avx512_gather_mf_any; - VLOG_INFO("Using avx512_gather_mf_any for subtable (%d,%d)\n", + VLOG_INFO_ONCE("Using avx512_gather_mf_any for subtable (%d,%d)\n", u0_bits, u1_bits); }