RE: [PATCH net-next 2/7] dpaa_eth: add basic XDP support

2020-11-13 Thread Camelia Alexandra Groza
> -Original Message- > From: Saeed Mahameed > Sent: Thursday, November 12, 2020 22:43 > To: Camelia Alexandra Groza ; k...@kernel.org; > bro...@redhat.com; da...@davemloft.net > Cc: Madalin Bucur (OSS) ; Ioana Ciornei > ; netdev@vger.kernel.org > Subject: Re: [PATC

RE: [PATCH net-next 2/7] dpaa_eth: add basic XDP support

2020-11-13 Thread Camelia Alexandra Groza
> -Original Message- > From: Saeed Mahameed > Sent: Thursday, November 12, 2020 22:41 > To: Camelia Alexandra Groza ; k...@kernel.org; > bro...@redhat.com; da...@davemloft.net > Cc: Madalin Bucur (OSS) ; Ioana Ciornei > ; netdev@vger.kernel.org > Subject: Re: [PATC

Re: [PATCH net-next 2/7] dpaa_eth: add basic XDP support

2020-11-12 Thread Saeed Mahameed
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) { > >

Re: [PATCH net-next 2/7] dpaa_eth: add basic XDP support

2020-11-12 Thread Saeed Mahameed
On Thu, 2020-11-12 at 20:10 +0200, Camelia Groza wrote: > Implement the XDP_DROP and XDP_PASS actions. > > Avoid draining and reconfiguring the buffer pool at each XDP > setup/teardown by increasing the frame headroom and reserving > XDP_PACKET_HEADROOM bytes from the start. Since we always reserv

[PATCH net-next 2/7] dpaa_eth: add basic XDP support

2020-11-12 Thread Camelia Groza
Implement the XDP_DROP and XDP_PASS actions. Avoid draining and reconfiguring the buffer pool at each XDP setup/teardown by increasing the frame headroom and reserving XDP_PACKET_HEADROOM bytes from the start. Since we always reserve an entire page per buffer, this change only impacts Jumbo frame