From patchwork Tue Sep 28 06:20:48 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eli Cohen X-Patchwork-Id: 214052 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 o8S6LMrM016762 for ; Tue, 28 Sep 2010 06:21:22 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753284Ab0I1GVD (ORCPT ); Tue, 28 Sep 2010 02:21:03 -0400 Received: from mail-fx0-f46.google.com ([209.85.161.46]:40614 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752998Ab0I1GVD (ORCPT ); Tue, 28 Sep 2010 02:21:03 -0400 Received: by fxm3 with SMTP id 3so2393866fxm.19 for ; Mon, 27 Sep 2010 23:21:00 -0700 (PDT) Received: by 10.223.15.88 with SMTP id j24mr2193326faa.55.1285654860257; Mon, 27 Sep 2010 23:21:00 -0700 (PDT) Received: from localhost ([82.166.227.17]) by mx.google.com with ESMTPS id h12sm2893264faa.37.2010.09.27.23.20.58 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 27 Sep 2010 23:20:58 -0700 (PDT) Date: Tue, 28 Sep 2010 08:20:48 +0200 From: Eli Cohen To: Parav Pandit Cc: linux-rdma@vger.kernel.org Subject: Re: how new GIDs are notified to IB stack in OFED 1.5.1? Message-ID: <20100928062048.GE26734@mtldesk30> References: <709363.14225.qm@web30107.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <709363.14225.qm@web30107.mail.mud.yahoo.com> User-Agent: Mutt/1.5.20 (2009-06-14) 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.3 (demeter1.kernel.org [140.211.167.41]); Tue, 28 Sep 2010 06:21:23 +0000 (UTC) diff --git a/drivers/infiniband/core/cache.c b/drivers/infiniband/core/cache.c index 6888356..660bff5 100644 --- a/drivers/infiniband/core/cache.c +++ b/drivers/infiniband/core/cache.c @@ -302,7 +302,8 @@ static void ib_cache_event(struct ib_event_handler *handler, event->event == IB_EVENT_LID_CHANGE || event->event == IB_EVENT_PKEY_CHANGE || event->event == IB_EVENT_SM_CHANGE || - event->event == IB_EVENT_CLIENT_REREGISTER) { + event->event == IB_EVENT_CLIENT_REREGISTER || + event->event == IB_EVENT_GID_CHANGE) { work = kmalloc(sizeof *work, GFP_ATOMIC); if (work) { INIT_WORK(&work->work, ib_cache_task); diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h index 597878c..f5b054a 100644 --- a/include/rdma/ib_verbs.h +++ b/include/rdma/ib_verbs.h @@ -351,7 +351,8 @@ enum ib_event_type { IB_EVENT_SRQ_ERR, IB_EVENT_SRQ_LIMIT_REACHED, IB_EVENT_QP_LAST_WQE_REACHED, - IB_EVENT_CLIENT_REREGISTER + IB_EVENT_CLIENT_REREGISTER, + IB_EVENT_GID_CHANGE, }; enum ib_event_flags {