summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/io
diff options
context:
space:
mode:
authorAlex Wilson <alex@cooperi.net>2020-10-22 11:00:25 +1000
committerRobert Mustacchi <rm@fingolfin.org>2020-10-27 11:16:23 -0700
commit7cbbb9b50e91b71fbcb3cde98921fc7fbcbe83ea (patch)
tree50aadae8f7f8c03a1d0b9f37d40f74d69bc04d98 /usr/src/uts/common/io
parent91061836e6d66992af6a50374729f8ef6a6263ae (diff)
downloadillumos-joyent-7cbbb9b50e91b71fbcb3cde98921fc7fbcbe83ea.tar.gz
13241 mlxcx sending wrong length SET_FLOW_TABLE_ROOT on some parts
Reviewed by: Paul Winder <paul@winder.uk.net> Reviewed by: Andy Fiddaman <andy@omniosce.org> Approved by: Robert Mustacchi <rm@fingolfin.org>
Diffstat (limited to 'usr/src/uts/common/io')
-rw-r--r--usr/src/uts/common/io/mlxcx/mlxcx_cmd.c6
-rw-r--r--usr/src/uts/common/io/mlxcx/mlxcx_reg.h4
2 files changed, 10 insertions, 0 deletions
diff --git a/usr/src/uts/common/io/mlxcx/mlxcx_cmd.c b/usr/src/uts/common/io/mlxcx/mlxcx_cmd.c
index 32c40ec3ea..7ea0de4dab 100644
--- a/usr/src/uts/common/io/mlxcx/mlxcx_cmd.c
+++ b/usr/src/uts/common/io/mlxcx/mlxcx_cmd.c
@@ -3738,3 +3738,9 @@ CTASSERT(offsetof(mlxcx_cmd_access_register_in_t,
CTASSERT(offsetof(mlxcx_cmd_access_register_out_t,
mlxo_access_register_data) == 0x10);
+
+CTASSERT(sizeof (mlxcx_cmd_set_flow_table_root_in_t) == 64);
+CTASSERT(offsetof(mlxcx_cmd_set_flow_table_root_in_t,
+ mlxi_set_flow_table_root_table_id) == 0x15);
+CTASSERT(offsetof(mlxcx_cmd_set_flow_table_root_in_t,
+ mlxi_set_flow_table_root_esw_owner_vhca_id_valid) == 0x1C);
diff --git a/usr/src/uts/common/io/mlxcx/mlxcx_reg.h b/usr/src/uts/common/io/mlxcx/mlxcx_reg.h
index 4b92de92b8..24435a22ab 100644
--- a/usr/src/uts/common/io/mlxcx/mlxcx_reg.h
+++ b/usr/src/uts/common/io/mlxcx/mlxcx_reg.h
@@ -2082,6 +2082,10 @@ typedef struct {
uint8_t mlxi_set_flow_table_root_rsvd3[4];
uint24be_t mlxi_set_flow_table_root_table_id;
uint8_t mlxi_set_flow_table_root_rsvd4[4];
+ uint8_t mlxi_set_flow_table_root_esw_owner_vhca_id_valid;
+ uint8_t mlxi_set_flow_table_root_rsvd5;
+ uint16be_t mlxi_set_flow_table_root_esw_owner_vhca_id;
+ uint8_t mlxi_set_flow_table_root_rsvd6[32];
} mlxcx_cmd_set_flow_table_root_in_t;
typedef struct {