[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e5af97b0-c17b-5360-69f7-8d1428960258@gmail.com>
Date: Thu, 24 Aug 2017 12:26:35 -0700
From: David Ahern <dsahern@...il.com>
To: Jiri Pirko <jiri@...nulli.us>, netdev@...r.kernel.org
Cc: davem@...emloft.net, arkadis@...lanox.com, idosch@...lanox.com,
mlxsw@...lanox.com
Subject: Re: [patch net-next 11/12] mlxsw: spectrum_dpipe: Add support for
IPv4 host table dump
On 8/23/17 11:40 PM, Jiri Pirko wrote:
> +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?
Powered by blists - more mailing lists