[openib-general] [PATCH 3/4] SA path record caching
Hal Rosenstock
halr at voltaire.com
Thu Jan 26 07:33:49 PST 2006
Hi Sean,
On Wed, 2006-01-25 at 14:47, Sean Hefty wrote:
> Add a local SA database for path records to eliminate queries to the SA
> for connection establishment.
[snip...]
> +static void format_path_req(struct sa_db_port *port,
> + struct ib_mad_send_buf *msg)
> +{
> + struct ib_sa_mad *mad = msg->mad;
> + struct ib_sa_path_rec path_rec;
> +
> + mad->mad_hdr.base_version = IB_MGMT_BASE_VERSION;
> + mad->mad_hdr.mgmt_class = IB_MGMT_CLASS_SUBN_ADM;
> + mad->mad_hdr.class_version = IB_SA_CLASS_VERSION;
> + mad->mad_hdr.method = IB_SA_METHOD_GET_TABLE;
> + mad->mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_PATH_REC);
> + mad->mad_hdr.tid = form_tid(msg);
> +
> + mad->sa_hdr.comp_mask = IB_SA_PATH_REC_SGID | IB_SA_PATH_REC_PKEY |
> + IB_SA_PATH_REC_NUMB_PATH;
> +
> + path_rec.sgid = port->gid;
> + path_rec.pkey = port->pkey;
> + path_rec.numb_path = 1;
> + ib_sa_pack_attr(mad->data, &path_rec, IB_SA_ATTR_PATH_REC);
> +}
This looks like a wildcarded DGID request but NumbPaths is 1. Am I
missing something ?
Also, the ability for one node's SA cache to handle this for another
node appears to be a future possibility.
-- Hal
More information about the general
mailing list