Re: [PATCH 1/1] mvpp2: xdp ethtool stats

2020-07-02 Thread Matteo Croce
Hi all, Sven agreed to add the v2 of this patch to the series it depends on, please drop this one. I'm sending a v2 of the series soon. Thanks, On Wed, Jul 1, 2020 at 9:48 PM David Miller wrote: > > From: Sven Auhagen > Date: Wed, 1 Jul 2020 17:30:44 +0200 > > > static void mvpp2_read_stats(s

Re: [PATCH 1/1] mvpp2: xdp ethtool stats

2020-07-01 Thread David Miller
From: Sven Auhagen Date: Wed, 1 Jul 2020 17:30:44 +0200 > static void mvpp2_read_stats(struct mvpp2_port *port) > { > u64 *pstats; > + const struct mvpp2_ethtool_counter *s; > + struct mvpp2_pcpu_stats xdp_stats = {}; > int i, q; Reverse christmas tree ordering here, please

[PATCH 1/1] mvpp2: xdp ethtool stats

2020-07-01 Thread Sven Auhagen
Add ethtool statistics for XDP. This patch is a follow up for the mvpp2 XDP patch upstreamed yesterday. Signed-off-by: Sven Auhagen --- drivers/net/ethernet/marvell/mvpp2/mvpp2.h| 8 + .../net/ethernet/marvell/mvpp2/mvpp2_main.c | 148 +++--- 2 files changed, 138 insertions(+