We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4abbd2e commit 503930fCopy full SHA for 503930f
net/core/rtnetlink.c
@@ -5503,13 +5503,11 @@ static unsigned int
5503
rtnl_offload_xstats_get_size_hw_s_info_one(const struct net_device *dev,
5504
enum netdev_offload_xstats_type type)
5505
{
5506
- bool enabled = netdev_offload_xstats_enabled(dev, type);
5507
-
5508
return nla_total_size(0) +
5509
/* IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST */
5510
nla_total_size(sizeof(u8)) +
5511
/* IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED */
5512
- (enabled ? nla_total_size(sizeof(u8)) : 0) +
+ nla_total_size(sizeof(u8)) +
5513
0;
5514
}
5515
0 commit comments