Skip to contentSkip to conversation

mlxsw: spectrum_dpipe: Fix entries dump of the adjacency table

PATCH Applied Jiri Pirko 2 participants 2 messages Oct 24, 2017

Subsystems (3)
lore
Share & tools
lore

Jiri Pirko

author
#0 lore raw

PATCH 1/1 mlxsw: spectrum_dpipe: Fix entries dump of the adjacency table

From: Arkadi Sharshevsky <[email protected]>

During the dump the per netlink packet entry counter should be zeroed out when new packet is created.

Fixes 190d38a52a73 ("mlxsw: spectrum_dpipe: Add support for adjacency table dump")
---
 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c +1 -0
index 6ea6435..96fdba7 100644
@@ -1093,6 +1093,7 @@ mlxsw_sp_dpipe_table_adj_entries_get(struct mlxsw_sp *mlxsw_sp,
 		goto err_ctx_prepare;
 	j = 0;
 	nh_skip = nh_count;
+	nh_count = 0;
 	mlxsw_sp_nexthop_for_each(nh, mlxsw_sp->router) {
 		if (!mlxsw_sp_nexthop_offload(nh) ||
 		    mlxsw_sp_nexthop_group_has_ipip(nh))
Signature · 1 line
2.9.5
maintainer Applied
#1 lore raw

From: Jiri Pirko <[email protected]>
Date: Tue, 24 Oct 2017 10:11:42 +0200

Quoted 9 lines

From: Arkadi Sharshevsky <[email protected]>

During the dump the per netlink packet entry counter should be zeroed out when new packet is created.

Fixes 190d38a52a73 ("mlxsw: spectrum_dpipe: Add support for adjacency table dump")

Applied.