]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
ib/umad: export mad snooping capability to userspace mad_snoop
authorSean Hefty <sean.hefty@intel.com>
Thu, 14 Apr 2011 17:15:28 +0000 (10:15 -0700)
committerSean Hefty <sean.hefty@intel.com>
Thu, 14 Apr 2011 17:15:28 +0000 (10:15 -0700)
commitc5a24e9586eaba2508e28a5a26dcd22d8c09ac78
tree9d874267bb45907a97a54d68b5fad72a5ae5b547
parent5af521a6aed63ffcca0b69dbcec5ac3050a109aa
ib/umad: export mad snooping capability to userspace

The kernel mad interface allows a client to view all
sent and received MADs.  This has proven to be a useful
debugging techinque when used with an external module.
However, external kernel modules are not easily supported
and do not easily allow for more complex filtering or analysis
of MAD traffic.

Export the mad snooping capability to user space clients
through the existing umad interface.  This will allow
users to capture MAD data for debugging, plus it allows
for services to act on MAD traffic that occurs.  For example,
a daemon could snoop SA queries and CM messages as part of
providing a path record caching service.  (It could cached
snooped path records, record the average time needed for the
SA to respond to queries, use CM timeouts as an indication
that cached data may be stale, etc.)

Because such services may become crucial to support large
clusters, mad snooping capabilities should be built into
the stack directly, rather than accessed through debugging
interfaces.

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