IB: Add ib_modify_qp_is_ok() library function
authorRoland Dreier <rolandd@cisco.com>
Mon, 13 Feb 2006 20:48:12 +0000 (12:48 -0800)
committerRoland Dreier <rolandd@cisco.com>
Mon, 20 Mar 2006 18:08:12 +0000 (10:08 -0800)
The in-kernel mthca driver contains a table of which attributes are
valid for each queue pair state transition.  It turns out that both
other IB drivers -- ipath and ehca -- which are being prepared for
merging have copied this table, errors and all.

To forestall this code duplication, move this table and the code to
check parameters against it into a midlayer library function,
ib_modify_qp_is_ok().

Signed-off-by: Roland Dreier <rolandd@cisco.com>

No differences found