From: Stephen Hemminger <shemminger@osdl.org>
To: linux-kernel@vger.kernel.org
Subject: Re: [PATCH 05/16] ehca: InfiniBand query and multicast functionality
Date: Thu, 27 Apr 2006 09:51:13 -0700 [thread overview]
Message-ID: <20060427095113.2b4d1cad@localhost.localdomain> (raw)
In-Reply-To: <4450A17D.4030708@de.ibm.com>
On Thu, 27 Apr 2006 12:48:29 +0200
Heiko J Schick <schihei@de.ibm.com> wrote:
> Signed-off-by: Heiko J Schick <schickhj@de.ibm.com>
>
>
> ehca_hca.c | 286 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> ehca_mcast.c | 198 ++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 484 insertions(+)
>
>
> +#define TO_MAX_INT(dest, src) \
> + if (src >= INT_MAX) \
> + dest = INT_MAX; \
> + else \
> + dest = src
> +
This is doubly ugly, replace
TO_MAX_INT(props->max_qp, (rblock->max_qp - rblock->cur_qp);
with
props->max_qp = min(rblock->max_qp - rblock->cur_qp, INT_MAX);
prev parent reply other threads:[~2006-04-27 16:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-27 10:48 Heiko J Schick
2006-04-27 11:41 ` Jörn Engel
2006-04-27 12:05 ` Arnd Bergmann
2006-04-27 12:16 ` Jörn Engel
2006-04-27 13:45 ` Christoph Hellwig
2006-04-27 14:39 ` Arnd Bergmann
2006-04-27 16:51 ` Stephen Hemminger [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=20060427095113.2b4d1cad@localhost.localdomain \
--to=shemminger@osdl.org \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®