From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A5A85C636D4 for ; Mon, 13 Feb 2023 15:40:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=cE8b2uzWhPgB2M9n8RqoF2l1RiwcrjsxPOX29Q24sxc=; b=KrPts01POXPvDo wEGww6zKPy3tQ/vyPE6zb+4q+HMcZ6+ATuMPuqDXUVk9wn/Wcct6SjYVUBFzSuqGTXC9a/9MYo9CT xt4X2NXTTyanYbc8I3X1e9hExr889mDw3ryJrKyU3I+wX9NxmJBK4su+i1OnPYQVamHTSmsccN/kd KioECJkgv1UVmN6LcgYQJTJ2nHOnAuou31IOfqGk6ush5RumowJ1uK8Kl5s4RVd1qQd4frAyVgZLg 8IqgrbAnyCKF3ivD1yxcCqYAtMeVcDQZMR03H0XvUcshhEXC5KMoHeNFKoYyqUXhpmipD4XQMwaCR ALpvgoz/dvEEdjrnJm7Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pRavK-00FFTG-Ct; Mon, 13 Feb 2023 15:39:22 +0000 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pRaun-00FF5p-Cv for linux-arm-kernel@lists.infradead.org; Mon, 13 Feb 2023 15:38:50 +0000 Received: by mail-wm1-x32f.google.com with SMTP id az4-20020a05600c600400b003dff767a1f1so9360868wmb.2 for ; Mon, 13 Feb 2023 07:38:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=ZQlTtxIUYEHa/ubjSbDgZDFaflLT7rKtPF2clbJjFdQ=; b=IkuG+5VXy1/buVb/yG+3jkuR9GTYgVMLQgivQycLe3nT6NbscEvMR0zVbWKuyyFIqE 75CzWiDBmX3R//55dD5CMZHLO35nawl+F7eAdRAHMFbcgwN54o6N4RHSZX4DwDQJtYcX 9v/YivZnQp5fuX1YNDvvREKvfYPLpUa9U7YvF6daDlaXa6qS/mKeL0Eejuuv5Hml/8Sf ofNpf/8pOKGtPLP0EP5s2RVfqADQXT8K5zw68jC/AcXS9ECSbOPPoDtQn3mh9M1LGrdJ mE3TXz+ANs4EgOWqeKy6V5QlPDrVpJ0KYhCieuEUtma6DclnGWpM0Ben4PjamNyjLVnK ZFBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=ZQlTtxIUYEHa/ubjSbDgZDFaflLT7rKtPF2clbJjFdQ=; b=SinInnr5MVeSgS15hdeBZ6GL2AwdI2t/zb1KmvaXuRj2vB4GJRk95/SBX4+IZiLMdL ocO1QnF0Dak7hFGaxW+8vD18baKqNmdhaj7WiIVYsdKHla8h4murER1GHiiXvUtxhOf5 NE748vuCKuY/9Su2hoTZbQSL7BV9ewIvn/9kM7QXI8KCnHqoWRN4plJgT1Vf8eCYhWC7 FZwTCp5fNbjaKOY+zlum1xGKE5MOR4uFwyZy1Bko5RIxP39l4BFpSrIBO27X4tqgDke7 ANMHYPlq1sxsp9MjL+VGhIO+qISaTYME2+gL3EYVhfE2SXyACwf2z4aUXiTTR7kDSZ34 0XdA== X-Gm-Message-State: AO0yUKXYlZAaUepNlkfujoeG/xNvCNBvwE+ckfU6l+NNGr8YA9z0l/zE GuTcCNpSiCpGdG/cQ5ZGv8g= X-Google-Smtp-Source: AK7set/zTcHr+nUd0IzYxEeesl8wx99P2JYnFPRqebR5Ib4Tk7OFyUNhjuNSUh856w9HUz9D5ZSr2g== X-Received: by 2002:a05:600c:2e87:b0:3e0:1a9:b1f5 with SMTP id p7-20020a05600c2e8700b003e001a9b1f5mr19081636wmn.28.1676302725704; Mon, 13 Feb 2023 07:38:45 -0800 (PST) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id f24-20020a05600c491800b003dc0cb5e3f1sm13408900wmp.46.2023.02.13.07.38.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Feb 2023 07:38:45 -0800 (PST) Date: Mon, 13 Feb 2023 18:38:40 +0300 From: Dan Carpenter To: Steen Hegelund Cc: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , UNGLinuxDriver@microchip.com, Randy Dunlap , Casper Andersson , Russell King , Wan Jiabing , Nathan Huckleberry , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Daniel Machon , Horatiu Vultur , Lars Povlsen , Michael Walle Subject: Re: [PATCH net-next 02/10] net: microchip: sparx5: Clear rule counter even if lookup is disabled Message-ID: References: <20230213092426.1331379-1-steen.hegelund@microchip.com> <20230213092426.1331379-3-steen.hegelund@microchip.com> <54791f7d5e4211b03a53e890a5d8a678039bec6d.camel@microchip.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <54791f7d5e4211b03a53e890a5d8a678039bec6d.camel@microchip.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230213_073849_535022_CA53B806 X-CRM114-Status: GOOD ( 13.32 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Feb 13, 2023 at 04:32:21PM +0100, Steen Hegelund wrote: > There are two writes to the 792 address as the counter recides with the start of > the rule (the lowest address of the rule). Instead of being written after the > rule, it is now being written before the rule, so the test array that records > the order of the write operations gets changed. > > The is2_admin.last_used_addr on the other hand records the "low water mark" of > used addresses in the VCAP instance, so it does not change as the rule size is > the same. That explains it. Thanks! regards, dan carpenter _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel