alistair23-linux/drivers/infiniband/hw/hfi1
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
..
affinity.c IB/hfi1: Replace deprecated pci functions with new API 2017-06-27 16:58:11 -04:00
affinity.h IB/hfi1: Name function prototype parameters for affinity module 2017-06-27 16:56:33 -04:00
aspm.h IB/hfi1: Size rcd array index correctly and consistently 2017-07-31 15:17:55 -04:00
chip.c IB/hfi1: Always perform offline transition 2017-07-31 15:18:38 -04:00
chip.h IB/hfi1: Always perform offline transition 2017-07-31 15:18:38 -04:00
chip_registers.h RDMA/hfi1: Defer setting VL15 credits to link-up interrupt 2017-06-01 17:04:20 -04:00
common.h IB/hfi1: Setup common IB fields in hfi1_packet struct 2017-06-27 16:56:33 -04:00
debugfs.c IB/hfi1: Virtual Network Interface Controller (VNIC) HW support 2017-04-20 15:19:35 -04:00
debugfs.h IB/hfi1: Add transmit fault injection feature 2017-04-05 14:45:09 -04:00
device.c infiniband: utilize the new cdev_set_parent function 2017-03-21 06:44:33 +01:00
device.h
driver.c IB/hfi1: Create workqueue for link events 2017-07-31 15:18:38 -04:00
efivar.c IB/hfi1: Check upper-case EFI variables 2017-02-19 09:18:37 -05:00
efivar.h
eprom.c IB/hfi1: Handle missing magic values in config file 2017-06-27 16:58:13 -04:00
eprom.h
exp_rcv.c IB/hfi1: Initialize TID lists to avoid crash on cleanup 2017-06-27 16:58:13 -04:00
exp_rcv.h IB/hfi1: Fix bar0 mapping to use write combining 2017-07-31 15:17:54 -04:00
file_ops.c IB/hfi1: Only set fd pointer when base context is completely initialized 2017-07-31 15:18:38 -04:00
firmware.c IB/hfi1: Always perform offline transition 2017-07-31 15:18:38 -04:00
hfi.h IB/hfi1: Prevent link down request double queuing 2017-07-31 15:18:38 -04:00
init.c IB/hfi1: Create workqueue for link events 2017-07-31 15:18:38 -04:00
intr.c IB/hfi1: Verify port data VLs credits on transition to Armed 2017-07-31 15:18:37 -04:00
iowait.h IB/hfi1: Serve the most starved iowait entry first 2017-07-31 15:17:54 -04:00
Kconfig
mad.c IB/hfi1: Send MAD traps until repressed 2017-07-31 15:17:55 -04:00
mad.h IB/hfi1: Send MAD traps until repressed 2017-07-31 15:17:55 -04:00
Makefile IB/hfi1: Create common expected receive verbs/PSM code 2017-06-27 16:58:13 -04:00
mmu_rb.c IB/hfi1: Don't remove RB entry when not needed. 2017-06-27 16:56:33 -04:00
mmu_rb.h IB/hfi1: Don't remove RB entry when not needed. 2017-06-27 16:56:33 -04:00
opa_compat.h
pcie.c IB/hfi1: Move saving PCI values to a separate function 2017-07-31 15:18:37 -04:00
pio.c IB/hfi1: Create workqueue for link events 2017-07-31 15:18:38 -04:00
pio.h IB/hfi: Fix up comments in engine mapping 2017-04-25 15:24:51 -04:00
pio_copy.c
platform.c IB/hfi1: Disambiguate corruption and uninitialized error cases 2017-07-31 15:18:38 -04:00
platform.h
qp.c IB/hfi1: Serve the most starved iowait entry first 2017-07-31 15:17:54 -04:00
qp.h IB/{rdmavt, qib, hfi1}: Remove gfp flags argument 2017-07-17 21:21:23 -04:00
qsfp.c
qsfp.h
rc.c IB/hfi1: Setup common IB fields in hfi1_packet struct 2017-06-27 16:56:33 -04:00
ruc.c IB/{rdmavt, hfi1, qib}: Fix panic with post receive and SGE compression 2017-07-31 15:18:38 -04:00
sdma.c IB/hfi1: Create workqueue for link events 2017-07-31 15:18:38 -04:00
sdma.h IB/hfi1: Serve the most starved iowait entry first 2017-07-31 15:17:54 -04:00
sdma_txreq.h
sysfs.c RDMA/hfi1: fix array termination by appending NULL to attr array 2017-06-01 17:03:19 -04:00
trace.c IB/hfi1: Separate input/output header tracing 2017-06-27 16:56:33 -04:00
trace.h
trace_ctxts.h IB/hfi1: Clean up context initialization 2017-05-04 19:31:46 -04:00
trace_dbg.h
trace_ibhdrs.h IB/hfi1: Separate input/output header tracing 2017-06-27 16:56:33 -04:00
trace_misc.h IB/hfi1: Add traces for TID operations 2017-06-27 16:58:13 -04:00
trace_rc.h IB/rdmavt, IB/hfi1: Fix timer migration regressions 2017-04-05 14:45:09 -04:00
trace_rx.h IB/hfi1: Size rcd array index correctly and consistently 2017-07-31 15:17:55 -04:00
trace_tx.h IB/hfi1: Fix yield logic in send engine 2017-05-04 19:31:46 -04:00
uc.c IB/hfi1: Setup common IB fields in hfi1_packet struct 2017-06-27 16:56:33 -04:00
ud.c IB/hfi1,qib: Do not send QKey trap for UD qps 2017-06-27 16:58:12 -04:00
user_exp_rcv.c IB/hfi1: Only set fd pointer when base context is completely initialized 2017-07-31 15:18:38 -04:00
user_exp_rcv.h IB/hfi1: Only set fd pointer when base context is completely initialized 2017-07-31 15:18:38 -04:00
user_pages.c IB/hfi1: Virtual Network Interface Controller (VNIC) HW support 2017-04-20 15:19:35 -04:00
user_sdma.c IB/hfi1: Only set fd pointer when base context is completely initialized 2017-07-31 15:18:38 -04:00
user_sdma.h IB/hfi1: Only set fd pointer when base context is completely initialized 2017-07-31 15:18:38 -04:00
verbs.c RDMA: Simplify get firmware interface 2017-08-10 13:28:10 +03:00
verbs.h IB/hfi1: Serve the most starved iowait entry first 2017-07-31 15:17:54 -04:00
verbs_txreq.c
verbs_txreq.h
vnic.h IB/hfi1: Serve the most starved iowait entry first 2017-07-31 15:17:54 -04:00
vnic_main.c IB/hfi1: Pass the context pointer rather than the index 2017-07-31 15:17:55 -04:00
vnic_sdma.c IB/hfi1: Serve the most starved iowait entry first 2017-07-31 15:17:54 -04:00