[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200323141833.GB21532@C02YVCJELVCG.greyhouse.net>
Date: Mon, 23 Mar 2020 10:18:33 -0400
From: Andy Gospodarek <andy@...yhouse.net>
To: Jesper Dangaard Brouer <brouer@...hat.com>
Cc: sameehj@...zon.com, Michael Chan <michael.chan@...adcom.com>,
Andy Gospodarek <andrew.gospodarek@...adcom.com>,
netdev@...r.kernel.org, bpf@...r.kernel.org, zorik@...zon.com,
akiyano@...zon.com, gtzalik@...zon.com,
Toke Høiland-Jørgensen <toke@...e.dk>,
Daniel Borkmann <borkmann@...earbox.net>,
Alexei Starovoitov <alexei.starovoitov@...il.com>,
John Fastabend <john.fastabend@...il.com>,
Alexander Duyck <alexander.duyck@...il.com>,
Jeff Kirsher <jeffrey.t.kirsher@...el.com>,
David Ahern <dsahern@...il.com>,
Willem de Bruijn <willemdebruijn.kernel@...il.com>,
Ilias Apalodimas <ilias.apalodimas@...aro.org>,
Lorenzo Bianconi <lorenzo@...nel.org>
Subject: Re: [PATCH RFC v1 03/15] bnxt: add XDP frame size to driver
On Tue, Mar 17, 2020 at 06:29:22PM +0100, Jesper Dangaard Brouer wrote:
> This driver uses full PAGE_SIZE pages when XDP is enabled.
Talked with Jesper about this some more on IRC and he clarified
something for me that was bugging me.
> Cc: Michael Chan <michael.chan@...adcom.com>
> Cc: Andy Gospodarek <andrew.gospodarek@...adcom.com>
I know this is only an RFC, but feel free to add:
Reviewed-by: Andy Gospodarek <gospo@...adcom.com>
to this patch. Thanks for your work on this!
> Signed-off-by: Jesper Dangaard Brouer <brouer@...hat.com>
> ---
> drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c b/drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c
> index c6f6f2033880..5e3b4a3b69ea 100644
> --- a/drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c
> +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c
> @@ -138,6 +138,7 @@ bool bnxt_rx_xdp(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, u16 cons,
> xdp_set_data_meta_invalid(&xdp);
> xdp.data_end = *data_ptr + *len;
> xdp.rxq = &rxr->xdp_rxq;
> + xdp.frame_sz = PAGE_SIZE; /* BNXT_RX_PAGE_MODE(bp) when XDP enabled */
> orig_data = xdp.data;
>
> rcu_read_lock();
>
>
Powered by blists - more mailing lists