All of lore.kernel.org
 help / color / mirror / Atom feed
From: Saeed Mahameed <saeed@kernel.org>
To: Camelia Groza <camelia.groza@nxp.com>,
	kuba@kernel.org, brouer@redhat.com, davem@davemloft.net
Cc: madalin.bucur@oss.nxp.com, ioana.ciornei@nxp.com, netdev@vger.kernel.org
Subject: Re: [PATCH net-next 2/7] dpaa_eth: add basic XDP support
Date: Thu, 12 Nov 2020 12:42:43 -0800	[thread overview]
Message-ID: <8a8e5afd2502a57c9a86f64b30066a467afb3c2f.camel@kernel.org> (raw)
In-Reply-To: <7389fa62d9e311236f2e39c5d5d153cabc59949d.1605181416.git.camelia.groza@nxp.com>

On Thu, 2020-11-12 at 20:10 +0200, Camelia Groza wrote:
> +       if (likely(fd_format == qm_fd_contig)) {
> 
> +               xdp_act = dpaa_run_xdp(priv, (struct qm_fd *)fd,
> vaddr,
> 
> +                                      &xdp_meta_len);
> 
> +               if (xdp_act != XDP_PASS) {
> 
> +                       percpu_stats->rx_packets++;
> 
> +                       percpu_stats->rx_bytes +=
> qm_fd_get_length(fd);
> 
> +                       return qman_cb_dqrr_consume;
> 
> +               }
> 
>                 skb = contig_fd_to_skb(priv, fd);
> 
> -       else
> 
> +       } else {
> 
> +               WARN_ONCE(priv->xdp_prog, "S/G frames not supported
> under XDP\n");
> 

Why do you even allow xdp_setup() if S/G is configured ?
just block this on xdp_setup() or on S/G setup on device open()

>                 skb = sg_fd_to_skb(priv, fd);
> 
> +       }


  parent reply	other threads:[~2020-11-12 20:42 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-12 18:10 [PATCH net-next 0/7] dpaa_eth: add XDP support Camelia Groza
2020-11-12 18:10 ` [PATCH net-next 1/7] dpaa_eth: add struct for software backpointers Camelia Groza
2020-11-12 18:10 ` [PATCH net-next 2/7] dpaa_eth: add basic XDP support Camelia Groza
2020-11-12 20:40   ` Saeed Mahameed
2020-11-13 13:30     ` Camelia Alexandra Groza
2020-11-12 20:42   ` Saeed Mahameed [this message]
2020-11-13 13:35     ` Camelia Alexandra Groza
2020-11-12 18:10 ` [PATCH net-next 3/7] dpaa_eth: limit the possible MTU range when XDP is enabled Camelia Groza
2020-11-12 18:10 ` [PATCH net-next 4/7] dpaa_eth: add XDP_TX support Camelia Groza
2020-11-12 20:55   ` Saeed Mahameed
2020-11-13 14:01     ` Camelia Alexandra Groza
2020-11-12 18:10 ` [PATCH net-next 5/7] dpaa_eth: add XDP_REDIRECT support Camelia Groza
2020-11-12 18:10 ` [PATCH net-next 6/7] dpaa_eth: rename current skb A050385 erratum workaround Camelia Groza
2020-11-12 18:10 ` [PATCH net-next 7/7] dpaa_eth: implement the A050385 erratum workaround for XDP Camelia Groza

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8a8e5afd2502a57c9a86f64b30066a467afb3c2f.camel@kernel.org \
    --to=saeed@kernel.org \
    --cc=brouer@redhat.com \
    --cc=camelia.groza@nxp.com \
    --cc=davem@davemloft.net \
    --cc=ioana.ciornei@nxp.com \
    --cc=kuba@kernel.org \
    --cc=madalin.bucur@oss.nxp.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.