IB/iser: Support iSCSI PDU padding
authorOr Gerlitz <ogerlitz@mellanox.com>
Mon, 1 Aug 2011 21:14:09 +0000 (21:14 +0000)
committerRoland Dreier <roland@purestorage.com>
Wed, 17 Aug 2011 16:45:07 +0000 (09:45 -0700)
commit200ae1a08bec8f3fedfcfe94c892d9a024db4e46
treea5ea0224f3bb7998991a4c9e39f6f8aea7c70ba4
parent0ace64b85ea7b90e3bffe408b9d7c3364692bfa4
IB/iser: Support iSCSI PDU padding

RFC3270 mandates that iSCSI PDUs are padded to the closest integer
number of four byte words.  Fix the iser code to support that on both
the TX/RX flows.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.co.il>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/ulp/iser/iscsi_iser.c
drivers/infiniband/ulp/iser/iser_initiator.c