IB/core: Add get FW version string to the core
authorIra Weiny <ira.weiny@intel.com>
Wed, 15 Jun 2016 06:21:56 +0000 (02:21 -0400)
committerDoug Ledford <dledford@redhat.com>
Thu, 23 Jun 2016 16:08:33 +0000 (12:08 -0400)
commit5fa76c20458518ed6181adddef2e31c5afc0745c
tree7a89109008cb97c1f26e66a44de22214b0f124eb
parent5edb56491d4812c42175980759da53388e5d86f5
IB/core: Add get FW version string to the core

Allow for a common core function to get firmware version strings
from the individual devices.

In later patches this format can then then be used to pass a
properly formated version string through the IPoIB layer.

The problem with the current code in the IPoIB layer is that it is
specific to certain hardware types.

Furthermore, this gives us a common function through which the core
can provide a common sysfs entry.  Eventually we may want to
remove the sysfs export but this provides for user space backwards
compatibility.

Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/device.c
include/rdma/ib_verbs.h