net/mlx5: Add support for setting VF min rate
[sfrench/cifs-2.6.git] / drivers / net / ethernet / mellanox / mlx5 / core / fs_counters.c
index 3b026c151cf24f370137b4655b417d6e024d6dec..7431f633de3135f5ccee6a9f506892d5f13dff35 100644 (file)
@@ -75,7 +75,7 @@ static void mlx5_fc_stats_insert(struct rb_root *root, struct mlx5_fc *counter)
        struct rb_node *parent = NULL;
 
        while (*new) {
-               struct mlx5_fc *this = container_of(*new, struct mlx5_fc, node);
+               struct mlx5_fc *this = rb_entry(*new, struct mlx5_fc, node);
                int result = counter->id - this->id;
 
                parent = *new;