[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <84063fe4df95437d81beb0d18f4043a5@baidu.com>
Date: Thu, 22 Aug 2019 12:31:33 +0000
From: "Li,Rongqing" <lirongqing@...du.com>
To: Ido Schimmel <idosch@...sch.org>
CC: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"idosch@...lanox.com" <idosch@...lanox.com>
Subject: 答复: [PATCH][net-next] net: drop_monitor: change the stats variable to u64 in net_dm_stats_put
> -----邮件原件-----
> 发件人: Ido Schimmel [mailto:idosch@...sch.org]
> 发送时间: 2019年8月22日 20:00
> 收件人: Li,Rongqing <lirongqing@...du.com>
> 抄送: netdev@...r.kernel.org; idosch@...lanox.com
> 主题: Re: [PATCH][net-next] net: drop_monitor: change the stats variable to
> u64 in net_dm_stats_put
>
> On Thu, Aug 22, 2019 at 02:22:33PM +0800, Li RongQing wrote:
> > only the element drop of struct net_dm_stats is used, so simplify it
> > to u64
>
> Thanks for the patch, but I don't really see the value here. The struct allows for
> easy extensions in the future. What do you gain from this change? We merely
> read stats and report them to user space, so I guess it's not about
> performance either.
>
I think u64 can reduce to call memset and dereference stats.drop
If it is for future, keep it
-RongQing
Powered by blists - more mailing lists