IB/mad: Validate MADs for spec compliance
authorSean Hefty <sean.hefty@intel.com>
Thu, 20 Jul 2006 08:25:50 +0000 (11:25 +0300)
committerRoland Dreier <rolandd@cisco.com>
Mon, 24 Jul 2006 16:18:07 +0000 (09:18 -0700)
commit2527e681fd4fd4231c2e04f09d7b04d3cab8eefe
treec9c4fe05d04bcad941505f9e8d1c3903d9501f6b
parent16c59419a09f0140a07a1828d6a45656265e07c7
IB/mad: Validate MADs for spec compliance

Validate MADs sent by userspace clients for spec compliance with
C13-18.1.1 (prevent duplicate requests and responses sent on the
same port).  Without this, RMPP transactions get aborted because
of duplicate packets.

This patch is similar to that provided by Jack Morgenstein.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Jack Morgenstein <jackm@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/mad.c
drivers/infiniband/core/user_mad.c
include/rdma/ib_mad.h