Received: by 2002:ab2:2441:0:b0:1f3:1f8c:d0c6 with SMTP id k1csp107382lqe; Thu, 4 Apr 2024 00:40:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXnjcMkDPMAtiDMiOFT6i0+tCzDHMlxyICFxtldhn4rF1yD+aMQKYXYvZfqpcg+Q5lWAJhkN17GMP/cQOXGs/+KUeDmhgYElbGQNpDO1Q== X-Google-Smtp-Source: AGHT+IGzcXmuzhkDuXCcCHH+uLDu2pItIJ26VCevkjwaAeSxdXyBTu6iJzow+5U9lOhOj1ud1YuS X-Received: by 2002:a17:902:c3c5:b0:1e2:307e:8c99 with SMTP id j5-20020a170902c3c500b001e2307e8c99mr1361180plj.50.1712216411445; Thu, 04 Apr 2024 00:40:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712216411; cv=pass; d=google.com; s=arc-20160816; b=QfNsfouF559qvQPkvUqfLkhPSVT2y4NaakaAbkj762gfVZ4xkuSpNfslRcohfu0Kpv KgT/B5oZ9fqN+5KfBJXejy5e3z3A9wtVdts6UgkuHp53fw360iM08A4GRs+If3t0Pbk0 taALq2U4x4wNfUzv3k6FrpyaczMNob8/ZEQCCBQXEaKhlD02IZBh6KR3xUuuG43Gz00L O8K1Z1W+gVwUBzKCONyzcCaBmeVJ1wFaCNdBbLIwvCscBz370mChSu2hBHMFg2JvKzdj PO32xWVpx0jZlnOXzW4dwgRDZRkL2hXcR7566JL9TtRAPI/+2q5yfuMelADG0IJofXyv OY3w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=t2tlqAQDqg/5deVRzvMbMah/jpwOnEqnfEQox5MDopI=; fh=le6cWZG8ODMbWXOIdLKdHSPDY1MaPJGDv+P4ODDzEfk=; b=zNxqK7IGfK8/PgXXhk+PhhkC0X68AGXgApjR7adddc73FiMedRcnA9lCG6EKaOIdsZ hrDNhaZmijqQsWvPxk1wem7b5vSt107kBDZ21toVw6XJAHfPB2oYbVj3H4Xh4b06s3jI WNsj83y1RJgWvFc0+QhUD3K4lg3LDftEheMfgfz3VFT9AEjeKhWW3J8MgQSdCrTEIz9x RVnMV8rWIiLXPJfmazqgOxMzonaG8FrKYmqBnphh+gBwJ5vJDTiueC/YQpj4hyH+inUv KyQBlLMQbi47wjmDJcfGgvHyLU6n0E+iLnLdBNFkcJByb4FixrNWlqnbwz4Z4TOpzCae MXrA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=e0nv9o2m; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-131030-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131030-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id x1-20020a170902a38100b001e0334705cbsi14067218pla.597.2024.04.04.00.40.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 00:40:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131030-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=e0nv9o2m; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-131030-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131030-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 4F4A2B22C4E for ; Thu, 4 Apr 2024 07:28:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 808DB5A119; Thu, 4 Apr 2024 07:27:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="e0nv9o2m" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 39C4659158 for ; Thu, 4 Apr 2024 07:27:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712215674; cv=none; b=BvIPhW2kmCWECkh3/VnHoNIZvaYNQMfuBQLPbrqYEoOMaBcXEQs4s/oJjO2VCVbBYaW3RitSMnpmJFEnzBxPS7mElE53rTjIy3Zu+Y2ERX+rCHSev3HNcMo5TvFRaN8BF4+Zy2wur13oi7J+ysvu6OuJzbFKDCUid7ie56NfPk4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712215674; c=relaxed/simple; bh=GSH6m/6gmzpdE4ilkVc5O/E3ikW4/Ya8/okCEmiU6Qg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=jOJ/9A8U4zNZjvk/jPe4pc3qzSB1bzxR2Ikm+cyJ+zkpYXfNRz+z7YwZ18Vyy3OqIbFbzVCZoltziy15GBoE8b+R/SWUNCGQjw5Vq+7AONKJjyIZXM6Pg/b05AVlXWYLquMX2hv0rM9EAJrXvwLU9kZCexsc/a5ZWNmiSwQGMtg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=e0nv9o2m; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1712215672; 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: in-reply-to:in-reply-to:references:references; bh=t2tlqAQDqg/5deVRzvMbMah/jpwOnEqnfEQox5MDopI=; b=e0nv9o2mHepGFzN5l5DEOpFJJWYqovEYryi9tjlgEpQE0D4MKGiLpLy4GDpJMsn3H0drKV NN0k6OwulvipJ7TCCf4a4G39/88Qcv/YZ2gxqUxaDq4laKcDJevSHVqqXH4eo6bPHUIYkW 7OVvssI7m0xQGVXFKw7Z+EefQco+7n4= Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-558-1YUdGLlgOwCnxL2-Jv35nA-1; Thu, 04 Apr 2024 03:27:50 -0400 X-MC-Unique: 1YUdGLlgOwCnxL2-Jv35nA-1 Received: by mail-ej1-f69.google.com with SMTP id a640c23a62f3a-a5193257fb7so1165666b.2 for ; Thu, 04 Apr 2024 00:27:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712215669; x=1712820469; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=t2tlqAQDqg/5deVRzvMbMah/jpwOnEqnfEQox5MDopI=; b=w+tsuX8bpqq5GHsRcLqKwqj2zHkjvutvPnAAfsmPEsVrZCruMflL1hi1JbflWEkzKs 99Rktk0ah999gx4WTtUouUpUoHIzt1P1P3W7wFTZJbLZlFgKI2jspmh8ovUlfW09v0Am 5ZOw0MuLW2VFLU1hG2+daxN8FxldIzb/PMt/w/g86APMkptB7mqNKzDw575OL4QZVQgO j3400eyNFQXDr5QEBe36xGQ0Pdcnd/T59YXzGx8O9cZ9R42EvfsYZ6En+1s4Es3K054f ymY0bYIHvca0nF5txacJ/7PpYjcxSQDCikRt+E2a4qUS/gEMGxgBjQDSysPHwSOPfwbj Wv/w== X-Forwarded-Encrypted: i=1; AJvYcCXtjFBIDy3LCXeTPv+dpjBeRQLuBSNK5GPDOjLZ/gulL6isrkW2dlLrncB6qAIToKREU6VpZnpcH14yQbobzVbRe/+4LoEYwOvExNMj X-Gm-Message-State: AOJu0YyIuxXOg6LuAZDoHb411yhFcLtsOWbsWQGWqMd8BIHQxLRcEyDP gs1VR+Luo9HHxAfSJ09TUJm/tqz5INyBQiiX/j0hZWPUfq2+VICnQuU5aKq3oLtaXDFiwyWtSlg vBQtyxOCg4wlRjGeXkL01zA5oksUBbdYxS+AWIAunbRwqjabByUVrUB2Jg1GoGA== X-Received: by 2002:a17:906:4804:b0:a4e:2777:37c7 with SMTP id w4-20020a170906480400b00a4e277737c7mr896127ejq.49.1712215669543; Thu, 04 Apr 2024 00:27:49 -0700 (PDT) X-Received: by 2002:a17:906:4804:b0:a4e:2777:37c7 with SMTP id w4-20020a170906480400b00a4e277737c7mr896104ejq.49.1712215669185; Thu, 04 Apr 2024 00:27:49 -0700 (PDT) Received: from [172.16.2.75] (5920ab7b.static.cust.trined.nl. [89.32.171.123]) by smtp.gmail.com with ESMTPSA id g4-20020a17090669c400b00a4673706b4dsm8698717ejs.78.2024.04.04.00.27.48 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Apr 2024 00:27:48 -0700 (PDT) From: Eelco Chaudron To: Ilya Maximets Cc: netdev@vger.kernel.org, dev@openvswitch.org, linux-kernel@vger.kernel.org, Eric Dumazet , Jakub Kicinski , Paolo Abeni , "David S. Miller" Subject: Re: [ovs-dev] [PATCH net] net: openvswitch: fix unwanted error log on timeout policy probing Date: Thu, 04 Apr 2024 09:27:47 +0200 X-Mailer: MailMate (1.14r6028) Message-ID: In-Reply-To: <20240403203803.2137962-1-i.maximets@ovn.org> References: <20240403203803.2137962-1-i.maximets@ovn.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On 3 Apr 2024, at 22:38, Ilya Maximets wrote: > On startup, ovs-vswitchd probes different datapath features including > support for timeout policies. While probing, it tries to execute > certain operations with OVS_PACKET_ATTR_PROBE or OVS_FLOW_ATTR_PROBE > attributes set. These attributes tell the openvswitch module to not > log any errors when they occur as it is expected that some of the > probes will fail. > > For some reason, setting the timeout policy ignores the PROBE attribute > and logs a failure anyway. This is causing the following kernel log > on each re-start of ovs-vswitchd: > > kernel: Failed to associated timeout policy `ovs_test_tp' > > Fix that by using the same logging macro that all other messages are > using. The message will still be printed at info level when needed > and will be rate limited, but with a net rate limiter instead of > generic printk one. > > The nf_ct_set_timeout() itself will still print some info messages, > but at least this change makes logging in openvswitch module more > consistent. > > Fixes: 06bd2bdf19d2 ("openvswitch: Add timeout support to ct action") > Signed-off-by: Ilya Maximets > --- Thanks for fixing this annoying startup message! The change looks good to me. Acked-by: Eelco Chaudron