net/mlx5e: Expand WQE stride when CQE compression is enabled
[cascardo/linux.git] / include / net / rtnetlink.h
index 2f87c1b..006a7b8 100644 (file)
@@ -47,6 +47,9 @@ static inline int rtnl_msg_family(const struct nlmsghdr *nlh)
  *     @get_num_rx_queues: Function to determine number of receive queues
  *                         to create when creating a new device.
  *     @get_link_net: Function to get the i/o netns of the device
+ *     @get_linkxstats_size: Function to calculate the required room for
+ *                           dumping device-specific extended link stats
+ *     @fill_linkxstats: Function to dump device-specific extended link stats
  */
 struct rtnl_link_ops {
        struct list_head        list;
@@ -95,6 +98,10 @@ struct rtnl_link_ops {
                                                   const struct net_device *dev,
                                                   const struct net_device *slave_dev);
        struct net              *(*get_link_net)(const struct net_device *dev);
+       size_t                  (*get_linkxstats_size)(const struct net_device *dev);
+       int                     (*fill_linkxstats)(struct sk_buff *skb,
+                                                  const struct net_device *dev,
+                                                  int *prividx);
 };
 
 int __rtnl_link_register(struct rtnl_link_ops *ops);