Leon Romanovsky 9abb0d1bbd RDMA: Simplify get firmware interface
There is a need to forward FW version to user space
application through RDMA netlink. In order to make it safe, there
is need to declare nla_policy and limit the size of FW string.

The new define IB_FW_VERSION_NAME_MAX will limit the size of
FW version string. That define was chosen to be equal to
ETHTOOL_FWVERS_LEN, because many drivers anyway are limited
by that value indirectly.

The introduction of this define allows us to remove the string size
from get_fw_str function signature.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
2017-08-10 13:28:10 +03:00
..
2017-04-20 16:13:20 -04:00
2017-04-20 16:13:20 -04:00
2010-11-01 15:38:34 -04:00
2017-04-20 16:13:20 -04:00
2017-04-20 16:13:20 -04:00
2017-04-20 16:13:20 -04:00
2017-04-20 16:13:20 -04:00
2017-07-24 08:45:11 -04:00
2013-02-27 19:10:16 -08:00
2011-08-10 19:54:52 -07:00