summaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
authorOr Gerlitz2016-11-22 22:09:54 +0100
committerDavid S. Miller2016-11-24 22:01:14 +0100
commit3df5b3c67546fb05266766b6abaf71563f82efe4 (patch)
treea283cc7b49a7190e746e739b1636c99404554bd4 /include/linux/netdevice.h
parentMerge branch 'phy-broadcom-wirespeed-downshift-support' (diff)
downloadkernel-qcow2-linux-3df5b3c67546fb05266766b6abaf71563f82efe4.tar.gz
kernel-qcow2-linux-3df5b3c67546fb05266766b6abaf71563f82efe4.tar.xz
kernel-qcow2-linux-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/linux/netdevice.h')
-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);