[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8a8e5afd2502a57c9a86f64b30066a467afb3c2f.camel@kernel.org>
Date: Thu, 12 Nov 2020 12:42:43 -0800
From: Saeed Mahameed <saeed@...nel.org>
To: Camelia Groza <camelia.groza@....com>, kuba@...nel.org,
brouer@...hat.com, davem@...emloft.net
Cc: madalin.bucur@....nxp.com, ioana.ciornei@....com,
netdev@...r.kernel.org
Subject: Re: [PATCH net-next 2/7] dpaa_eth: add basic XDP support
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);
>
> + }
Powered by blists - more mailing lists