From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 48F22C4320A for ; Thu, 19 Aug 2021 16:42:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2EEA7610A6 for ; Thu, 19 Aug 2021 16:42:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230089AbhHSQmp (ORCPT ); Thu, 19 Aug 2021 12:42:45 -0400 Received: from mxout02.lancloud.ru ([45.84.86.82]:38462 "EHLO mxout02.lancloud.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbhHSQmo (ORCPT ); Thu, 19 Aug 2021 12:42:44 -0400 Received: from LanCloud DKIM-Filter: OpenDKIM Filter v2.11.0 mxout02.lancloud.ru 8F48D2297C28 Received: from LanCloud Received: from LanCloud Received: from LanCloud Subject: Re: [PATCH net-next v3 5/9] ravb: Add stats_len to struct ravb_hw_info To: Biju Das , "David S. Miller" , Jakub Kicinski CC: Geert Uytterhoeven , Sergey Shtylyov , Adam Ford , Andrew Lunn , Yuusuke Ashizuka , Yoshihiro Shimoda , , , Chris Paterson , Biju Das , "Prabhakar Mahadev Lad" References: <20210818190800.20191-1-biju.das.jz@bp.renesas.com> <20210818190800.20191-6-biju.das.jz@bp.renesas.com> From: Sergey Shtylyov Organization: Open Mobile Platform Message-ID: Date: Thu, 19 Aug 2021 19:42:04 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20210818190800.20191-6-biju.das.jz@bp.renesas.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.11.198] X-ClientProxiedBy: LFEXT01.lancloud.ru (fd00:f066::141) To LFEX1907.lancloud.ru (fd00:f066::207) Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On 8/18/21 10:07 PM, Biju Das wrote: > R-Car provides 30 device stats, whereas RZ/G2L provides only 15. In > addition, RZ/G2L has stats "rx_queue_0_csum_offload_errors" instead of > "rx_queue_0_missed_errors". > > Replace RAVB_STATS_LEN macro with a structure variable stats_len to Structure field, maybe? :-) > struct ravb_hw_info, to support subsequent SoCs without any code changes > to the ravb_get_sset_count function. > > Signed-off-by: Biju Das > Reviewed-by: Lad Prabhakar > Reviewed-by: Sergei Shtylyov [...] Reviewed-by: Sergey Shtylyov [...] MBR, Sergey