summaryrefslogtreecommitdiff
path: root/net/smc/smc_ib.c
diff options
context:
space:
mode:
authorKarsten Graul <kgraul@linux.ibm.com>2020-04-29 17:10:39 +0200
committerDavid S. Miller <davem@davemloft.net>2020-04-29 12:26:32 -0700
commit026c381fb4778d0d44af57b7ff674f31f04af221 (patch)
tree0680bad4f4f97ff9d8b9379e105be11915b6cd2d /net/smc/smc_ib.c
parentf3c1deddb21c19fb0eec3c61e80567ef4a79b58b (diff)
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_ib.c')
0 files changed, 0 insertions, 0 deletions