projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b60a00f
)
mlxsw: reg: Fix HTGT register length
author
Elad Raz
<eladr@mellanox.com>
Mon, 6 Feb 2017 12:56:27 +0000
(13:56 +0100)
committer
David S. Miller
<davem@davemloft.net>
Mon, 6 Feb 2017 16:07:21 +0000
(11:07 -0500)
HTGT register length is limited to 32 bytes and not 256 bytes.
Signed-off-by: Elad Raz <eladr@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/reg.h
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlxsw/reg.h
b/drivers/net/ethernet/mellanox/mlxsw/reg.h
index b50a312d89c126724b162b3e4c866e4e66b4aebb..0899e2d310e26269a5c3d025b7afeeb1516bf21e 100644
(file)
--- a/
drivers/net/ethernet/mellanox/mlxsw/reg.h
+++ b/
drivers/net/ethernet/mellanox/mlxsw/reg.h
@@
-3653,7
+3653,7
@@
static inline void mlxsw_reg_pspa_pack(char *payload, u8 swid, u8 local_port)
* Configures the properties for forwarding to CPU.
*/
#define MLXSW_REG_HTGT_ID 0x7002
-#define MLXSW_REG_HTGT_LEN 0x
10
0
+#define MLXSW_REG_HTGT_LEN 0x
2
0
MLXSW_REG_DEFINE(htgt, MLXSW_REG_HTGT_ID, MLXSW_REG_HTGT_LEN);