|
@@ -75,7 +75,7 @@ static void mlx5_fc_stats_insert(struct rb_root *root, struct mlx5_fc *counter)
|
|
struct rb_node *parent = NULL;
|
|
struct rb_node *parent = NULL;
|
|
|
|
|
|
while (*new) {
|
|
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;
|
|
int result = counter->id - this->id;
|
|
|
|
|
|
parent = *new;
|
|
parent = *new;
|