All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch net-next] mlxsw: spectrum_dpipe: Fix entries dump of the adjacency table
@ 2017-10-24  8:11 Jiri Pirko
  2017-10-24 10:02 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Jiri Pirko @ 2017-10-24  8:11 UTC (permalink / raw)
  To: netdev; +Cc: davem, arkadis, idosch, mlxsw

From: Arkadi Sharshevsky <arkadis@mellanox.com>

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")
Signed-off-by: Arkadi Sharshevsky <arkadis@mellanox.com>
Reported-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
---
 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c
index 6ea6435..96fdba7 100644
--- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c
+++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c
@@ -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))
-- 
2.9.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [patch net-next] mlxsw: spectrum_dpipe: Fix entries dump of the adjacency table
  2017-10-24  8:11 [patch net-next] mlxsw: spectrum_dpipe: Fix entries dump of the adjacency table Jiri Pirko
@ 2017-10-24 10:02 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2017-10-24 10:02 UTC (permalink / raw)
  To: jiri; +Cc: netdev, arkadis, idosch, mlxsw

From: Jiri Pirko <jiri@resnulli.us>
Date: Tue, 24 Oct 2017 10:11:42 +0200

> From: Arkadi Sharshevsky <arkadis@mellanox.com>
> 
> 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")
> Signed-off-by: Arkadi Sharshevsky <arkadis@mellanox.com>
> Reported-by: David Ahern <dsahern@gmail.com>
> Signed-off-by: Jiri Pirko <jiri@mellanox.com>

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-10-24 10:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-24  8:11 [patch net-next] mlxsw: spectrum_dpipe: Fix entries dump of the adjacency table Jiri Pirko
2017-10-24 10:02 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.