Thread (3 messages) flat view 3 messages, 3 authors, 2020-07-02

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

From: Matteo Croce <hidden>
Date: 2020-07-02 13:53:30

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 [off-list ref] wrote:
From: Sven Auhagen <redacted>
Date: Wed, 1 Jul 2020 17:30:44 +0200
quoted
 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.
quoted
@@ -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.
quoted
@@ -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.

-- 
per aspera ad upstream
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help