Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2688732lqz; Wed, 3 Apr 2024 06:03:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVg8Lx2S2l9o+JXJQFenF/RiUje/I+8HbF2wnukPsvRWCtW5K5tUVcNC6gYPtF6KuevYffdjNg2+RyT9IHZfGznS19J1zMnUpDZZC6zFQ== X-Google-Smtp-Source: AGHT+IFL6TSE/mOmBnU5yYlIsCITryyYmWthqrhE0e5pHqADFFceNra0XEUL2pv5YbxnjFpdbKST X-Received: by 2002:a17:90a:c28f:b0:2a2:648a:74fa with SMTP id f15-20020a17090ac28f00b002a2648a74famr3999843pjt.42.1712149422748; Wed, 03 Apr 2024 06:03:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712149422; cv=pass; d=google.com; s=arc-20160816; b=eTUqBOg4JaeAZFGbRJtrPzWiW8OmcuzdcoaG9hLCbyhDiTs8LNkFtqBrA115jBGdq9 FEfjmTYc9UTvMVmhEhkVP0l5+2Tb2pYhcxhU+a+PNBAY28cUiUR6W8Lu/tyhpD3k6ZDb RCK7z2egSRPMen8FxfbsEYcvd3DmtNHXtREjaRocWan1Iw7v9tcGKK6KDg+SGfY7oAm8 RDob366jPo7k56oDg8mocrF3B1lZFUeze9njr/8Fz6plqgMy3FXMJUSAV1HrvANBVs/C LF0adT1OJXTrZhVyW7QCU+2aP3ODEUUIdRb6Ub6bTLmAY7fR6dvpDhlrzUHWueyaL3HW 0ZyA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=JsIhv9PFZD1JBfDzPu9uaWZvsaLK724whHEFTgxHUgM=; fh=s2NLq+2kwEJQIXXQ542jqMRhnCPQGmZUJgO9lQ2hN1c=; b=rgnK8o8UHpAFaHf/frdBz9pGvW1b+gWdIK2YWfhcMt6X0NhNzO4b9PxVtL2Qz2Bg2M kp9ifuyCbxVTUqh+vu/NQgtrQ3LpS6lq7GulY7MA5QEzpzZuQMV1oTTlsajqyrhfHgxK 0qLTs3vGdrr9teh4DOIx+2SXvwq9Uq3FvNKkjK7+UbIgMRSc+nLax8OR4YmdtYbdQmdU vDlP5veeQD8SoOeDB2HpJdVLHhH3T65Jqd9NMUB5LhE+Rna+w6RUZc5fa+3uYRhfxKxa RbI8WcyBLI9583CW9VEbjtoV/7dYC0KNVNIic5nYsuUn2mtKmNPt9Z2Z1PieLvONPs6n kSZw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=UsZwPuMl; 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-129770-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129770-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d14-20020a17090ab30e00b002a2497adab9si4063268pjr.74.2024.04.03.06.03.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 06:03:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-129770-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=UsZwPuMl; 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-129770-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129770-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 5F52D28EBBB for ; Wed, 3 Apr 2024 13:02:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 48235147C79; Wed, 3 Apr 2024 13:02:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UsZwPuMl" Received: from mail-qt1-f173.google.com (mail-qt1-f173.google.com [209.85.160.173]) (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 08ACB146A7E; Wed, 3 Apr 2024 13:02:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712149327; cv=none; b=ebzxUMT/Y+aeeX/296Kz/JxExnx7XUrVeSX5JYtX0rPej7pT1ine1Mc6DN7lNpkY/JOKSCRFTkzAacTiVSKEqC58I3IxpEnI0ncZezGaVGGTa/vjnjPUycANLlSx5bZqynS7Gz/TjO+H8ykZRgpKTiBZRG+HWhs74AFOtNB/2vg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712149327; c=relaxed/simple; bh=Kg6xkDoIdkFQ/OcS/14OvJToIEE8kBErgEbWYH3b2+0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=I1mITPUfLbNjD3ja08bVuVBKgh6njLSrTt39Hn4wQj7EwU2C7wcs5SgHnNLroio2VhONCq5rj5rIFXJhG9Z/S8I5ShGoTtGKHy2cS5kiWiAeWlRRj6rLTAZ6mwhY9W+YDe0LAx0KlifOjgr6Rq2YZwtoRhdm1xAyFpPBxkMv85I= 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=UsZwPuMl; arc=none smtp.client-ip=209.85.160.173 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-qt1-f173.google.com with SMTP id d75a77b69052e-4317aed91baso40571731cf.0; Wed, 03 Apr 2024 06:02:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712149325; x=1712754125; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=JsIhv9PFZD1JBfDzPu9uaWZvsaLK724whHEFTgxHUgM=; b=UsZwPuMlHl5/hwYN1JFhKJycmweygfwvhGif7SQJk5tVr3t9NIEBALyfi1fVfhJqIo gWDH9rWFaXEnAMORR/GSN+NHRj+h1Y0sKPX/NMuV2MgvklGVF0gSOvi7wMG4wz/Nm8M/ xOCSQ258+ssSg8/zolS5fg+a9EW7UxQ/rsMvJjIJImhF4bQruOI5n5u4/RyDCEA0nCjo dLNAPHU6na5LnmKc9c5M2TniotAxWdnDNw2jyUTNajctJh910ycXT3Bt+jbnlJAavzml CNUkIvq2nDozU1+hW50n9FLJcNJBdUC2AbfroflS1pXvUKrLnCY5pXTklVn+xAeOwghE FM0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712149325; x=1712754125; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=JsIhv9PFZD1JBfDzPu9uaWZvsaLK724whHEFTgxHUgM=; b=bB544VgxIwSzK645oqu2aL4w9rOBrKNC6plDbPwj+h9Q1ZUJVBsHdHA8/IjRGlLSdY vY8pi/UfuGHc6bJ6cclG7BwPl6R1ADHbWCI5WTfyQTIXSSUGIZR/2ZBE21RxIXJtS/Wv 6SobBQDRlm+JQpchbMtxNTjzgMp/ATUpT66TPvglDV4AjXoKy7wN1bUAo6pumdFgGE3S si2vadx77BKmHXxbkTf7RwnvHU3tdzupIddGSQErN8nEj/BfHTVHysdyyJ1QkDNqDK4f +fp8vw5mXO+RX+sif5QxTVmGKjXFttCpgSLLAhM+e47HnuCy8G9qwdXOVz0NjlTgi4DE +NFA== X-Forwarded-Encrypted: i=1; AJvYcCVHW6p+RRFrHAlZ7JJp91L4cCpD5A4vY2UQ7Y0j7PHrgHSYVME941XRbFK59AJuRbBrff18skLQ4Wba+vbeSzmVCUTAH+KswQY0E9Qu5y80AvE6kJe7XPFIr7kqj8TuqKphNNKo X-Gm-Message-State: AOJu0YyB+PNbI9bBTUKDy6M8evS5TqlAex5OVpvou7uFh6ILXeBzy3Rr 62fGPXaFGp3DYkau4IHnVLI2//hkGB9G2cAQj0r+fYur2DHQyqvOwQ1lxMcZ X-Received: by 2002:a05:622a:295:b0:432:b6ae:f68a with SMTP id z21-20020a05622a029500b00432b6aef68amr19977825qtw.53.1712149324976; Wed, 03 Apr 2024 06:02:04 -0700 (PDT) Received: from [192.168.1.3] (ip68-4-215-93.oc.oc.cox.net. [68.4.215.93]) by smtp.gmail.com with ESMTPSA id bn7-20020a05622a1dc700b00432ffdf1b38sm2104452qtb.10.2024.04.03.06.02.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Apr 2024 06:02:04 -0700 (PDT) Message-ID: <31521d1f-0080-4a18-99ca-78d2e9c64e37@gmail.com> Date: Wed, 3 Apr 2024 06:01:59 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v2 3/8] net: dsa: microchip: ksz8: Refactor ksz8_fdb_dump() To: Oleksij Rempel , "David S. Miller" , Andrew Lunn , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Vladimir Oltean , Woojung Huh , Arun Ramadoss Cc: kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, UNGLinuxDriver@microchip.com, =?UTF-8?Q?S=C3=B8ren_Andersen?= References: <20240403125039.3414824-1-o.rempel@pengutronix.de> <20240403125039.3414824-4-o.rempel@pengutronix.de> Content-Language: en-US From: Florian Fainelli Autocrypt: addr=f.fainelli@gmail.com; keydata= xsDiBEjPuBIRBACW9MxSJU9fvEOCTnRNqG/13rAGsj+vJqontvoDSNxRgmafP8d3nesnqPyR xGlkaOSDuu09rxuW+69Y2f1TzjFuGpBk4ysWOR85O2Nx8AJ6fYGCoeTbovrNlGT1M9obSFGQ X3IzRnWoqlfudjTO5TKoqkbOgpYqIo5n1QbEjCCwCwCg3DOH/4ug2AUUlcIT9/l3pGvoRJ0E AICDzi3l7pmC5IWn2n1mvP5247urtHFs/uusE827DDj3K8Upn2vYiOFMBhGsxAk6YKV6IP0d ZdWX6fqkJJlu9cSDvWtO1hXeHIfQIE/xcqvlRH783KrihLcsmnBqOiS6rJDO2x1eAgC8meAX SAgsrBhcgGl2Rl5gh/jkeA5ykwbxA/9u1eEuL70Qzt5APJmqVXR+kWvrqdBVPoUNy/tQ8mYc nzJJ63ng3tHhnwHXZOu8hL4nqwlYHRa9eeglXYhBqja4Zv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JJfJAsbeyDykMN7wAnBcOkbZ9BPJPNCbqU6dowLOiy8AuTYQ48m vIyQ4Ijnb6GTrtxIUDQeOBNuQC/gyyx3nbL/lVlHbxr4tb6YkhkO6shjXhQh7nQb33FjGO4P WU11Nr9i/qoV8QCo12MQEo244RRA6VMud06y/E449rWZFSTwGqb0FS0seTcYNvxt8PB2izX+ HZA8SL54j479ubxhfuoTu5nXdtFYFj5Lj5x34LKPx7MpgAmj0H7SDhpFWF2FzcC1bjiW9mjW HaKaX23Awt97AqQZXegbfkJwX2Y53ufq8Np3e1542lh3/mpiGSilCsaTahEGrHK+lIusl6mz Joil+u3k01ofvJMK0ZdzGUZ/aPMZ16LofjFA+MNxWrZFrkYmiGdv+LG45zSlZyIvzSiG2lKy kuVag+IijCIom78P9jRtB1q1Q5lwZp2TLAJlz92DmFwBg1hyFzwDADjZ2nrDxKUiybXIgZp9 aU2d++ptEGCVJOfEW4qpWCCLPbOT7XBr+g/4H3qWbs3j/cDDq7LuVYIe+wchy/iXEJaQVeTC y5arMQorqTFWlEOgRA8OP47L9knl9i4xuR0euV6DChDrguup2aJVU8JPBBgRAgAPAhsMBQJU X9LxBQkeXB3fAAoJEGFXmRW1Y3YOj4UAn3nrFLPZekMeqX5aD/aq/dsbXSfyAKC45Go0YyxV HGuUuzv+GKZ6nsysJw== In-Reply-To: <20240403125039.3414824-4-o.rempel@pengutronix.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 4/3/2024 5:50 AM, Oleksij Rempel wrote: > Refactor ksz8_fdb_dump() to address potential issues: > - Limit the number of iterations to avoid endless loops. > - Handle error codes returned by ksz8_r_dyn_mac_table(), with > an exception for -ENXIO when no more dynamic entries are detected. > > Reviewed-by: Vladimir Oltean > Signed-off-by: Oleksij Rempel Reviewed-by: Florian Fainelli -- Florian