From: Yuval Shaia <yuval.shaia-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
To: Roland Dreier <roland-BHEL68pLQRGGvPXPguhicg@public.gmane.org>
Cc: "linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH ] mlx4_core: Verify that port types are the same only if DPDP supported
Date: Mon, 8 Dec 2014 08:29:01 +0200 [thread overview]
Message-ID: <20141208062900.GA3121@yuval-lab> (raw)
In-Reply-To: <CAL1RGDWOh=Jmno-dsFr-4-jue+21VuEkEmYx3DFxhU615LuMzw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On Sun, Dec 07, 2014 at 09:24:26PM -0800, Roland Dreier wrote:
> On Sat, Dec 6, 2014 at 10:46 AM, Yuval Shaia <yuval.shaia-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org> wrote:
> >
> > - for (i = 0; i < dev->caps.num_ports - 1; i++) {
> > - if (port_type[i] != port_type[i + 1]) {
> > - if (!(dev->caps.flags & MLX4_DEV_CAP_FLAG_DPDP)) {
> > + if (!(dev->caps.flags & MLX4_DEV_CAP_FLAG_DPDP))
> > + for (i = 0; i < dev->caps.num_ports - 1; i++) {
> > + if (port_type[i] != port_type[i + 1]) {
>
> I'm struggling to understand what this patch does. It sure looks like
> a NOP to me.
Move check out of the loop just to make the code more nice & readable.
>
> At least you need to resend it with a changelog that explains why we
> want this change.
Will do.
>
> - R.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2014-12-08 6:29 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-06 18:46 [PATCH ] mlx4_core: Verify that port types are the same only if DPDP supported Yuval Shaia
[not found] ` <1417891599-11860-1-git-send-email-yuval.shaia-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2014-12-08 5:24 ` Roland Dreier
[not found] ` <CAL1RGDWOh=Jmno-dsFr-4-jue+21VuEkEmYx3DFxhU615LuMzw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-12-08 6:29 ` Yuval Shaia [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-12-07 17:05 Yuval Shaia
[not found] ` <1417971956-16577-1-git-send-email-yuval.shaia-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2014-12-09 17:47 ` Or Gerlitz
[not found] ` <CAJ3xEMgWQ9-iJa+TZpDYV8VS2ORyPsJWi_4vpUCnRxCrYtOLyw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-12-10 8:28 ` Yuval Shaia
2014-12-10 11:16 ` Yuval Shaia
2014-12-10 10:13 ` Matan Barak
[not found] ` <54881CDF.1090603-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2014-12-14 8:25 ` Yuval Shaia
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=20141208062900.GA3121@yuval-lab \
--to=yuval.shaia-qhclzuegtsvqt0dzr+alfa@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=roland-BHEL68pLQRGGvPXPguhicg@public.gmane.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