Message ID | 20180716074038.3364-6-yuval.shaia@oracle.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 07/16/2018 10:40 AM, Yuval Shaia wrote: > 0x7FFF is not the default pkey - fix it. > > Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com> > --- > hw/rdma/vmw/pvrdma_cmd.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/hw/rdma/vmw/pvrdma_cmd.c b/hw/rdma/vmw/pvrdma_cmd.c > index e7d6589cdc..bb898265a3 100644 > --- a/hw/rdma/vmw/pvrdma_cmd.c > +++ b/hw/rdma/vmw/pvrdma_cmd.c > @@ -166,7 +166,7 @@ static int query_pkey(PVRDMADev *dev, union pvrdma_cmd_req *req, > resp->hdr.ack = PVRDMA_CMD_QUERY_PKEY_RESP; > resp->hdr.err = 0; > > - resp->pkey = 0x7FFF; > + resp->pkey = 0xFFFF; > pr_dbg("pkey=0x%x\n", resp->pkey); > > return 0; A MACRO will be more readable. It doesn't worth a re-spin though. Reviewed-by: Marcel Apfelbaum<marcel.apfelbaum@gmail.com> Thanks, Marcel
diff --git a/hw/rdma/vmw/pvrdma_cmd.c b/hw/rdma/vmw/pvrdma_cmd.c index e7d6589cdc..bb898265a3 100644 --- a/hw/rdma/vmw/pvrdma_cmd.c +++ b/hw/rdma/vmw/pvrdma_cmd.c @@ -166,7 +166,7 @@ static int query_pkey(PVRDMADev *dev, union pvrdma_cmd_req *req, resp->hdr.ack = PVRDMA_CMD_QUERY_PKEY_RESP; resp->hdr.err = 0; - resp->pkey = 0x7FFF; + resp->pkey = 0xFFFF; pr_dbg("pkey=0x%x\n", resp->pkey); return 0;
0x7FFF is not the default pkey - fix it. Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com> --- hw/rdma/vmw/pvrdma_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)