From: Jason Gunthorpe <jgg@nvidia.com>
To: Haakon Bugge <haakon.bugge@oracle.com>
Cc: Leon Romanovsky <leon@kernel.org>,
Doug Ledford <dledford@redhat.com>,
OFED mailing list <linux-rdma@vger.kernel.org>
Subject: Re: [PATCH for-next v2] IB/core: Only update PKEY and GID caches on respective events
Date: Tue, 25 May 2021 12:12:37 -0300 [thread overview]
Message-ID: <20210525151237.GA3433349@nvidia.com> (raw)
In-Reply-To: <0E229A2D-178F-427C-9F66-221439B63395@oracle.com>
On Mon, May 24, 2021 at 10:26:16AM +0000, Haakon Bugge wrote:
>
>
> > On 9 May 2021, at 09:47, Leon Romanovsky <leon@kernel.org> wrote:
> >
> > On Thu, May 06, 2021 at 10:31:44AM +0200, Håkon Bugge wrote:
> >> Both the PKEY and GID tables in an HCA can hold in the order of
> >> hundreds entries. Reading them are expensive. Partly because the API
> >> for retrieving them only returns a single entry at a time. Further, on
> >> certain implementations, e.g., CX-3, the VFs are paravirtualized in
> >> this respect and have to rely on the PF driver to perform the
> >> read. This again demands VF to PF communication.
> >>
> >> IB Core's cache is refreshed on all events. Hence, filter the refresh
> >> of the PKEY and GID caches based on the event received being
> >> IB_EVENT_PKEY_CHANGE and IB_EVENT_GID_CHANGE respectively.
> >>
> >> Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
> >> Signed-off-by: Håkon Bugge <haakon.bugge@oracle.com>
> >>
> >>
> >> v1 -> v2:
> >> * Changed signature of ib_cache_update() as per Leon's suggestion
> >> * Added Fixes tag as per Zhu Yanjun' suggestion
> >> drivers/infiniband/core/cache.c | 23 +++++++++++++++--------
> >> 1 file changed, 15 insertions(+), 8 deletions(-)
> >>
> >
> > Thanks,
> > Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
>
> I saw a handful commits being applied for-next. Anything needed from my side here?
It doesn't apply please resend it
Jason
prev parent reply other threads:[~2021-05-25 15:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-06 8:31 [PATCH for-next v2] IB/core: Only update PKEY and GID caches on respective events Håkon Bugge
2021-05-06 11:27 ` Leon Romanovsky
2021-05-06 12:22 ` Haakon Bugge
2021-05-09 7:47 ` Leon Romanovsky
2021-05-24 10:26 ` Haakon Bugge
2021-05-25 15:12 ` Jason Gunthorpe [this message]
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=20210525151237.GA3433349@nvidia.com \
--to=jgg@nvidia.com \
--cc=dledford@redhat.com \
--cc=haakon.bugge@oracle.com \
--cc=leon@kernel.org \
--cc=linux-rdma@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox