linux-stable/drivers/infiniband/hw/mlx4
Roland Dreier f438000f7a IB/mlx4: Micro-optimize mlx4_ib_post_send()
Rather than have build_mlx_header() return a negative value on failure
and the length of the segments it builds on success, add a pointer
parameter to return the length and return 0 on success.  This matches
the calling convention used for build_lso_seg() and generates slightly
smaller code -- eg, on 64-bit x86:

add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-22 (-22)
function                                     old     new   delta
mlx4_ib_post_send                           2023    2001     -22

Signed-off-by: Roland Dreier <rolandd@cisco.com>
2008-04-16 21:09:28 -07:00
..
ah.c IB/mlx4: Add a driver Mellanox ConnectX InfiniBand adapters 2007-05-08 18:00:38 -07:00
cq.c IB/mlx4: Add IPoIB LSO support 2008-04-16 21:09:27 -07:00
doorbell.c IB/mlx4: Add a driver Mellanox ConnectX InfiniBand adapters 2007-05-08 18:00:38 -07:00
Kconfig IB: Use menuconfig for InfiniBand menu 2007-07-09 20:12:26 -07:00
mad.c IB/mlx4: Convert "if(foo)" to "if (foo)" 2008-04-16 21:01:04 -07:00
main.c IB/mlx4: Add IPoIB LSO support 2008-04-16 21:09:27 -07:00
Makefile IB/mlx4: Add a driver Mellanox ConnectX InfiniBand adapters 2007-05-08 18:00:38 -07:00
mlx4_ib.h IB/mlx4: Add IPoIB LSO support 2008-04-16 21:09:27 -07:00
mr.c IB/mlx4: mlx4_ib_fmr_alloc() should call mlx4_fmr_enable() 2008-02-14 10:39:36 -08:00
qp.c IB/mlx4: Micro-optimize mlx4_ib_post_send() 2008-04-16 21:09:28 -07:00
srq.c IB/mlx4: Consolidate code to get an entry from a struct mlx4_buf 2008-02-06 21:07:54 -08:00
user.h IB/mlx4: Handle new FW requirement for send request prefetching 2007-06-18 08:13:48 -07:00