]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mad: Enable loopback of DR SMP responses from userspace
authorSteve Welch <swelch@systemfabricworks.com>
Tue, 23 Oct 2007 22:06:10 +0000 (15:06 -0700)
committerRoland Dreier <rolandd@cisco.com>
Fri, 25 Jan 2008 22:15:25 +0000 (14:15 -0800)
commit96c057348f90d712a59ade6347c2de45a1b84514
tree8df1442f057fa137679440f7a2aa18c12eb6c01b
parentbcec0d0016ea78ab6a48d0961dae4796f2c75be3
IB/mad: Enable loopback of DR SMP responses from userspace

The local loopback of an outgoing DR SMP response is limited to those
that originate at the driver specific SMA implementation during the
driver specific process_mad() function.  This patch enables a
returning DR SMP originating in userspace (or elsewhere) to be
delivered to the local managment stack.  In this specific case the
driver process_mad() function does not consume or process the MAD, so
a reponse mad has not be created and the original MAD must manually be
copied to the MAD buffer that is to be handed off to the local agent.

Signed-off-by: Steve Welch <swelch@systemfabricworks.com>
Acked-by: Hal Rosenstock <hal@xsigo.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/mad.c
drivers/infiniband/core/smi.h