summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorOr Gerlitz <ogerlitz@mellanox.com>2016-11-22 23:09:54 +0200
committerDavid S. Miller <davem@davemloft.net>2016-11-24 16:01:14 -0500
commit3df5b3c67546fb05266766b6abaf71563f82efe4 (patch)
treea283cc7b49a7190e746e739b1636c99404554bd4 /include
parentac32378f3eca55123fe917a6bb38e581118de9e3 (diff)
downloadlinux-stable-3df5b3c67546fb05266766b6abaf71563f82efe4.tar.gz
linux-stable-3df5b3c67546fb05266766b6abaf71563f82efe4.tar.bz2
linux-stable-3df5b3c67546fb05266766b6abaf71563f82efe4.zip
net: Add net-device param to the get offloaded stats ndo
Some drivers would need to check few internal matters for that. To be used in downstream mlx5 commit. Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/netdevice.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index e84800edd249..ae32a27523f9 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -925,7 +925,7 @@ struct netdev_xdp {
* 3. Update dev->stats asynchronously and atomically, and define
* neither operation.
*
- * bool (*ndo_has_offload_stats)(int attr_id)
+ * bool (*ndo_has_offload_stats)(const struct net_device *dev, int attr_id)
* Return true if this device supports offload stats of this attr_id.
*
* int (*ndo_get_offload_stats)(int attr_id, const struct net_device *dev,
@@ -1165,7 +1165,7 @@ struct net_device_ops {
struct rtnl_link_stats64* (*ndo_get_stats64)(struct net_device *dev,
struct rtnl_link_stats64 *storage);
- bool (*ndo_has_offload_stats)(int attr_id);
+ bool (*ndo_has_offload_stats)(const struct net_device *dev, int attr_id);
int (*ndo_get_offload_stats)(int attr_id,
const struct net_device *dev,
void *attr_data);