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.