From patchwork Fri Apr 29 13:27:59 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 741051 X-Patchwork-Delegate: alexne@voltaire.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p3TDQl4Y010898 for ; Fri, 29 Apr 2011 13:28:06 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758578Ab1D2N2F (ORCPT ); Fri, 29 Apr 2011 09:28:05 -0400 Received: from mail-ww0-f44.google.com ([74.125.82.44]:62712 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752114Ab1D2N2E (ORCPT ); Fri, 29 Apr 2011 09:28:04 -0400 Received: by wwa36 with SMTP id 36so4266445wwa.1 for ; Fri, 29 Apr 2011 06:28:03 -0700 (PDT) Received: by 10.227.110.37 with SMTP id l37mr897469wbp.114.1304083683093; Fri, 29 Apr 2011 06:28:03 -0700 (PDT) Received: from [192.168.1.100] (c-71-192-10-85.hsd1.ma.comcast.net [71.192.10.85]) by mx.google.com with ESMTPS id bd8sm1711312wbb.14.2011.04.29.06.28.00 (version=SSLv3 cipher=OTHER); Fri, 29 Apr 2011 06:28:02 -0700 (PDT) Message-ID: <4DBABCDF.30508@dev.mellanox.co.il> Date: Fri, 29 Apr 2011 09:27:59 -0400 From: Hal Rosenstock User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: Alex Netes CC: "linux-rdma@vger.kernel.org" Subject: [PATCH 11/13] opensm/osm_sa_guidinfo_record.c: Better status for SA response Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 29 Apr 2011 13:28:06 +0000 (UTC) From 8ac0f4d7e91c3112030f696cd4d35f666263dedf Mon Sep 17 00:00:00 2001 From: Hal Rosenstock Date: Fri, 29 Apr 2011 13:44:49 +0300 Subject: [PATCH] opensm/osm_sa_guidinfo_record.c: Better status for SA response In osm_gir_rcv_process, when set or delete with insufficient components, indicate that rather than invalid status Signed-off-by: Hal Rosenstock --- opensm/osm_sa_guidinfo_record.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/opensm/osm_sa_guidinfo_record.c b/opensm/osm_sa_guidinfo_record.c index daf28ac..2211469 100644 --- a/opensm/osm_sa_guidinfo_record.c +++ b/opensm/osm_sa_guidinfo_record.c @@ -742,7 +742,7 @@ void osm_gir_rcv_process(IN void *ctx, IN void *data) cl_ntoh64(p_rcvd_mad->comp_mask), CL_NTOH64(MOD_GIR_COMP_MASK)); osm_sa_send_error(sa, p_madw, - IB_SA_MAD_STATUS_REQ_INVALID); + IB_SA_MAD_STATUS_INSUF_COMPS); goto Exit; } p_rcvd_rec = (ib_guidinfo_record_t *) ib_sa_mad_get_payload_ptr(p_rcvd_mad);