RDMA/cxgb3: Enforce required firmware
authorSteve Wise <swise@opengridcomputing.com>
Wed, 25 Mar 2009 03:44:18 +0000 (20:44 -0700)
committerRoland Dreier <rolandd@cisco.com>
Wed, 25 Mar 2009 03:44:18 +0000 (20:44 -0700)
commitd1fbe04eee32ed2642cff139b8592866f1d43f41
treeb3a934fd0415f794fe7acca9bfbf9905e5967f38
parent426328963078f644c7194403a308588cf684d4c6
RDMA/cxgb3: Enforce required firmware

The cxgb3 NIC driver can handle more firmware versions than iw_cxgb3,
and since commit 8207befa ("cxgb3: untie strict FW matching") cxgb3
will load with firmware versions that iw_cxgb3 can't handle.  The FW
major number indicates a specific interface between the FW and
iw_cxgb3.  Thus if the major number of the running firmware does not
match the required version compiled into iw_cxgb3, then iw_cxgb3 must
not register that device.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/cxgb3/cxio_hal.c
drivers/infiniband/hw/cxgb3/cxio_hal.h