]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
ib/mad: simplify snooping interface
authorSean Hefty <sean.hefty@intel.com>
Thu, 14 Apr 2011 17:15:22 +0000 (10:15 -0700)
committerSean Hefty <sean.hefty@intel.com>
Thu, 14 Apr 2011 17:15:22 +0000 (10:15 -0700)
commit5af521a6aed63ffcca0b69dbcec5ac3050a109aa
tree361a558e07d2cfab8d8c4ead0f082015e7d85673
parent521cb40b0c44418a4fd36dc633f575813d59a43d
ib/mad: simplify snooping interface

In preparation for exporting the kernel mad snooping capability
to user space, remove all code originally inserted as place holders
and simplify the mad snooping interface.

For performance reasons, we want to filter which mads are reported
to clients of the snooping interface at the lowest level, but we
also don't want to perform complex filtering at that level.
As a trade-off, we allow filtering based on mgmt_class, attr_id,
and mad request status.

The reasoning behind these choices are to allow a user to filter
traffic to a specific service (the SA or CM), for a well known
purpose (path record queries or multicast joins), or view only
operations that have failed.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
drivers/infiniband/core/mad.c
drivers/infiniband/core/mad_priv.h
include/rdma/ib_mad.h