Skip to content

Commit

Permalink
fabric: Add support for job keys
Browse files Browse the repository at this point in the history
Allow endpoints to be associated with an authorization key, commonly
referred to as a job key.  The auth_key optionally allows an endpoint
to restrict what traffic it accepts.  Only peers with a valid auth_key
can target a restricted endpoint.

Fixes ofiwg#2529

Architecturally, each endpoint can be associated with a single auth_key.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
  • Loading branch information
shefty committed Dec 20, 2016
1 parent 2f43a0c commit 97510f8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/rdma/fabric.h
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,8 @@ struct fi_ep_attr {
uint64_t mem_tag_format;
size_t tx_ctx_cnt;
size_t rx_ctx_cnt;
size_t auth_keylen;
uint8_t *auth_key;
};

struct fi_domain_attr {
Expand Down
17 changes: 17 additions & 0 deletions man/fi_endpoint.3.md
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,8 @@ struct fi_ep_attr {
uint64_t mem_tag_format;
size_t tx_ctx_cnt;
size_t rx_ctx_cnt;
size_t auth_keylen;
uint8_t *auth_key;
};
{% endhighlight %}

Expand Down Expand Up @@ -761,6 +763,21 @@ fail the request.
See the scalable endpoint and shared contexts sections for additional
details.

## auth_keylen - Authorization Key Length

The length of the authorization key. This field will be 0 if
authorization keys are not available or used.

## auth_key - Authorization Key

If supported by the fabric, an authorization key (a.k.a. job
key) to associate with the endpoint. An authorization key is used
to limit communication between endpoints. Only peer endpoints that are
programmed to use the same authorization key may communicate.
Authorization keys are often used to implement job keys, to ensure
that processes running in different jobs do not accidentally
cross traffic.

# TRANSMIT CONTEXT ATTRIBUTES

Attributes specific to the transmit capabilities of an endpoint are
Expand Down

0 comments on commit 97510f8

Please sign in to comment.