aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/rtnetlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/core/rtnetlink.c')
-rw-r--r--net/core/rtnetlink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
index deb35acbefd0..4e60525ea586 100644
--- a/net/core/rtnetlink.c
+++ b/net/core/rtnetlink.c
@@ -3671,7 +3671,7 @@ static int rtnl_get_offload_stats(struct sk_buff *skb, struct net_device *dev,
3671 if (!size) 3671 if (!size)
3672 continue; 3672 continue;
3673 3673
3674 if (!dev->netdev_ops->ndo_has_offload_stats(attr_id)) 3674 if (!dev->netdev_ops->ndo_has_offload_stats(dev, attr_id))
3675 continue; 3675 continue;
3676 3676
3677 attr = nla_reserve_64bit(skb, attr_id, size, 3677 attr = nla_reserve_64bit(skb, attr_id, size,
@@ -3712,7 +3712,7 @@ static int rtnl_get_offload_stats_size(const struct net_device *dev)
3712 3712
3713 for (attr_id = IFLA_OFFLOAD_XSTATS_FIRST; 3713 for (attr_id = IFLA_OFFLOAD_XSTATS_FIRST;
3714 attr_id <= IFLA_OFFLOAD_XSTATS_MAX; attr_id++) { 3714 attr_id <= IFLA_OFFLOAD_XSTATS_MAX; attr_id++) {
3715 if (!dev->netdev_ops->ndo_has_offload_stats(attr_id)) 3715 if (!dev->netdev_ops->ndo_has_offload_stats(dev, attr_id))
3716 continue; 3716 continue;
3717 size = rtnl_get_offload_stats_attr_size(attr_id); 3717 size = rtnl_get_offload_stats_attr_size(attr_id);
3718 nla_size += nla_total_size_64bit(size); 3718 nla_size += nla_total_size_64bit(size);