Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp457445lqt; Thu, 6 Jun 2024 08:26:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWjSv2+KbzTMiNc0ciSCsJiaWNyd2h7vTXT0/VJHobihP0tcM5FaPnMp2XxLjcKsHSQ3l7Fo3i8MN5LoiD/lufKcsuZJqhbvJ2B3exdZw== X-Google-Smtp-Source: AGHT+IHpVSfFEsyTj74R+cSr+cdpcAVRNY7zzDISpG01DAAvvgclNQ1e9QgoNdFQAQXZnBJTT/6Y X-Received: by 2002:a05:620a:318c:b0:795:2d5c:2a4e with SMTP id af79cd13be357-7952f0d63e7mr515965385a.13.1717687615824; Thu, 06 Jun 2024 08:26:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717687615; cv=pass; d=google.com; s=arc-20160816; b=JhSNqVhBV7OntmUYT7nDTsxFnldneLEuSMgH7Q+cx83SawOiRefBDFco5ny6O3+wci G22cok9bZnyTQHDs7DWYc1cLowC2ky4Dvny/28bKsC1MKKJ4h+0ScVLRz8KVsVZg9CMO 5ekmSTSCfaL58IyB4YvrLl8PlIKUtkY8IXL/5f6ff7aowt/TMssO5VirqYze/EyjmUGV MaWEnlFdHzgQwcAm2Xo56SbTJozC+zun8PJekZVE3Pq5FOic0i1pVVilSVRWsUdTkY6I I+Ptabp6RyylzXAt9WomKErAUCVWndKIsdFxOkW0ZMcQA/s/pWMQSEFRmfDD+KDU8QK1 hMzg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=ly6BH2m3JoP+4FyQwUkwBE0M0aUYqYUYUqs4MtHE/7E=; fh=FX46MdbMyN4shPzVWt2cfxNy6G9ad3v8UwwDFB/m7vU=; b=qdVuagdIgTcq7Cozlqjxk4bdcLA2ngY54XAzEtLZtq7p3lqzUyFsTQPJBvAvWZCSVa JWjPWGXArHxKuWZelGvc0AvyUgzpPXE6BMvPFgUXdsOlCpXVPBEXcg7EG/jhu5aCgbPg ETSaxK2eFfdjhTkGgJJVql4m83/6pcd3pw0oTnfThI53QiIJnvDeq8uclO5OcE7Lck1A a3/Gg9g9oNSuV8YXm6rmaDosRSS4E+m70wKCBMs+H70jR0Ly99t1taNOOlhMmHtkCfNW wFl0YDABYXXiZtCjher1PgVaewBcsqf0vvIRyF5KsiP4VINiODSJla79XYSFAxaYw+m9 VBJg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=n9YYwlQq; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-204573-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204573-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-795332ebab4si154047385a.401.2024.06.06.08.26.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 08:26:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204573-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=n9YYwlQq; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-204573-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204573-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 85FBE1C216CF for ; Thu, 6 Jun 2024 15:26:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9F6DE19308A; Thu, 6 Jun 2024 15:26:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="n9YYwlQq" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 BC99C195FE0; Thu, 6 Jun 2024 15:26:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717687604; cv=none; b=fkgpCM8S8D6ODVSfyXLzV8E8sbncTTteKTfsKdYnJUcT7GC11WcGtN1jrrvuQSeQBulRm0oLyGeBRWfhN5BPmF5fTA6fjZhQ7wZc1mIx8FKGw77deBtk0xMUy9MRVqUAQx6JmNGutao5Pa63rnC8PjhyzNtYI8St+S6C0e/hlXU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717687604; c=relaxed/simple; bh=g9DU+5xnLtEMAIzCRN/FCtyy6ez/NLtJEwNFQWO4WeU=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=IZ/68UjvnzQ7AowcjSNp2H19tV3qXBXzNreVjJbx7qpvtAZyHKrQIGRIfHmRT8OSdV4Mkbu8cxWZmmkIKwlE04GzpxXzn6xrt6a3gy0Su5WIItXF2pAwSKSQFHjCA/VeVgBoRT9ADFU+g5VN4MYusCLnbIJ+RglSW8q9nifqewA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=n9YYwlQq; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 876D4C32781; Thu, 6 Jun 2024 15:26:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717687604; bh=g9DU+5xnLtEMAIzCRN/FCtyy6ez/NLtJEwNFQWO4WeU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=n9YYwlQqi8SfeLRIhucMQqvCL6MADLMFzkhp4D8C64U83lkJpHMBY37hgmjOP8g2u PbB1bOkRo7ATQhklm+X/pB4T1W5TrkY+UO/qEFmXSBLN0Zo4jqd0mC2sC0/JVpGOO0 /3PNRJ8Id42EncZ/nkr9/Ue9MLgd1Yx558CAvMQRrGSkv+GVhfIJGC82tdJjOfVDBw TpxpgHNYaEB/Y2szEPhbaNeEgUOIKoDMVjg+Jcc7V8PhWKisjFiTvdqQY7Y1fqR1XR A/ljObxNcUa6mEUqJ0AikEPWNu7IipRamnOIiM0qMzOlHowrF1r4emJGKJZKcuHfJY tM9V/P3wHarxw== Date: Thu, 6 Jun 2024 08:26:42 -0700 From: Jakub Kicinski To: Elad Yifee Cc: Felix Fietkau , Sean Wang , Mark Lee , Lorenzo Bianconi , "David S. Miller" , Eric Dumazet , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , Russell King , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Daniel Golle Subject: Re: [PATCH net-next v5] net: ethernet: mtk_eth_soc: ppe: add support for multiple PPEs Message-ID: <20240606082642.397c0dc0@kernel.org> In-Reply-To: References: <20240602173247.12651-1-eladwf@gmail.com> <20240605194305.194286d8@kernel.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; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 6 Jun 2024 08:56:49 +0300 Elad Yifee wrote: > > I thought Daniel's suggestion was to remove this field. > > I don't see your rebuke to that point or how it's addressed in the code. > > Also it would be good if you CCed Daniel, always CC people who gave you > > feedback. > I talked to Daniel in private, I should have done that publicly. > Relying solely on ifindex%ppe_num could potentially lead to more than > one GMAC assigned to the same PPE. > Since the ingress device could be a non mtk type, I added that sanity check. > I think the additional field is a small price to keep things clear and simple. Got it, could you include the justification for sticking to the current method in the commit message, maybe?