Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1400991 > unrolled thread

Re: [RESEND PATCH v7 07/21] IB/hns: Add event queue support

Started byDoug Ledford <dledford@redhat.com>
First post2016-05-13 23:30 +0200
Last post2016-05-13 23:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [RESEND PATCH v7 07/21] IB/hns: Add event queue support Doug Ledford <dledford@redhat.com> - 2016-05-13 23:30 +0200

#1400991 — Re: [RESEND PATCH v7 07/21] IB/hns: Add event queue support

FromDoug Ledford <dledford@redhat.com>
Date2016-05-13 23:30 +0200
SubjectRe: [RESEND PATCH v7 07/21] IB/hns: Add event queue support
Message-ID<rysOK-35p-1@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

On 05/09/2016 11:04 PM, Lijun Ou wrote:

> --- a/drivers/infiniband/hw/hns/hns_roce_device.h
> +++ b/drivers/infiniband/hw/hns/hns_roce_device.h

> @@ -29,10 +31,93 @@
>  #define HNS_ROCE_AEQE_VEC_NUM			1
>  #define HNS_ROCE_AEQE_OF_VEC_NUM		1
>  
> +#define ADDR_SHIFT_12				12
>  #define ADDR_SHIFT_32				32
> +#define ADDR_SHIFT_44				44

I saw some of the early review requests to replace hard coded values
with defines so that things made more sense.  And you've done a lot of
that quite well.  However, this one is not so helpful.  Sure, it's an
address shift, but the define gives no context as to why these shifts
are what they are.  Someone from the x86 world might mistakenly think
the 12 shift is all about page size shifting, but on arm you have
multiple different page sizes and 12 may not work at all.  So, some
context in the name for these items, or else a comment above these
defines letting us know what's special about these three shift values
would be helpful.

-- 
Doug Ledford <dledford@redhat.com>
              GPG KeyID: 0E572FDD


[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web