Re: [PATCH net-next 2/2] net: nlmon: Simplify nlmon_get_stats64

From: Daniel Borkmann
Date: Fri Mar 01 2024 - 09:10:22 EST


On 3/1/24 2:42 PM, Breno Leitao wrote:
Do not set rtnl_link_stats64 fields to zero, since they are zeroed
before ops->ndo_get_stats64 is called in core dev_get_stats() function.

Also, simplify the data collection by removing the temporary variable.

Signed-off-by: Breno Leitao <leitao@xxxxxxxxxx>

Acked-by: Daniel Borkmann <daniel@xxxxxxxxxxxxx>