diff options
author | Karsten Graul <kgraul@linux.ibm.com> | 2020-04-29 18:10:39 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-04-29 22:26:32 +0300 |
commit | 026c381fb4778d0d44af57b7ff674f31f04af221 (patch) | |
tree | 0680bad4f4f97ff9d8b9379e105be11915b6cd2d /net/smc/smc_llc.c | |
parent | f3c1deddb21c19fb0eec3c61e80567ef4a79b58b (diff) | |
download | linux-026c381fb4778d0d44af57b7ff674f31f04af221.tar.xz |
net/smc: introduce link_idx for link group array
The link_id is the index of the link in the array of the link group.
When a link in the array is reused for a new link, a different unique
link_id should be used, otherwise the index in the array could collide
with the previous link at this array position.
Use a new variable link_idx as array index, and make link_id an
increasing unique id value.
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Reviewed-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc/smc_llc.c')
0 files changed, 0 insertions, 0 deletions