OSDN Git Service
(root)
/
uclinux-h8
/
linux.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
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlxsw/reg.h
b/drivers/net/ethernet/mellanox/mlxsw/reg.h
index
b50a312
..
0899e2d
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);