All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bob Pearson <rpearsonhpe@gmail.com>
To: Jason Gunthorpe <jgg@nvidia.com>
Cc: zyjzyj2000@gmail.com, linux-rdma@vger.kernel.org,
	Bob Pearson <rpearson@hpe.com>
Subject: Re: [PATCH for-next v2] RDMA/rxe: Split MEM into MR and MW
Date: Wed, 31 Mar 2021 14:51:35 -0500	[thread overview]
Message-ID: <d542977c-54fa-b1e6-8717-616d6c5b5218@gmail.com> (raw)
In-Reply-To: <20210330225437.GD2356281@nvidia.com>

On 3/30/21 5:54 PM, Jason Gunthorpe wrote:
> On Tue, Mar 30, 2021 at 03:46:24PM -0500, Bob Pearson wrote:
>> On 3/30/21 3:12 PM, Jason Gunthorpe wrote:
>>> On Thu, Mar 25, 2021 at 04:24:26PM -0500, Bob Pearson wrote:
>>>> In the original rxe implementation it was intended to use a common
>>>> object to represent MRs and MWs but they are different enough to
>>>> separate these into two objects.
>>>>
>>>> This allows replacing the mem name with mr for MRs which is more
>>>> consistent with the style for the other objects and less likely
>>>> to be confusing. This is a long patch that mostly changes mem to
>>>> mr where it makes sense and adds a new rxe_mw struct.
>>>>
>>>> Signed-off-by: Bob Pearson <rpearson@hpe.com>
>>>> Acked-by: Zhu Yanjun <zyjzyj2000@gmail.com>
>>>> v2:
>>>>  v1 of this patch included some fields in the new rxe_mw struct
>>>>  which were not yet needed. They are removed in v2.
>>>>  This patch includes changes needed to address the fact that
>>>>  the ib_mw struct is now being allocated in rdma/core.
>>>
>>> Applied to for-next
>>>
>>> I touched it with clang-format first though, lots of little whitespace
>>> issues
>>>
>>> Thanks,
>>> Jason
>>>
>> Thanks. Is that a stand along app or a git sub-command?
> 
> It is part of clang
> 
> https://clang.llvm.org/docs/ClangFormat.html
> 
> The sequence at the bottom is useful
> 
> git diff -U0 --no-color HEAD^ | clang-format-diff.py -i -p1
> 
> But I also have it on a current-single-statement-only hotkey in my editor
> 
> Jason
> 

Is the long term goal to take clang-format as the default whitespace format?
If so should I just reformat all the files in rxe now and get it over with?

Bob

  reply	other threads:[~2021-03-31 19:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-25 21:24 [PATCH for-next v2] RDMA/rxe: Split MEM into MR and MW Bob Pearson
2021-03-30  7:13 ` Zhu Yanjun
2021-03-30 15:09   ` Bob Pearson
2021-03-30 20:12 ` Jason Gunthorpe
2021-03-30 20:46   ` Bob Pearson
2021-03-30 22:54     ` Jason Gunthorpe
2021-03-31 19:51       ` Bob Pearson [this message]
2021-04-01 11:30         ` Jason Gunthorpe
2021-04-03 19:00   ` Bob Pearson
2021-04-04  7:41     ` Mark Bloch
2021-04-04 16:39       ` Bob Pearson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d542977c-54fa-b1e6-8717-616d6c5b5218@gmail.com \
    --to=rpearsonhpe@gmail.com \
    --cc=jgg@nvidia.com \
    --cc=linux-rdma@vger.kernel.org \
    --cc=rpearson@hpe.com \
    --cc=zyjzyj2000@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.