[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200701.124759.594794808175916495.davem@davemloft.net>
Date: Wed, 01 Jul 2020 12:47:59 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: sven.auhagen@...eatech.de
Cc: netdev@...r.kernel.org, mcroce@...ux.microsoft.com,
lorenzo@...nel.org, brouer@...hat.com, stefanc@...vell.com,
mw@...ihalf.com, maxime.chevallier@...tlin.com,
antoine.tenart@...tlin.com, thomas.petazzoni@...tlin.com
Subject: Re: [PATCH 1/1] mvpp2: xdp ethtool stats
From: Sven Auhagen <sven.auhagen@...eatech.de>
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.
> @@ -3166,6 +3271,7 @@
> struct xdp_frame **frames, u32 flags)
> {
> struct mvpp2_port *port = netdev_priv(dev);
> + struct mvpp2_pcpu_stats *stats = this_cpu_ptr(port->stats);
> int i, nxmit_byte = 0, nxmit = num_frame;
> u32 ret;
> u16 txq_id;
Likewise.
> @@ -3258,11 +3374,10 @@
> enum dma_data_direction dma_dir;
> struct bpf_prog *xdp_prog;
> struct xdp_buff xdp;
> + struct mvpp2_pcpu_stats ps = {};
> int rx_received;
> int rx_done = 0;
> u32 xdp_ret = 0;
> - u32 rcvd_pkts = 0;
> - u32 rcvd_bytes = 0;
Likewise.
Powered by blists - more mailing lists