Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp3722326rdb; Sun, 10 Dec 2023 18:53:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IHRK6Jc2bF76PW3hLXDMQUbmCz+RI/fYFhx1169rvNc3Uquo/TJG7D+Z4tWzSWFAU0Fj+W1 X-Received: by 2002:a05:6358:7e4b:b0:168:e614:ace9 with SMTP id p11-20020a0563587e4b00b00168e614ace9mr4298506rwm.11.1702263219679; Sun, 10 Dec 2023 18:53:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702263219; cv=none; d=google.com; s=arc-20160816; b=ULdNL6/3XBfsKED/hBnGEw/ZMKc8JN40wNONuv5QgjJa4Mr2WJPeVHyn8uCaC0pHlg WOFisGc4JI4/B6dtxAptecZdv+/aGh6nX7KroBKNxnehYmyswiLAj5qPq0x2g6R7/EGP F8RZCKkQm/3HmAIoBV02soUlUK9Y32QUq6LjDpFCeAFkfgm02Tq0p8hCiuuCZpECTCfp 7Z3sAoUBWkPZvCIcwju/yYe0wEBCTHkYAhdwCx2K44oG9UYrX0rts6TE13zSAL4JeY0J Fv5I2i+EMOCS9Y+NyNVLYDdcxuscL9aA/Dz/ElPzvcm5YJE6qo7M5IP7qr3IZB6ChwMa DfyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:feedback-id :dkim-signature:dkim-signature; bh=4JcWAGFDAKqU0mXy71u7gfYt92DBUCLVc/XBkrUumIY=; fh=vo8MzjNkWMRIhzgs4dMlMMsMN7rLheRajF31iH8uUSo=; b=LlO4kZsueuXYd2B/PRA6iwMLc1h7W+Ia6R77CibP0q3eCbwamnBGWw0xZt2uGaFreK ym1j6/fFxZhQmn+pgyt7R8dQpSnWJLJ4GAIpz8hR65EsxZ7umsRzSQDsPP6SOpg2p+X6 1PT2AOVaj0h0AbS+TILO78UN0ikgHdtknQto1Bqv/zwgES228qTKuREQ2oCfdKlmCD0J kidiJV/gDZtaRX/ENcCqXADO8/Q7h+mnaovTqsd1kiJzf3mtCPcokvXQ1KMK2Tx3NRCG 6R+vZcvzvqNCfaN4L9xZa6tV4r7hrBvrsKEEYrZB078iOmfBVZqrYMRmaljF2UGRN8l3 H2Wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@stwcx.xyz header.s=fm3 header.b=KDltS9Sc; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="2/JLh+Kl"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id hg24-20020a17090b301800b002886cf9444asi6743702pjb.93.2023.12.10.18.53.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Dec 2023 18:53:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@stwcx.xyz header.s=fm3 header.b=KDltS9Sc; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="2/JLh+Kl"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id EDCE2806B13D; Sun, 10 Dec 2023 18:52:21 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233461AbjLKCvy (ORCPT + 99 others); Sun, 10 Dec 2023 21:51:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233591AbjLKCvk (ORCPT ); Sun, 10 Dec 2023 21:51:40 -0500 Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 629EF1FE8; Sun, 10 Dec 2023 18:51:02 -0800 (PST) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 0DB723200A9D; Sun, 10 Dec 2023 21:50:58 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sun, 10 Dec 2023 21:50:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stwcx.xyz; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1702263058; x=1702349458; bh=4J cWAGFDAKqU0mXy71u7gfYt92DBUCLVc/XBkrUumIY=; b=KDltS9ScE28iWnXFTe ybWLpPM5SNGL1hKC3iFLgi4DGgPmzez4toJ7OzOxoetvY1O5TJJLXLQ626mJZDNP +2PVp9UbADk8jzX41Z/y5AxH+G5lj4qaUecXJxbo2Gh3UXN1OiylX0AVDIkA3S/N wydlgo73UbFcnvvFfTQqr1UWZklZdyj+6Cqck3MFI/TJJ0u0OiFXGc9ke9v9PONq 7vjp7SgpiCrCuW/7UUYRP2rWACoG/YNV/Gw8g+D4M4NrNCXmXk+FScsw4seroNof 1SRJa2OLDSTV0cdEJbuuRF/qnYwAMWIKDGVXL0hBUan/Ftuak9MzTaSGf1W945dI 5AyQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1702263058; x=1702349458; bh=4JcWAGFDAKqU0 mXy71u7gfYt92DBUCLVc/XBkrUumIY=; b=2/JLh+Kl9NVINPXq99u/g7xozl+y6 ns4zJpIPDx7EPWdOL24RYzBJxS5RgiPFgxNPYSgMB1sgL2ooPV1/ByP8MbuslhN1 xC90YXnTcUz88isHTmm6nznXLzaI5OTL00ZR+fQjqHFfZ3s622vdVyWrCFUTCOwe T70A2SfDjwKC4ARgEdhI4qcFp20n1SiWWmNOmi9JKlSjFU+ihtf08odUcNRCKr91 ALVADD0TAle9BYTcrlLp9rwM3Og64DLiWSnhh7YFvqSVpEZ/iwstw9+UKVzhQ+wY zgxjij66HG/K5+peBjiShENXypMjSAnMfH2r40kBQqIiSo0Ciw0cgizLg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudeluddghedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdlfeehmdenucfjughrpeffhf fvvefukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefrrghtrhhitghkucghihhl lhhirghmshcuoehprghtrhhitghksehsthiftgigrdighiiiqeenucggtffrrghtthgvrh hnpeehfeejheeftdejiedvfeekffehledukeduleelffekgfdtleduledvtdegtdehkeen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehprghtrh hitghksehsthiftgigrdighiii X-ME-Proxy: Feedback-ID: i68a1478a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 10 Dec 2023 21:50:57 -0500 (EST) Date: Sun, 10 Dec 2023 20:50:56 -0600 From: Patrick Williams To: Ivan Mikhaylov Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, pabeni@redhat.com, peter@pjd.dev, sam@mendozajonas.com Subject: Re: [PATCH net-next v2 3/3] net/ncsi: Add NC-SI 1.2 Get MC MAC Address command Message-ID: References: <20231114160737.3209218-4-patrick@stwcx.xyz> <20231210215356.4154-1-fr0st61te@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="+15r0ml6tBo+jei6" Content-Disposition: inline In-Reply-To: <20231210215356.4154-1-fr0st61te@gmail.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Sun, 10 Dec 2023 18:52:22 -0800 (PST) --+15r0ml6tBo+jei6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 11, 2023 at 12:53:56AM +0300, Ivan Mikhaylov wrote: >=20 > seems very similar to ncsi_rsp_handler_oem_gma except address_count, why = it > shouldn't be part of this call with additional param? What's inside it ju= st > code duplicity of ncsi_rsp_handler_oem_gma. >=20 > And as we talked in openbmc mailing list, ndo_set_mac_address do not noti= fy > network layer about mac change and this fixed part already in > ncsi_rsp_handler_oem_gma with 790071347a0a1a89e618eedcd51c687ea783aeb3 . >=20 > David, any actions should be needed about fixing it in net-next? Need it = to > put patch above with fix or do the revert from net-next and make it right? I agree that both of your recommendations might make the code better, but I don't see why we would need to revert it. The code does the intended function for many use cases, even if you've identified a few where calling `dev_set_mac_address` would be better. Either you or I can send a "Fixes: " on this commit to improve the handling as you're proposing. While the change is likely trivial, I have not had any chance to test it yet, so I've not sent it up myself. If you want to refactor the code to reduce duplication, I think that should be an entirely separate proposal. --=20 Patrick Williams --+15r0ml6tBo+jei6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEBGD9ii4LE9cNbqJBqwNHzC0AwRkFAmV2eQ8ACgkQqwNHzC0A wRmp3A/+NnxL8+c3M1OsmMuJUdi5Fe2npPOc/1Xl5ZNPQQ7JrAb4bOjLNcWpUD9b Z3R2rEzRHNoWQvI4f2T34Sx/z2/Pelmvii9P85YkubOfl6tq+YXY5sDDomjtZmnI CTQmO8QU8AB7tVS+4t3ElcRE/hKmKzpZNcTFk7mOFXOphO6jpNiVphqHsJoLv9pL VaPuRdyKoEfRjjAF05wkjnFW95SyyNnwd4GpxCX1gaem44mLXtISPy8TxI9W8XFU EVVW+MItPTNtpm8daHgBN7dojAZjlD8To9hcrLCYq0jOHuPD2XZT2yIiPYba4rpx Ee/hR3u32P0NYqbku8L7eut7JXD0ThjPvvZaUUd72vI2HjkTG0Wep08kUxbokD7+ iU2E7SOhT7PxpceUcTpuGVYDFPfcr0JtET7b4fxl41XVQiXHP33RqYipIVNX3w/1 ZS5aSoflE5a8YRMSXUtq69cMbJgcHvjzlxHKZt1boL7l3rWBgeEWX+dXWrO3rVmX IUh7cxQJQIey30+8Ld1E28mhomykNGwb+zajV5fZhEO2MANi5mOn+QXGgzAi+bTX Fl4Awrg2B6uO+F5SDGGhv11rtKPUMZBVABEsitvI0cCTGbfEkNdaRqOxG3w0WR9f 65KwbXs0uMKSsIz2THSXnQ/kww2jOfJtNfCAVwl+OP5PZWBMks0= =Fw1V -----END PGP SIGNATURE----- --+15r0ml6tBo+jei6--