diff options
author | Karsten Graul <[email protected]> | 2020-04-29 17:10:43 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2020-04-29 12:26:32 -0700 |
commit | d854fcbfaeda9748c85de296fbe07b7763a1939c (patch) | |
tree | c056b8e27021556cc3b69dae521c3b1ef5ccfc63 /lib/test_overflow.c | |
parent | e07d31dc16b0d77ff6b3f71cafe3a825fb80bed4 (diff) |
net/smc: add new link state and related helpers
Before a link can be reused it must have been cleared. Lowest current
link state is INACTIVE, which does not mean that the link is already
cleared.
Add a new state UNUSED that is set when the link is cleared and can be
reused.
Add helper smc_llc_usable_link() to find an active link in a link group,
and smc_link_usable() to determine if a link is usable.
Signed-off-by: Karsten Graul <[email protected]>
Reviewed-by: Ursula Braun <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions