From: Maciej Sosnowski Date: Wed, 24 Nov 2010 17:29:38 +0000 (+0000) Subject: RDMA/nes: Generate IB_EVENT_PORT_ERR/PORT_ACTIVE events X-Git-Tag: v2.6.38-rc1~13^2^4~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea623455b736d82f476460647e8b5fe5dc36f4f2;p=pandora-kernel.git RDMA/nes: Generate IB_EVENT_PORT_ERR/PORT_ACTIVE events Depending on link state change, IB_EVENT_PORT_ERR or IB_EVENT_PORT_ACTIVE should be generated when handling MAC interrupts. Plugging in a cable happens to result in series of interrupts changing driver's link state a number of times before finally staying at link up (e.g. link up, link down, link up, link down, ..., link up). To prevent sending series of redundant IB_EVENT_PORT_ACTIVE and IB_EVENT_PORT_ERR events, we use a timer to debounce them in nes_port_ibevent(). Signed-off-by: Maciej Sosnowski Signed-off-by: Roland Dreier --- Reading git-diff-tree failed