Re: [patch net-next 11/12] mlxsw: spectrum_dpipe: Add support for IPv4 host table dump

From
David Ahern <hidden>
Date
2017-08-24 19:26:38
Reply to
Jiri Pirko, 2017-08-24
On 8/23/17 11:40 PM, Jiri Pirko wrote:
quoted hunk ↗ jump to hunk
+static int
+mlxsw_sp_dpipe_table_host_entries_get(struct mlxsw_sp *mlxsw_sp,
+				      struct devlink_dpipe_entry *entry,
+				      bool counters_enabled,
+				      struct devlink_dpipe_dump_ctx *dump_ctx,
+				      int type)
+{
+	int rif_neigh_count = 0;
+	int rif_neigh_skip = 0;
+	int neigh_count = 0;
+	int rif_count;
+	int i, j;
+	int err;
+
+	rtnl_lock();
Why does a h/w driver dumping its tables need the rtnl lock?
Thread (21 messages) 21 messages, 4 authors, last reply 2017-08-29
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help