public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: Doron Shoham <dorons-smomgflXvOZWk0Htik3J/w@public.gmane.org>
To: sashak-smomgflXvOZWk0Htik3J/w@public.gmane.org
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: [PATCH 3/4] set PartitionCap and PartitionEnforcementCap to be 32.
Date: Sun, 21 Mar 2010 17:23:03 +0200	[thread overview]
Message-ID: <4BA639D7.1040304@voltaire.com> (raw)
In-Reply-To: <4BA6391A.7020608-smomgflXvOZWk0Htik3J/w@public.gmane.org>

This is maximum number of pkeys that can be sent
in one CTL message.
This number is calculated from:
SIM_CTL_MAX_DATA/sizeof(uint16_t)


Signed-off-by: Doron Shoham <dorons-smomgflXvOZWk0Htik3J/w@public.gmane.org>
---
 ibsim/sim_net.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/ibsim/sim_net.c b/ibsim/sim_net.c
index 13c3b8c..6cdd40a 100644
--- a/ibsim/sim_net.c
+++ b/ibsim/sim_net.c
@@ -121,7 +121,7 @@ static const uint8_t hcaport_down[] = {
 
 static const uint8_t switchinfo[] = {
 	0xC0, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x04,
-	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40,
+	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20,
 	0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
@@ -134,7 +134,7 @@ static const uint8_t swnodeinfo[] = {
 	0x01, 0x01, 0x02, 0x08, 0x00, 0x00, 0x00, 0x00,
 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08,
 	0xF1, 0x04, 0x00, 0x0D, 0x00, 0x00, 0x00, 0x08,
-	0xF1, 0x04, 0x00, 0x0D, 0x00, 0x08, 0xA8, 0x7C,
+	0xF1, 0x04, 0x00, 0x0D, 0x00, 0x20, 0xA8, 0x7C,
 	0x00, 0x00, 0x00, 0xA1, 0x00, 0x00, 0x08, 0xF1,
 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
@@ -145,7 +145,7 @@ static const uint8_t hcanodeinfo[] = {
 	0x01, 0x01, 0x01, 0x02, 0x00, 0x02, 0xC9, 0x00,
 	0x01, 0x13, 0x6E, 0x40, 0x00, 0x02, 0xC9, 0x00,
 	0x01, 0x13, 0x6E, 0x40, 0x00, 0x02, 0xC9, 0x00,
-	0x01, 0x13, 0x6E, 0x41, 0x00, 0x40, 0x5A, 0x44,
+	0x01, 0x13, 0x6E, 0x41, 0x00, 0x20, 0x5A, 0x44,
 	0x00, 0x00, 0x00, 0xA1, 0x01, 0x00, 0x02, 0xC9,
 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-- 
1.5.4

--
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

  parent reply	other threads:[~2010-03-21 15:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-21 15:19 [PATCH 0/4] bug fixes and supporting new functionalities Doron Shoham
     [not found] ` <4BA6391A.7020608-smomgflXvOZWk0Htik3J/w@public.gmane.org>
2010-03-21 15:20   ` [PATCH 1/4] sim_ctl_get_portinfo: Doron Shoham
2010-03-21 15:21   ` [PATCH 2/4] sim_ctl_get_pkeys Doron Shoham
2010-03-21 15:23   ` Doron Shoham [this message]
2010-03-21 15:24   ` [PATCH 4/4] add support for end port selection Doron Shoham

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=4BA639D7.1040304@voltaire.com \
    --to=dorons-smomgflxvozwk0htik3j/w@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=sashak-smomgflXvOZWk0Htik3J/w@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