linux_dsm_epyc7002/drivers/infiniband/hw
Eli Cohen f507d28bff IB/mlx4: Use kzalloc() for new QPs so flags are initialized to 0
Current code uses kmalloc() and then just does a bitwise OR operation on
qp->flags in create_qp_common(), which means that qp->flags may
potentially have some unintended bits set.  This patch uses kzalloc()
and avoids further explicit clearing of structure members, which also
shrinks the code:

add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-65 (-65)
function                                     old     new   delta
create_qp_common                            2024    1959     -65

Signed-off-by: Eli Cohen <eli@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
2008-07-14 23:48:53 -07:00
..
amso1100 RDMA/core: Add local DMA L_Key support 2008-07-14 23:48:53 -07:00
cxgb3 RDMA/cxgb3: Fixes for zero STag 2008-07-14 23:48:53 -07:00
ehca IB/ehca: Make device table externally visible 2008-07-14 23:48:49 -07:00
ipath IB/ipath: Use IEEE OUI for vendor_id reported by ibv_query_device() 2008-07-14 23:48:52 -07:00
mlx4 IB/mlx4: Use kzalloc() for new QPs so flags are initialized to 0 2008-07-14 23:48:53 -07:00
mthca IB/mthca: Fix check of max_send_sge for special QPs 2008-07-14 23:48:52 -07:00
nes RDMA/core: Add local DMA L_Key support 2008-07-14 23:48:53 -07:00