Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp690408rwl; Thu, 5 Jan 2023 03:14:49 -0800 (PST) X-Google-Smtp-Source: AMrXdXsZ/EHRRLeS3T2KMMQplmj5TC4o3Zk03y1zqbdInzWXiI/OYxCU8lluoEvcH87qqNOe7GNU X-Received: by 2002:a17:902:e3d4:b0:192:f33c:53c0 with SMTP id r20-20020a170902e3d400b00192f33c53c0mr4443281ple.47.1672917288954; Thu, 05 Jan 2023 03:14:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672917288; cv=none; d=google.com; s=arc-20160816; b=Sa0KLI1ZiYmixgY+5TgorBk2emUvKSF4xbJ7zvhqIVVwrHt1XXw7X5Vhn/Dn3kX2KH FdqSa2eMGCEZPcn2TMndfgqpP6xWe4f8JoOCSHspHIR62U+RlXsZWizKYRWGEXcG6NZA yeY4ZhNGXxqIOSWOgk+E85Jdld0aVQ5lXEG0RVFegxiKx5dOMs8mDXCPgsHUFLEnJEQC zndAgyUotHSXyD6sSp/zTJ+xagKz9W9E3vzTGYWQSBSOnD430thpri4uMrNDvpR7QFQ5 YXf9e1e31Wwv0Vlnjs37RnTwQtKzmakoQBcXyDwubLF4yjGNn0C4kZ7MmALqNo3gdQJ6 YxfA== 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:dkim-signature; bh=RqNhCEp4bteb35PgE8tJqSPBDMlwYzzV7hStphy00eY=; b=dH7IarQdso1j/hm7v0nHT57Zi93BlScms0tF235iftC16M+yUyRC/JeV98TxpazOkT Nn0HS4MNl5oYzBMGdMVA8BQjTXxlmMLEfEvkyBUHXKflxZND/YK1TgV8QlLXVoRutIB9 xjTnppgGM1kzSJQG43K/qJSKYG0El0nI7NHVXbLg6b5yTwyOLD/VF9+Gi4BqmRF6X7I2 3cwEDZKefyrmUTEPmdhku7+1LWTjdGhJxbQcwecnzUyyUZUYsibW3YkV1oINucuePWeZ cBItR5g+YxnLxuLsP7dPZ/s394AP5+U0TT6Sb8rIwEwjY/rRHqrdnkMhknBt/sgFlDc9 8rww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aak24eOQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j10-20020a170902c3ca00b00192b150cf8asi16244268plj.339.2023.01.05.03.14.41; Thu, 05 Jan 2023 03:14:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aak24eOQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232398AbjAEKt2 (ORCPT + 55 others); Thu, 5 Jan 2023 05:49:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233349AbjAEKtR (ORCPT ); Thu, 5 Jan 2023 05:49:17 -0500 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E56B350E69; Thu, 5 Jan 2023 02:49:14 -0800 (PST) Received: by mail-ej1-x631.google.com with SMTP id u19so89108462ejm.8; Thu, 05 Jan 2023 02:49:14 -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=RqNhCEp4bteb35PgE8tJqSPBDMlwYzzV7hStphy00eY=; b=aak24eOQVSlj5aH7JVsbtgYLikHKGDVAcZCW7NmR/gnQZ/HYbGY+GRf0hGuLt6rKE7 TLTleutIAHtccme1bSQJGowj5jvqHlSprkxzpQ/13NJlJAuul8GP6DZzGCWyIEbZcmEP s/+XGdRLPFAaneuCVK3uzYE5DOC1QCS4BfoSrdyRHpT6kreOP2gN+hYvtsT0D+/N61+k XkKG7N1NjC0qrO/9lfBbH3f5JCr40j1rirHlDLY16QEkLiwJv0Mgi8g2PSQ+g1kPKJ4R XjkH300UgqTE/iGIsmuUcr+0YOO2e0dwLuBOQy0VgkVh4OCc5uA8Jp7SRN6BeJQiY4Mt uR5w== 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=RqNhCEp4bteb35PgE8tJqSPBDMlwYzzV7hStphy00eY=; b=4yP0pO7HWvwk+2ncXl5kbXyGpyg8eRp/lBQz9xnvjm1sdsPv22Pl+ncScrkkfUBIne Jy48BtfZn7hobNpnEtEk99VTDgRQNSzE2SX7n+9u03lBRZTyvcw+avcqoIghavZ7FpiY 3fm2K94i/lzYGhRV3F1ynk0YnReQ3TGR3JAJzcNMjgTN7y7eqxmV0oL0XCZ6tM00TUhu bxHELvmOOMGOadRalYlLepdm90J6mNuDeBMsnyspmIdWUp9af5nxB2aArnYWU+Fr5jKR TMS5Poe/lmCg+tFq4pD0F2/c92h2Cpr5clgOTud9t05DTwSAUCqbkd6pszAnWmI7U+Fl oFVg== X-Gm-Message-State: AFqh2kpzmW/EAgkNYy45JS11HM/5h/vHj3unZ9/nuYzIa2xTorLRrK7g azIeF2KHlWWfTm94AsQmafo= X-Received: by 2002:a17:906:e98:b0:7c1:39e:db7e with SMTP id p24-20020a1709060e9800b007c1039edb7emr56740176ejf.59.1672915753422; Thu, 05 Jan 2023 02:49:13 -0800 (PST) Received: from gvm01 (net-5-89-66-224.cust.vodafonedsl.it. [5.89.66.224]) by smtp.gmail.com with ESMTPSA id l22-20020a1709065a9600b00780982d77d1sm16317802ejq.154.2023.01.05.02.49.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Jan 2023 02:49:12 -0800 (PST) Date: Thu, 5 Jan 2023 11:49:18 +0100 From: Piergiorgio Beruto To: Leon Romanovsky Cc: Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Oleksij Rempel Subject: Re: [PATCH net-next 3/5] drivers/net/phy: add connection between ethtool and phylib for PLCA Message-ID: References: <5d9b49cb21c97bf187502d4f6000f1084a7e4df7.1672840326.git.piergiorgio.beruto@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 05, 2023 at 11:03:46AM +0200, Leon Romanovsky wrote: > On Wed, Jan 04, 2023 at 03:06:30PM +0100, Piergiorgio Beruto wrote: > > This patch adds the required connection between netlink ethtool and > > phylib to resolve PLCA get/set config and get status messages. > > > > Signed-off-by: Piergiorgio Beruto > > --- > > drivers/net/phy/phy.c | 172 +++++++++++++++++++++++++++++++++++ > > drivers/net/phy/phy_device.c | 3 + > > include/linux/phy.h | 7 ++ > > 3 files changed, 182 insertions(+) > > <...> > > > + curr_plca_cfg = kmalloc(sizeof(*curr_plca_cfg), GFP_KERNEL); > > + if (unlikely(!curr_plca_cfg)) { > > Please don't put likely/unlikely on kamlloc and/or in in control path > flow. Fixed. Although, I am curious to know why exactly it is bad to linkely/unlikely on kmalloc. Is this because if we're in a situation of low memory we don't want to put more "stress" on the system failing branch predictions? > > Thanks