]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit726a9ef847ed0f2b0dff372afc113e9dc61fdfc0
treec9c4fe05d04bcad941505f9e8d1c3903d9501f6b
parent64aa802198a83879235f51cc8091b8e1681f9b9e
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