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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4AECFC54EB4 for ; Tue, 24 Jan 2023 06:31:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232850AbjAXGbw (ORCPT ); Tue, 24 Jan 2023 01:31:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232276AbjAXGbr (ORCPT ); Tue, 24 Jan 2023 01:31:47 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79DFD3D091; Mon, 23 Jan 2023 22:30:49 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C4CA5B810C5; Tue, 24 Jan 2023 06:30:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9F5CCC433D2; Tue, 24 Jan 2023 06:30:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674541835; bh=+nylqb23RsekYjZaEz4YjxAk0FDyNRQBbyNOuKbKgkM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=iHzKRBEW+L96YHB0cE5ZKxJoxyTaXoOYsaAHeOxxg3HCttaDxKZXEXZMj5BPsf9FP 6KBlxQ1ejkOCyDITJkcmIbzffn5W6Zy5/LtSFFgOmdsz/r3Q5O9X8OenFdU4PTTl+2 Rq1mmRaxHGGQaBci9APpWXvnErolw0IKvYS4bhlQArMRKyLFqHb3XtCxsNuYRrKTJH nznEAb6dw10L4SDFKdwJ9sPphnXbYLvxFwSq6V/FAIE5am/no+K3hpNEWcexfbkn+Q klHvhBak8LiOf0AryX8HKUSH8PRI7neHb6E8TMMgMb6sm7z04+/1yTLp/LXjV/8Y7c fENEWqYsMqN7w== Date: Mon, 23 Jan 2023 22:30:33 -0800 From: Jakub Kicinski To: Eric Dumazet Cc: Vladimir Oltean , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "David S. Miller" , Paolo Abeni , Michal Kubecek , Claudiu Manoil , Vinicius Costa Gomes , Xiaoliang Yang , Kurt Kanzenbach , Rui Sousa , Ferenc Fejes , Pranavi Somisetty , Harini Katakam , Colin Foster , UNGLinuxDriver@microchip.com, Alexandre Belloni , Andrew Lunn , Florian Fainelli Subject: Re: [PATCH v4 net-next 04/12] net: ethtool: netlink: retrieve stats from multiple sources (eMAC, pMAC) Message-ID: <20230123223033.3ad37ccc@kernel.org> In-Reply-To: References: <20230119122705.73054-1-vladimir.oltean@nxp.com> <20230119122705.73054-5-vladimir.oltean@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 24 Jan 2023 07:20:20 +0100 Eric Dumazet wrote: > > static int pause_prepare_data(const struct ethnl_req_info *req_base, > > struct ethnl_reply_data *reply_base, > > struct genl_info *info) > > { > > + const struct pause_req_info *req_info = PAUSE_REQINFO(req_base); > > struct pause_reply_data *data = PAUSE_REPDATA(reply_base); > > + enum ethtool_mac_stats_src src = req_info->src; > > + struct netlink_ext_ack *extack = info->extack; > > info can be NULL when called from ethnl_default_dump_one() Second time in a month, I think.. Should we make a fake info to pass here? (until someone finds the time to combine the do/dump infos more thoroughly, at least)