IB/srp: Add QoS support through service ID

Provide the target service ID when performing a path record query to
support optional QoS capability.  QoS requires support from the SA.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
This commit is contained in:
Sean Hefty 2007-08-08 15:51:18 -07:00 коммит произвёл Roland Dreier
Родитель 7ce86409ad
Коммит 247e020ee5
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -285,6 +285,7 @@ static int srp_lookup_path(struct srp_target_port *target)
target->srp_host->dev->dev, target->srp_host->dev->dev,
target->srp_host->port, target->srp_host->port,
&target->path, &target->path,
IB_SA_PATH_REC_SERVICE_ID |
IB_SA_PATH_REC_DGID | IB_SA_PATH_REC_DGID |
IB_SA_PATH_REC_SGID | IB_SA_PATH_REC_SGID |
IB_SA_PATH_REC_NUMB_PATH | IB_SA_PATH_REC_NUMB_PATH |
@ -1692,6 +1693,7 @@ static int srp_parse_options(const char *buf, struct srp_target_port *target)
goto out; goto out;
} }
target->service_id = cpu_to_be64(simple_strtoull(p, NULL, 16)); target->service_id = cpu_to_be64(simple_strtoull(p, NULL, 16));
target->path.service_id = target->service_id;
kfree(p); kfree(p);
break; break;