Skip to content

Commit

Permalink
Merge pull request #585 from rleon/ml-09-24
Browse files Browse the repository at this point in the history
Mailing List (24-09-2019)
  • Loading branch information
rleon authored Sep 25, 2019
2 parents d9bf780 + 4f4d0a6 commit 7edd225
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 73 deletions.
8 changes: 5 additions & 3 deletions buildlib/cbuild
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,15 @@ class APTEnvironment(Environment):
# key for the toolchain ppa. Fetch it in the host and just import the
# gpg data directly into the trusted keyring.
kb = os.path.join(tmpdir,"%s.kb.gpg"%(keyid));
subprocess.check_call(["gpg","--no-default-keyring","--keyring",kb,"--always-trust",
"--recv-key",keyid]);
env = {k:v for k,v in os.environ.items()};
env["HOME"] = tmpdir;
subprocess.check_call(["gpg","--keyserver", "keyserver.ubuntu.com", "--no-default-keyring","--keyring",kb,"--always-trust",
"--recv-key",keyid],env=env);
kr = os.path.join(gpgd,"%s.gpg"%(keyid));
with open(kr,"wb") as F:
F.write(subprocess.check_output(["gpg","--no-default-keyring",
"--keyring",kb,
"--export",keyid]));
"--export",keyid],env=env));
os.unlink(kb);

self.add_source_list(tmpdir,keyid + ".list",srcline);
Expand Down
61 changes: 0 additions & 61 deletions ibtypes.py

This file was deleted.

4 changes: 2 additions & 2 deletions providers/mlx5/dr_devx.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,9 @@ struct mlx5dv_devx_obj *dr_devx_create_qp(struct ibv_context *ctx,
DEVX_SET(qpc, qpc, uar_page, attr->page_id);
DEVX_SET(qpc, qpc, cqn_snd, attr->cqn);
DEVX_SET(qpc, qpc, cqn_rcv, attr->cqn);
DEVX_SET(qpc, qpc, log_sq_size, ilog32(attr->sq_wqe_cnt) - 1);
DEVX_SET(qpc, qpc, log_sq_size, ilog32(attr->sq_wqe_cnt - 1));
DEVX_SET(qpc, qpc, log_rq_stride, attr->rq_wqe_shift - 4);
DEVX_SET(qpc, qpc, log_rq_size, ilog32(attr->rq_wqe_cnt) - 1);
DEVX_SET(qpc, qpc, log_rq_size, ilog32(attr->rq_wqe_cnt - 1));
DEVX_SET(qpc, qpc, dbr_umem_id, attr->db_umem_id);

DEVX_SET(create_qp_in, in, wq_umem_id, attr->buff_umem_id);
Expand Down
4 changes: 2 additions & 2 deletions providers/mlx5/dr_send.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ static int dr_calc_rq_size(struct dr_qp *dr_qp,
wq_size = roundup_pow_of_two(attr->cap.max_recv_wr) * wqe_size;
wq_size = max(wq_size, MLX5_SEND_WQE_BB);
dr_qp->rq.wqe_cnt = wq_size / wqe_size;
dr_qp->rq.wqe_shift = ilog32(wqe_size) - 1;
dr_qp->rq.max_post = 1 << (ilog32(wq_size / wqe_size) - 1);
dr_qp->rq.wqe_shift = ilog32(wqe_size - 1);
dr_qp->rq.max_post = 1 << ilog32(wq_size / wqe_size - 1);
dr_qp->rq.max_gs = wqe_size / sizeof(struct mlx5_wqe_data_seg);

return wq_size;
Expand Down
2 changes: 1 addition & 1 deletion providers/mlx5/srq.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ int mlx5_alloc_srq_buf(struct ibv_context *context, struct mlx5_srq *srq,
srq->max_gs = (size - sizeof(struct mlx5_wqe_srq_next_seg)) /
sizeof(struct mlx5_wqe_data_seg);

srq->wqe_shift = ilog32(size) - 1;
srq->wqe_shift = ilog32(size - 1);

srq->max = align_queue_size(max_wr);
buf_size = srq->max * size;
Expand Down
8 changes: 4 additions & 4 deletions providers/mlx5/verbs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1400,8 +1400,8 @@ static int mlx5_calc_rwq_size(struct mlx5_context *ctx,
wq_size = roundup_pow_of_two(attr->max_wr) * wqe_size;
wq_size = max(wq_size, MLX5_SEND_WQE_BB);
rwq->rq.wqe_cnt = wq_size / wqe_size;
rwq->rq.wqe_shift = ilog32(wqe_size) - 1;
rwq->rq.max_post = 1 << (ilog32(wq_size / wqe_size) - 1);
rwq->rq.wqe_shift = ilog32(wqe_size - 1);
rwq->rq.max_post = 1 << ilog32(wq_size / wqe_size - 1);
scat_spc = wqe_size -
((rwq->wq_sig) ? sizeof(struct mlx5_rwqe_sig) : 0) -
is_mprq * sizeof(struct mlx5_wqe_srq_next_seg);
Expand Down Expand Up @@ -1436,8 +1436,8 @@ static int mlx5_calc_rq_size(struct mlx5_context *ctx,
if (wqe_size) {
wq_size = max(wq_size, MLX5_SEND_WQE_BB);
qp->rq.wqe_cnt = wq_size / wqe_size;
qp->rq.wqe_shift = ilog32(wqe_size) - 1;
qp->rq.max_post = 1 << (ilog32(wq_size / wqe_size) - 1);
qp->rq.wqe_shift = ilog32(wqe_size - 1);
qp->rq.max_post = 1 << ilog32(wq_size / wqe_size - 1);
scat_spc = wqe_size -
(qp->wq_sig ? sizeof(struct mlx5_rwqe_sig) : 0);
qp->rq.max_gs = scat_spc / sizeof(struct mlx5_wqe_data_seg);
Expand Down
4 changes: 4 additions & 0 deletions redhat/rdma-core.spec
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,12 @@ BuildRequires: systemd-devel
BuildRequires: python3-devel
BuildRequires: python3-Cython
%else
%if 0%{?rhel} == 8 || 0%{?fedora} >= 30
BuildRequires: python3
%else
BuildRequires: python
%endif
%endif
%if 0%{?fedora} >= 21
BuildRequires: perl-generators
%endif
Expand Down
1 change: 1 addition & 0 deletions srp_daemon/srp_daemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,7 @@ static int translate_umad_to_ibdev_and_port(char *umad_dev, char **ibdev,
if (ret) {
free(*ibport);
free(*ibdev);
*ibdev = NULL;
}
free(class_dev_path);

Expand Down

0 comments on commit 7edd225

Please sign in to comment.