linux/drivers/infiniband
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
..
core RDMA: Simplify get firmware interface 2017-08-10 13:28:10 +03:00
hw RDMA: Simplify get firmware interface 2017-08-10 13:28:10 +03:00
sw IB/{rdmavt, hfi1, qib}: Fix panic with post receive and SGE compression 2017-07-31 15:18:38 -04:00
ulp RDMA: Simplify get firmware interface 2017-08-10 13:28:10 +03:00
Kconfig IB/opa-vnic: Virtual Network Interface Controller (VNIC) netdev 2017-04-20 12:01:38 -04:00
Makefile IB/rdmavt: Create module framework and handle driver registration 2016-03-10 20:37:04 -05:00