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

2017-08-29 Thread Jiri Pirko
Tue, Aug 29, 2017 at 04:57:12AM CEST, dsah...@gmail.com wrote: >On 8/27/17 2:31 AM, Arkadi Sharshevsky wrote: >>> Also, this dpipe capability seems to be just dumping data structures >>> maintained by the driver. ie., you can compare the mlxsw view of >>> networking state to IPv4 and IPv6 level tab

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

2017-08-28 Thread David Ahern
On 8/27/17 2:31 AM, Arkadi Sharshevsky wrote: >> Also, this dpipe capability seems to be just dumping data structures >> maintained by the driver. ie., you can compare the mlxsw view of >> networking state to IPv4 and IPv6 level tables. Any plans to offer a >> command that reads data from the h/w a

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

2017-08-27 Thread Arkadi Sharshevsky
On 08/25/2017 10:51 PM, David Ahern wrote: > On 8/25/17 2:26 AM, Arkadi Sharshevsky wrote: >> >> >> On 08/24/2017 10:26 PM, David Ahern wrote: >>> On 8/23/17 11:40 PM, Jiri Pirko wrote: +static int +mlxsw_sp_dpipe_table_host_entries_get(struct mlxsw_sp *mlxsw_sp, +

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

2017-08-25 Thread David Ahern
On 8/25/17 2:26 AM, Arkadi Sharshevsky wrote: > > > On 08/24/2017 10:26 PM, David Ahern wrote: >> 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, >

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

2017-08-25 Thread Arkadi Sharshevsky
On 08/24/2017 10:26 PM, David Ahern wrote: > 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_enab

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

2017-08-24 Thread David Ahern
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

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

2017-08-23 Thread Jiri Pirko
From: Arkadi Sharshevsky Add support for IPv4 host table dump. Signed-off-by: Arkadi Sharshevsky Signed-off-by: Jiri Pirko --- .../net/ethernet/mellanox/mlxsw/spectrum_dpipe.c | 247 + 1 file changed, 247 insertions(+) diff --git a/drivers/net/ethernet/mellanox/mlxsw/sp