projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e2206d
)
mlxsw: core: Do not use EMADs in mlxsw_emad_fini
author
Jiri Pirko
<jiri@mellanox.com>
Thu, 15 Oct 2015 15:43:21 +0000
(17:43 +0200)
committer
David S. Miller
<davem@davemloft.net>
Fri, 16 Oct 2015 06:27:51 +0000
(23:27 -0700)
Be symmetric with mlxsw_emad_init and don't use EMADs in mlxsw_emad_fini
cleanup function. Use command interface instead.
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/core.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlxsw/core.c
b/drivers/net/ethernet/mellanox/mlxsw/core.c
index dbcaf5df8967e828f85648de4edce281860f2a61..7bf51d11ffc0c1088a4b7ae19d849cd1126a892d 100644
(file)
--- a/
drivers/net/ethernet/mellanox/mlxsw/core.c
+++ b/
drivers/net/ethernet/mellanox/mlxsw/core.c
@@
-551,6
+551,7
@@
static void mlxsw_emad_fini(struct mlxsw_core *mlxsw_core)
{
char hpkt_pl[MLXSW_REG_HPKT_LEN];
+ mlxsw_core->emad.use_emad = false;
mlxsw_reg_hpkt_pack(hpkt_pl, MLXSW_REG_HPKT_ACTION_DISCARD,
MLXSW_REG_HTGT_TRAP_GROUP_EMAD,
MLXSW_TRAP_ID_ETHEMAD);