Skip to content

Channel load steering never triggered #5

@matrach

Description

@matrach

It seems that the is_better_candidate function never returns UEV_SELECT_REASON_LOAD, because the condition is unsatisfiable. It is essentially p ∧ ¬p, unless some pointer aliasing happens in-between.

Probably the parameters were supposed to be flipped in the second call.

usteer/policy.c

Lines 110 to 112 in e218150

if (has_better_load(current_node, new_node) &&
!has_better_load(current_node, new_node))
reasons |= (1 << UEV_SELECT_REASON_LOAD);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions