]> git.ipfire.org Git - thirdparty/kernel/stable.git/blobdiff - include/linux/mlx5/driver.h
net/mlx5: Change flow counters addlist type to single linked list
[thirdparty/kernel/stable.git] / include / linux / mlx5 / driver.h
index 54f385cc881131061d164fcf370a77666344a864..c00549293982ebf305d8e4ac05829d05f6b6c0b2 100644 (file)
@@ -584,9 +584,7 @@ struct mlx5_irq_info {
 
 struct mlx5_fc_stats {
        struct rb_root counters;
-       struct list_head addlist;
-       /* protect addlist add/splice operations */
-       spinlock_t addlist_lock;
+       struct llist_head addlist;
 
        struct workqueue_struct *wq;
        struct delayed_work work;
@@ -1235,14 +1233,11 @@ struct net_device *mlx5_rdma_netdev_alloc(struct mlx5_core_dev *mdev,
 {
        return ERR_PTR(-EOPNOTSUPP);
 }
-
-static inline void mlx5_rdma_netdev_free(struct net_device *netdev) {}
 #else
 struct net_device *mlx5_rdma_netdev_alloc(struct mlx5_core_dev *mdev,
                                          struct ib_device *ibdev,
                                          const char *name,
                                          void (*setup)(struct net_device *));
-void mlx5_rdma_netdev_free(struct net_device *netdev);
 #endif /* CONFIG_MLX5_CORE_IPOIB */
 
 struct mlx5_profile {