> -----Original Message-----
> From: David Ahern <dsah...@gmail.com>
> Sent: Saturday, November 24, 2018 11:49 PM
> To: Ioana Ciocoi Radulescu <ruxandra.radule...@nxp.com>;
> netdev@vger.kernel.org; da...@davemloft.net
> Cc: Ioana Ciornei <ioana.cior...@nxp.com>
> Subject: Re: [PATCH net-next 1/8] dpaa2-eth: Add basic XDP support
> 
> On 11/23/18 9:56 AM, Ioana Ciocoi Radulescu wrote:
> > @@ -215,6 +255,7 @@ static void dpaa2_eth_rx(struct dpaa2_eth_priv
> *priv,
> >     struct dpaa2_fas *fas;
> >     void *buf_data;
> >     u32 status = 0;
> > +   u32 xdp_act;
> >
> >     /* Tracing point */
> >     trace_dpaa2_rx_fd(priv->net_dev, fd);
> > @@ -231,8 +272,14 @@ static void dpaa2_eth_rx(struct dpaa2_eth_priv
> *priv,
> >     percpu_extras = this_cpu_ptr(priv->percpu_extras);
> >
> >     if (fd_format == dpaa2_fd_single) {
> > +           xdp_act = run_xdp(priv, ch, (struct dpaa2_fd *)fd, vaddr);
> > +           if (xdp_act != XDP_PASS)
> > +                   return;
> 
> please bump the rx counters (packets and bytes) regardless of what XDP
> outcome is.
> 
> Same for Tx; packets and bytes counter should be bumped for packets
> redirected by XDP.

Thanks for the feedback, I wasn't sure whether I should count them
as regular packets or not. I'll make the change in v2.

Ioana

Reply via email to