android_kernel_oneplus_msm8998/drivers/infiniband/hw
Jack Morgenstein 571b8b92c7 net/mlx4_core: Initialize all mailbox buffers to zero before use
To guarantee that all unused fields in all FW commands for both inboxes
and outboxes are zeroed out, initialize the mailbox buffer to all zeroes.

This is especially important for SRIOV comm-channel virtual commands
(such as QUERY_FUNC_CAP), where if new fields are added to support new
features, the driver can depend on older kernels passing zeroes in these
fields.

In addition to zeroing out the mailbox buffer at allocation time, all
(now unnecessary) calls to memset by the callers of
mlx4_alloc_cmd_mailbox() are removed.

Signed-off-by: Majd Dibbiny <majd@mellanox.com>
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-11-07 19:22:47 -05:00
..
amso1100 IB: Remove unnecessary semicolons 2013-10-14 10:10:00 -07:00
cxgb3 RDMA/cma: Add IPv6 support for iWARP 2013-08-12 12:32:31 -07:00
cxgb4 RDMA/cxgb4: Issue RI.FINI before closing when entering TERM 2013-08-13 11:55:49 -07:00
ehca treewide: Add __GFP_NOWARN to k.alloc calls with v.alloc fallbacks 2013-08-20 13:06:40 +02:00
ipath InfiniBand/RDMA changes for the 3.10 merge window: 2013-05-08 15:29:48 -07:00
mlx4 net/mlx4_core: Initialize all mailbox buffers to zero before use 2013-11-07 19:22:47 -05:00
mlx5 IB/mlx5: Ensure proper synchronization accessing memory 2013-10-10 09:24:00 -07:00
mthca IB: Remove unnecessary semicolons 2013-10-14 10:10:00 -07:00
nes RDMA/cma: Add IPv6 support for iWARP 2013-08-12 12:32:31 -07:00
ocrdma IB: Remove unnecessary semicolons 2013-10-14 10:10:00 -07:00
qib Remove GENERIC_HARDIRQ config option 2013-09-13 15:09:52 +02:00