Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2319298rdb; Wed, 21 Feb 2024 04:12:25 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVR0ebv5RMzaVPvrU34oWp2V45sw79I7xxtTkfPGTnthl73rP0Y3OI9IbAcuTkSs7rDcnY4H0u8pQUNnvHlbzAk7Ihp1xOCAap2yM0Kmg== X-Google-Smtp-Source: AGHT+IFvSGHvKwBsRub2+Ea7drBErazOYKvsCs5OoO2MmC+uwjloZ5DroghgJfULg8KaWSY2ZgWU X-Received: by 2002:a17:906:c347:b0:a3e:c6de:e5bb with SMTP id ci7-20020a170906c34700b00a3ec6dee5bbmr6555788ejb.40.1708517544961; Wed, 21 Feb 2024 04:12:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708517544; cv=pass; d=google.com; s=arc-20160816; b=egBLLsGD7QZRWm8efUl5Bv5by3Urf6sl/VXn1WoBrTpHu0VjNh9U8M3H2G3JHy3jw6 zy1q69sKaAetVed0eimn1v75my4MifyMv4SJPPgYSD7QX7RNQhf66VauG2al+rlWwZmK UCz6vPDJHYeciUxI6qXwPhNlRbIJGxoJF8wpVkyRPPkuisGzHUepSjTjKKobqK+eg84X YvvZfyyL52O4TOImVkL+uVY+ubVd9QG5PuozpPT0VTSCQ7eIhrrTS/SJLyte6YqELdHY JJ3tIoeOVrhojIAfhFND6GP80hVlfS+6Rm2oIIPD9gtS5TiQmJOFyADsl9iSloN2AZEe 0n/Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=H8qbWRcjaBqAixK335JcZcC9lTsg4DX0lD6Zkn6qa+g=; fh=vHTxf1U42RK0Ldqb57ImOEvWyIvsBBgzrHXSHHBCfSw=; b=gwrYf46GJZwgtRYDjXZ+yVPpjGTTj2ZOvIZ0iHyEqYNV1+OjFhjOA4Yvy947H6E9WO f74K9ZSwOXRWwZLFPnEudKrGWwWxf+oFw4ZBQ2CQsQ3D1myB5n60FtGeqJzKcDd4LESg QBYTL5hklhQsL65ZTkb2JEZaMb1gSxLDgNA6XJ9/qXX5g9hxmDKs48OhdJdRPxCHAy1j XyUOE6LLcdWvurNMFfFqvkp9FGT3QGjQV+sTf1d+ddmSUdf8uIMsWXTnBCBzN7LJXnBI R7ENuYeXNdlRI0i0otBDqQDd7/EZ40IGMQjrTq0cIt5SdNB6EzRoapYWFhJ0qP1r1T8r Rvcw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="J0/SbFSn"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-74686-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74686-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id du18-20020a17090772d200b00a3eb7b50c6fsi2584943ejc.932.2024.02.21.04.12.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 04:12:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74686-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="J0/SbFSn"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-74686-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74686-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 am.mirrors.kernel.org (Postfix) with ESMTPS id B17171F23B11 for ; Wed, 21 Feb 2024 12:12:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6D2C54F60D; Wed, 21 Feb 2024 12:12:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="J0/SbFSn" Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4907E523D; Wed, 21 Feb 2024 12:12:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708517535; cv=none; b=hMsv7oe1PsOxP95m53is9YWPkVn5KHGEblyVvVJZxWGhYw+QB06iKqw/qeV1NjZ2f1TlcgO4uMY48RFSo72ZPn3QlL9Xjr7uuaId6c2yTRZ+jPTDemCeQMo7qo45kR/lZcaTLqCxirFleV/gueHNF8HVmB7DF9lQFeWOK9WX5p0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708517535; c=relaxed/simple; bh=+N00AKpZ7J2ODw+foLQY6q9YlapQF1eaDkMorrMhEEg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BT4FDcYlwq1ifhsJ88/viT2qZ2bRB8qmcHJDkCBYPPIQNxVHwKMJ/uyN+XjGObr9ZlWXxK+kpwT0hZSc2/bs/9L81UUBXThXMsdLXIr5PUO95qrDL9JguZ+h5ipt6RmtLvhTbUesHvHputQxfIpAHQEgXCK91qscjhahfeQ36JQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=J0/SbFSn; arc=none smtp.client-ip=209.85.214.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-1dc1ff3ba1aso12622645ad.3; Wed, 21 Feb 2024 04:12:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708517533; x=1709122333; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=H8qbWRcjaBqAixK335JcZcC9lTsg4DX0lD6Zkn6qa+g=; b=J0/SbFSnyf0TMrBbU9UN4dwkugqGnitxVi9oGD4vivTWUyYw5nJi1HGGYlPjgUQ7Ol m5WyNKY+3k/bc8k4AE3z6BvapSVtCFgy0i64YrB0Z7yfRuB6wUNT6exbegQUXEgiNzpA /p7DPKXswpNAEFxe2HPWA4tKacAXiQWTGFlrpN1awiSA8SBOnC78oa8tA/Wx/Y6RHvO9 GtMitwsBky/S6loQHM2Bg1xzaW2Qufk8Z4irRrDNrcgyaZEzkndsNg6PQcyn4DD30OKT hEyyHfZ/3A0J7hVjgVDiVFll0814iIo9mNvKX1hCh7L3kdN4hUhYLpJ1n+gumNhA5zkS g6og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708517533; x=1709122333; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=H8qbWRcjaBqAixK335JcZcC9lTsg4DX0lD6Zkn6qa+g=; b=PtMkxg73vvBXBbiicEht9ZF7qG7FY0uHLHsF6ZWkCh6q6MeQlymcpjGXXbtru1MnZP rDn+CEkx05aY4r/dNpBF4EUo+xNg8TEDMabbxWzyLLfmfoAbOzIov9I9gGnzYtNCDK+p s5yhFL2Z4ulKTVa69xWvaCnR/lFDgtvNm7sqz3WFUXUqfVsdhM65/ymLVVb2hWYlMDvN ODpwnA6nemLf6N3jDyx3KimYPH9NvGEW6zD5n7b7mcWCR7QBSPgIArDj69HnTDcZX2/8 5oGSttBdu4PVAImRdKCmIbEhatdpH2fAMPDPOtLm47m+Pza+zogEzkl8LAswcaYClaqF ypMg== X-Forwarded-Encrypted: i=1; AJvYcCVP+P8YkcPkvNbsz7mcEeNEnZg3pKnw8PnZ0HV8aYPufSbVBmxu5+k4kykefq2zO0hRE6IYL6Reeyd9bHuzi4RTsYF0oNfzjqjG7UrrZ95tU19Drl4BCjcztt1q19egDVuC9dN2 X-Gm-Message-State: AOJu0Yw/PRLDxsxIFU4YMHyItJkC3Kn4ra8E+3LkxfPyht2T4wD8iELY 94H1SWkTx7kKmp/SBA3O7ZImwSO3Po2Olfw0MqDKPbWl0Bxdjkn1 X-Received: by 2002:a17:902:8501:b0:1dc:791:9941 with SMTP id bj1-20020a170902850100b001dc07919941mr5795930plb.65.1708517533456; Wed, 21 Feb 2024 04:12:13 -0800 (PST) Received: from Laptop-X1 ([43.228.180.230]) by smtp.gmail.com with ESMTPSA id kr7-20020a170903080700b001d74502d261sm7941572plb.115.2024.02.21.04.12.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 04:12:12 -0800 (PST) Date: Wed, 21 Feb 2024 20:12:07 +0800 From: Hangbin Liu To: Praveen Kumar Kannoju Cc: j.vosburgh@gmail.com, andy@greyhouse.net, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, rajesh.sivaramasubramaniom@oracle.com, rama.nichanamatlu@oracle.com, manjunath.b.patil@oracle.com Subject: Re: [PATCH net-next v6] bonding: rate-limit bonding driver inspect messages Message-ID: References: <20240221082752.4660-1-praveen.kannoju@oracle.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240221082752.4660-1-praveen.kannoju@oracle.com> On Wed, Feb 21, 2024 at 01:57:52PM +0530, Praveen Kumar Kannoju wrote: > Through the routine bond_mii_monitor(), bonding driver inspects and commits > the slave state changes. During the times when slave state change and > failure in aqcuiring rtnl lock happen at the same time, the routine > bond_mii_monitor() reschedules itself to come around after 1 msec to commit > the new state. > > During this, it executes the routine bond_miimon_inspect() to re-inspect > the state chane and prints the corresponding slave state on to the console. > Hence we do see a message at every 1 msec till the rtnl lock is acquired > and state chage is committed. > > This patch doesn't change how bond functions. It only simply limits this > kind of log flood. > > Signed-off-by: Praveen Kumar Kannoju > --- > v6: > - Minor space additions addressed. > v5: https://lore.kernel.org/all/20240221050809.4372-1-praveen.kannoju@oracle.com/ > - Redundant indentation addressed. > v4: https://lore.kernel.org/all/20240220050437.5623-1-praveen.kannoju@oracle.com/ > - Rectification in the patch subject and versioning details. > v3: https://lore.kernel.org/lkml/20240219133721.4567-1-praveen.kannoju@oracle.com/ > - Commit message is modified to provide summary of the issue, because of > which rate-limiting the bonding driver messages is needed. > v2: https://lore.kernel.org/lkml/20240215172554.4211-1-praveen.kannoju@oracle.com/ > - Use exising net_ratelimit() instead of introducing new rate-limit > parameter. > v1: https://lore.kernel.org/lkml/20240214044245.33170-1-praveen.kannoju@oracle.com/ > --- Thanks for your patient update. Reviewed-by: Hangbin Liu