aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/switchtec.h
diff options
context:
space:
mode:
authorWesley Sheng <wesley.sheng@microchip.com>2018-12-06 21:30:51 +0800
committerJon Mason <jdmason@kudzu.us>2019-02-11 07:36:13 -0500
commitd123fab71f63aae129aebe052664fda73131921a (patch)
tree9430880e21eaa1bd3733dfc4e71d05f34857e42b /include/linux/switchtec.h
parentntb_hw_switchtec: debug print 64bit aligned crosslink BAR Numbers (diff)
downloadwireguard-linux-d123fab71f63aae129aebe052664fda73131921a.tar.xz
wireguard-linux-d123fab71f63aae129aebe052664fda73131921a.zip
ntb_hw_switchtec: NT req id mapping table register entry number should be 512
The number of available NT req id mapping table entries per NTB control register is 512. The driver mistakenly limits the number to 256. Fix the array size of NT req id mapping table. Fixes: c082b04c9d40 ("NTB: switchtec: Add NTB hardware register definitions") Signed-off-by: Wesley Sheng <wesley.sheng@microchip.com> Reviewed-by: Logan Gunthorpe <logang@deltatee.com> Signed-off-by: Jon Mason <jdmason@kudzu.us>
Diffstat (limited to 'include/linux/switchtec.h')
-rw-r--r--include/linux/switchtec.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/switchtec.h b/include/linux/switchtec.h
index eee0412bdf4b..32b282cd0ead 100644
--- a/include/linux/switchtec.h
+++ b/include/linux/switchtec.h
@@ -249,8 +249,8 @@ struct ntb_ctrl_regs {
u64 xlate_addr;
} bar_entry[6];
u32 reserved2[216];
- u32 req_id_table[256];
- u32 reserved3[512];
+ u32 req_id_table[512];
+ u32 reserved3[256];
u64 lut_entry[512];
} __packed;