diff options
author | Roland Dreier <rolandd@cisco.com> | 2006-02-13 20:48:12 (GMT) |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-03-20 18:08:12 (GMT) |
commit | 8a51866f08103ba04894ce0f65eef567ddc3ed40 (patch) | |
tree | 39af79ce5995900c14610acc768850a749961ee9 /drivers/infiniband/hw/mthca/mthca_cmd.h | |
parent | 3fa1fa3e809dc009a080ca9f052cee2e17836c63 (diff) | |
download | linux-8a51866f08103ba04894ce0f65eef567ddc3ed40.tar.xz |
IB: Add ib_modify_qp_is_ok() library function
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>
Diffstat (limited to 'drivers/infiniband/hw/mthca/mthca_cmd.h')
0 files changed, 0 insertions, 0 deletions