Eli Cohen 920d706c89 IB/core: Fix and clean up ib_ud_header_init()
ib_ud_header_init() first clears header and then fills up the various
fields.  Later on, it tests header->immediate_present, which it has
already cleared, so the condition is always false.  Fix this by adding
an immediate_present parameter and setting header->immediate_present
as is done with grh_present.  Also remove unused calculation of
header_len.

Signed-off-by: Eli Cohen <eli@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
2010-02-24 14:54:10 -08:00
..
2009-11-19 16:46:25 -08:00
2008-07-14 23:48:44 -07:00
2008-07-14 23:48:44 -07:00
2009-01-17 17:11:57 -08:00
2009-01-17 17:11:57 -08:00
2008-07-14 23:48:44 -07:00
2008-07-14 23:48:44 -07:00
2006-09-22 15:22:46 -07:00
2008-07-14 23:48:44 -07:00
2009-09-10 21:19:45 -07:00
2008-07-14 23:48:44 -07:00
2009-10-04 15:05:10 -07:00
2009-11-19 13:26:06 -08:00
2010-02-11 15:40:48 -08:00
2009-10-04 15:05:10 -07:00
2008-07-14 23:48:44 -07:00