public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: Alex Netes <alexne-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
To: Hal Rosenstock <hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
Cc: "linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH 2/2] opensm/osm_pkey_mgr.c: In pkey_mgr_update_peer_port, better last block handling
Date: Sun, 10 Apr 2011 10:51:16 +0300	[thread overview]
Message-ID: <20110410075116.GH21920@calypso.voltaire.com> (raw)
In-Reply-To: <4D9E02F1.3090609-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>

On 14:31 Thu 07 Apr     , Hal Rosenstock wrote:
> Hi Alex,
> 
> On 4/7/2011 12:46 PM, Alex Netes wrote:
> > Hi Hal,
> > 
> > On 14:05 Tue 05 Apr     , Hal Rosenstock wrote:
> >>
> >> PKey table capacities are not required to be multiples of the PKey table block
> >> size (32 entries of 16 pkeys).
> 
>                         ^^^^^^^
>                         16 bit pkeys
> 
> >>
> >> Current code could enable partition enforcement on the peer switch port
> >> even if the last partition table block were truncated. In this case, it's
> >> better to disable partition enforcement on those ports.
> >>
> > 
> > What is the motivation for this patch?
> 
> The policy question is what to do when that occurs.
> 
> > In case where there are more pkeys than sw->switch_info.enforce_cap I guess
> > enforcement won't be applied on pkeys > sw->switch_info.enforce_cap.
> 
> The SM shouldn't set any such entries in the PKey table per 14.2.5.7
> P_KEYTABLE p. 842 line 37:
> 
> The AttributeModifier is divided in two halves:
> • The least significant 16 bits are a pointer to a block of 32 P_Key
> entries to which this Attribute applies.  Valid values are 0 - 2047, and
> are further limited by the size of the P_Key table for that node
> (specified by the PartitionCap for CAs, routers, and switch management
> ports or PartitionEnforcementCap for external ports on switches).
> 
> so a conforming SMA should reject such a set.
> 
> > This is a user configuration issue. 
> 
> Yes.
> 
> > Why issue a warning message to a log isn't enough?
> 
> That's the minimum that should be done. The question then becomes
> whether it's better to enforce for some subset of the partitions or
> disable enforrcement. I was trying to avoid another config option for this.
> 

Makes sense.

Applied, thanks.
--
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:[~2011-04-10  7:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-05 18:05 [PATCH 2/2] opensm/osm_pkey_mgr.c: In pkey_mgr_update_peer_port, better last block handling Hal Rosenstock
     [not found] ` <4D9B59D1.9010209-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2011-04-07 16:46   ` Alex Netes
     [not found]     ` <20110407164642.GD21920-iQai9MGU/dyyaiaB+Ve85laTQe2KTcn/@public.gmane.org>
2011-04-07 18:31       ` Hal Rosenstock
     [not found]         ` <4D9E02F1.3090609-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2011-04-10  7:51           ` Alex Netes [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=20110410075116.GH21920@calypso.voltaire.com \
    --to=alexne-vpraknaxozvwk0htik3j/w@public.gmane.org \
    --cc=hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@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