From patchwork Mon May 17 13:57:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kumar Amber X-Patchwork-Id: 1479548 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=2605:bc80:3010::133; helo=smtp2.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) (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 4FkLcQ6lMVz9sfR for ; Tue, 18 May 2021 00:09:58 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id DE66B404FB; Mon, 17 May 2021 14:09:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id J_CZ6_9aqtf8; Mon, 17 May 2021 14:09:53 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp2.osuosl.org (Postfix) with ESMTP id A41ED40563; Mon, 17 May 2021 14:09:36 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 87ED9C002D; Mon, 17 May 2021 14:09:32 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) by lists.linuxfoundation.org (Postfix) with ESMTP id 0E867C002F for ; Mon, 17 May 2021 14:09:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 2029B400C0 for ; Mon, 17 May 2021 14:08:38 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FeTEmh47tWp9 for ; Mon, 17 May 2021 14:08:34 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by smtp2.osuosl.org (Postfix) with ESMTPS id D50A7404EB for ; Mon, 17 May 2021 14:08:34 +0000 (UTC) IronPort-SDR: BUTeMPfFrXoGcd7KcZO1K+YiBrR7XbARl1RdjID0DuUqyZewhPpqrKTZxOlYGUVbzBpV/9+k78 9Uumh7mV+LvA== X-IronPort-AV: E=McAfee;i="6200,9189,9986"; a="221510556" X-IronPort-AV: E=Sophos;i="5.82,307,1613462400"; d="scan'208";a="221510556" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 May 2021 07:08:34 -0700 IronPort-SDR: jP5R96z12apiPcERBlmOHchS5yfWy8K+Ujbot52G55UXSeZu0BF8LEaoRvXZl6hrs3zcR+dpIg HgRz9q1/m+CQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,307,1613462400"; d="scan'208";a="438936775" Received: from bmca4bf01706bbf.iind.intel.com (HELO localhost.localdomain) ([10.190.213.111]) by orsmga008.jf.intel.com with ESMTP; 17 May 2021 07:08:33 -0700 From: Kumar Amber To: dev@openvswitch.org Date: Mon, 17 May 2021 19:27:08 +0530 Message-Id: <20210517135708.685517-13-kumar.amber@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210517135708.685517-1-kumar.amber@intel.com> References: <20210428091931.2090062-1-kumar.amber@intel.com> <20210517135708.685517-1-kumar.amber@intel.com> MIME-Version: 1.0 Cc: i.maximets@ovn.org Subject: [ovs-dev] [v3 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 c338c2fcd..ed61e2282 100644 --- a/lib/dpif-netdev-lookup-avx512-gather.c +++ b/lib/dpif-netdev-lookup-avx512-gather.c @@ -395,7 +395,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); }