OpenCloudOS-Kernel/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 IB/usnic: Add dependency on CONFIG_INET 2014-01-18 13:48:54 -08:00
Makefile
usnic.h usnic: add missing clauses to BSD license 2015-10-06 13:43:25 -04:00
usnic_abi.h usnic: add missing clauses to BSD license 2015-10-06 13:43:25 -04:00
usnic_common_pkt_hdr.h RDMA: Adding ethertype ETH_P_IBOE 2017-01-10 14:05:11 -05:00
usnic_common_util.h {net,IB}/{rxe,usnic}: Utilize generic mac to eui32 function 2017-04-25 14:21:34 -04:00
usnic_debugfs.c IB/usnic: Improve a failure message 2015-12-23 10:50:57 -05:00
usnic_debugfs.h usnic: add missing clauses to BSD license 2015-10-06 13:43:25 -04:00
usnic_fwd.c usnic: add missing clauses to BSD license 2015-10-06 13:43:25 -04:00
usnic_fwd.h RDMA: Adding ethertype ETH_P_IBOE 2017-01-10 14:05:11 -05:00
usnic_ib.h usnic: add missing clauses to BSD license 2015-10-06 13:43:25 -04:00
usnic_ib_main.c RDMA: Simplify get firmware interface 2017-08-10 13:28:10 +03:00
usnic_ib_qp_grp.c Merge branches 'misc', 'qedr', 'reject-helpers', 'rxe' and 'srp' into merge-test 2016-12-14 14:44:47 -05:00
usnic_ib_qp_grp.h usnic: add missing clauses to BSD license 2015-10-06 13:43:25 -04:00
usnic_ib_sysfs.c Ib/usnic: Explicitly include usnic headers 2017-04-28 13:11:43 -04:00
usnic_ib_sysfs.h usnic: add missing clauses to BSD license 2015-10-06 13:43:25 -04:00
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 IB/usnic: Implement get_netdev hook 2017-07-24 08:44:46 -04:00
usnic_log.h usnic: add missing clauses to BSD license 2015-10-06 13:43:25 -04:00
usnic_transport.c usnic: add missing clauses to BSD license 2015-10-06 13:43:25 -04:00
usnic_transport.h usnic: add missing clauses to BSD license 2015-10-06 13:43:25 -04:00
usnic_uiom.c sched/headers: Prepare for new header dependencies before moving code to <linux/sched/signal.h> 2017-03-02 08:42:29 +01:00
usnic_uiom.h usnic: add missing clauses to BSD license 2015-10-06 13:43:25 -04:00
usnic_uiom_interval_tree.c usnic: add missing clauses to BSD license 2015-10-06 13:43:25 -04:00
usnic_uiom_interval_tree.h usnic: add missing clauses to BSD license 2015-10-06 13:43:25 -04:00
usnic_vnic.c IB/usninc: Remove and fix debug prints after allocation failure 2016-12-03 13:12:52 -05:00
usnic_vnic.h usnic: add missing clauses to BSD license 2015-10-06 13:43:25 -04:00