linux_dsm_epyc7002/drivers/infiniband/hw/usnic
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
..
Kconfig
Makefile
usnic_abi.h
usnic_common_pkt_hdr.h
usnic_common_util.h
usnic_debugfs.c
usnic_debugfs.h
usnic_fwd.c
usnic_fwd.h
usnic_ib_main.c RDMA: Simplify get firmware interface 2017-08-10 13:28:10 +03:00
usnic_ib_qp_grp.c
usnic_ib_qp_grp.h
usnic_ib_sysfs.c
usnic_ib_sysfs.h
usnic_ib_verbs.c IB/core: Add generic function to extract IB speed from netdev 2017-07-24 08:45:11 -04:00
usnic_ib_verbs.h
usnic_ib.h
usnic_log.h
usnic_transport.c
usnic_transport.h
usnic_uiom_interval_tree.c
usnic_uiom_interval_tree.h
usnic_uiom.c
usnic_uiom.h
usnic_vnic.c
usnic_vnic.h
usnic.h