IB/mthca: Factor common MAD initialization code
authorRoland Dreier <rolandd@cisco.com>
Mon, 9 Jan 2006 23:29:53 +0000 (15:29 -0800)
committerRoland Dreier <rolandd@cisco.com>
Mon, 9 Jan 2006 23:29:53 +0000 (15:29 -0800)
commit87635b71b544563f29050a9cecaa12b5d2a3e34a
tree5be700dae4582d73fdd31b8db0480eaddd04881c
parent105e50a5e8f184af31daffce4d7bfd7771fe213f
IB/mthca: Factor common MAD initialization code

Factor out common code for initializing MAD packets, which is shared
by many query routines in mthca_provider.c, into init_query_mad().

add/remove: 1/0 grow/shrink: 0/4 up/down: 16/-44 (-28)
function                                     old     new   delta
init_query_mad                                 -      16     +16
mthca_query_port                             521     518      -3
mthca_query_pkey                             301     294      -7
mthca_query_device                           648     641      -7
mthca_query_gid                              453     426     -27

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