summaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorGavin Shan <gwshan@linux.vnet.ibm.com>2016-10-21 03:47:41 +0300
committerJoel Stanley <joel@jms.id.au>2016-10-21 04:36:16 +0300
commitd579dafe26ab168c4b3aea88b75ecc54e8b4776d (patch)
tree7c03c389f2def470aa6ad8685ba9b22dc95a7775 /lib/mpi/mpiutil.c
parent2777aebdaf88ae17be6113dcde981bbb0db82a67 (diff)
downloadlinux-d579dafe26ab168c4b3aea88b75ecc54e8b4776d.tar.xz
net/ncsi: Rework request index allocation
The NCSI request index (struct ncsi_req::nr_id) is put into instance ID (IID) field while sending NCSI command packet. It was designed the available IDs are given in round-robin fashion. @ndp->request_id was introduced to represent the next available ID, but it has been used as number of successively allocated IDs. It breaks the round-robin design. Besides, we shouldn't put 0 to NCSI command packet's IID field, meaning ID#0 should be reserved according section 6.3.1.1 in NCSI spec (v1.1.0). This fixes above two issues. With it applied, the available IDs will be assigned in round-robin fashion and ID#0 won't be assigned. Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com> Reviewed-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Joel Stanley <joel@jms.id.au>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions