From patchwork Mon Feb 4 13:20:10 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Netes X-Patchwork-Id: 2092021 X-Patchwork-Delegate: hal@mellanox.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 7584D3FD56 for ; Mon, 4 Feb 2013 13:20:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754690Ab3BDNUu (ORCPT ); Mon, 4 Feb 2013 08:20:50 -0500 Received: from mail-vb0-f43.google.com ([209.85.212.43]:59732 "EHLO mail-vb0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754656Ab3BDNUt (ORCPT ); Mon, 4 Feb 2013 08:20:49 -0500 Received: by mail-vb0-f43.google.com with SMTP id fs19so843572vbb.30 for ; Mon, 04 Feb 2013 05:20:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state; bh=wEb1zs1+01hS05Cq0jipDfS3Eg55xgm5QvLyLIOyjE4=; b=hHyE+BCxw1K0cCHMMBmHf6xkjZ6Kk1GaU+0wVZEUF0k1G9CEGhVwN+kWqqk6bq2M+n JtXVGa6TAmUdr3X4MibEAGy3V4QB/fPHlS8VY1rKJx69jxmkBLEP2SX1i4Ocyjcdltqr ks2WRF1yxdRjXbftnYif6CiAMpdxzSKcbJRI69YfcTdLfmBxuhoVqiOnXLYu4nvo3gn5 PjXyzOYMhD61Tj2Ek6bSPqd+HdlxMvzDvkFPjlsFLqy7hn9ThvLYx1vpI9JtN9ANIrlV 2t7lIbxhtj2rpuek/z3lLL6CMptmGZ8LfeUkHa7Jueo2nTDOUZA1IsvCUYv7nPYTgblo wTnA== X-Received: by 10.58.134.16 with SMTP id pg16mr18440170veb.12.1359984048843; Mon, 04 Feb 2013 05:20:48 -0800 (PST) Received: from localhost (out.voltaire.com. [193.47.165.251]) by mx.google.com with ESMTPS id cl9sm21643293vdb.3.2013.02.04.05.20.46 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 04 Feb 2013 05:20:48 -0800 (PST) From: Alex Netes To: linux-rdma@vger.kernel.org Cc: Alex Netes Subject: [PATCH] opensm/osm_sm_mad_ctrl.c: Upon receiving trap repress we should decrease qp0_mads_outstanding_on_wire Date: Mon, 4 Feb 2013 15:20:10 +0200 Message-Id: <1359984011-30753-9-git-send-email-alexne@mellanox.com> X-Mailer: git-send-email 1.7.11.7 In-Reply-To: <1359984011-30753-1-git-send-email-alexne@mellanox.com> References: <1359984011-30753-1-git-send-email-alexne@mellanox.com> X-Gm-Message-State: ALoCoQkxHQarKwgdcMlUTy/xR/m1oik5mAogFm656lxImJYnaHkn5Ezkal+n7lxWJpECFbBy+uN7 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Current code causes SM to stuck after a few times SM priority is changed. Signed-off-by: Alex Netes --- opensm/osm_sm_mad_ctrl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/opensm/osm_sm_mad_ctrl.c b/opensm/osm_sm_mad_ctrl.c index c384eca..11195e8 100644 --- a/opensm/osm_sm_mad_ctrl.c +++ b/opensm/osm_sm_mad_ctrl.c @@ -534,6 +534,7 @@ static void sm_mad_ctrl_process_trap_repress(IN osm_sm_mad_ctrl_t * p_ctrl, */ switch (p_smp->attr_id) { case IB_MAD_ATTR_NOTICE: + sm_mad_ctrl_update_wire_stats(p_ctrl); sm_mad_ctrl_retire_trans_mad(p_ctrl, p_madw); break; default: