]> err.no Git - linux-2.6/commit
IB/mlx4: Factor out setting WQE data segment entries
authorRoland Dreier <rolandd@cisco.com>
Wed, 18 Jul 2007 18:46:27 +0000 (11:46 -0700)
committerRoland Dreier <rolandd@cisco.com>
Wed, 18 Jul 2007 18:46:27 +0000 (11:46 -0700)
commitd420d9e32f4bd741b2f0b7227a91941107f96b47
tree0754d522957865259048597a844a8ca28c3aa783
parent80885456e844552044c8c5f1f9bf0f6773b187ea
IB/mlx4: Factor out setting WQE data segment entries

Factor code to set data segment entries out of mlx4_ib_post_send()
into set_data_seg().  This cleans up the code and lets the compiler do
a better job -- on x86_64:

add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-16 (-16)
function                                     old     new   delta
mlx4_ib_post_send                           1598    1582     -16

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mlx4/qp.c