diff options
author | Logan Gunthorpe <logang@deltatee.com> | 2019-05-23 16:30:54 -0600 |
---|---|---|
committer | Jon Mason <jdmason@kudzu.us> | 2019-06-13 08:59:58 -0400 |
commit | 5f1b1f065c791de71017502ed3ba46779e231d9b (patch) | |
tree | a72d62117d51baa0a7742036392d2b6f12374af0 /crypto/anubis.c | |
parent | 246a42c51bc5dd247629f86c87d5e1b7628343c4 (diff) | |
download | blackbird-op-linux-5f1b1f065c791de71017502ed3ba46779e231d9b.tar.gz blackbird-op-linux-5f1b1f065c791de71017502ed3ba46779e231d9b.zip |
NTB: Introduce functions to calculate multi-port resource index
When using multi-ports each port uses resources (dbs, msgs, mws, etc)
on every other port. Creating a mapping for these resources such that
each port has a corresponding resource on every other port is a bit
tricky.
Introduce the ntb_peer_resource_idx() function for this purpose.
It returns the peer resource number that will correspond with the
local peer index on the remote peer.
Also, introduce ntb_peer_highest_mw_idx() which will use
ntb_peer_resource_idx() but return the MW index starting with the
highest index and working down.
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Cc: Dave Jiang <dave.jiang@intel.com>
Cc: Allen Hubbe <allenbh@gmail.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
Diffstat (limited to 'crypto/anubis.c')
0 files changed, 0 insertions, 0 deletions