IB/iser: Replace fastreg descriptor valid bool with indicators container

In T10-PI support we will have memory keys for protection buffers and
signature transactions.  We prefer to compact indicators rather than
keeping multiple bools.

This commit does not change any functionality.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Alex Tabachnik <alext@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
This commit is contained in:
Sagi Grimberg
2014-03-05 19:43:43 +02:00
committed by Roland Dreier
parent 65198d6b84
commit 73bc06b7ed
3 changed files with 9 additions and 5 deletions

View File

@@ -280,13 +280,17 @@ struct iser_device {
enum iser_data_dir cmd_dir);
};
enum iser_reg_indicator {
ISER_DATA_KEY_VALID = 1 << 0,
};
struct fast_reg_descriptor {
struct list_head list;
/* For fast registration - FRWR */
struct ib_mr *data_mr;
struct ib_fast_reg_page_list *data_frpl;
/* Valid for fast registration flag */
bool valid;
/* registration indicators container */
u8 reg_indicators;
};
struct iser_conn {