Re: [PATCH] net: netsec: Correct dma sync for XDP_TX frames

2019-10-16 Thread Ilias Apalodimas
Hi Jakub, On Wed, Oct 16, 2019 at 05:14:01PM -0700, Jakub Kicinski wrote: > On Wed, 16 Oct 2019 14:40:32 +0300, Ilias Apalodimas wrote: > > bpf_xdp_adjust_head() can change the frame boundaries. Account for the > > potential shift properly by calculating the new offset before > > syncing the buff

Re: [PATCH] net: netsec: Correct dma sync for XDP_TX frames

2019-10-16 Thread Jakub Kicinski
On Wed, 16 Oct 2019 14:40:32 +0300, Ilias Apalodimas wrote: > bpf_xdp_adjust_head() can change the frame boundaries. Account for the > potential shift properly by calculating the new offset before > syncing the buffer to the device for XDP_TX > > Fixes: ba2b232108d3 ("net: netsec: add XDP support"

[PATCH] net: netsec: Correct dma sync for XDP_TX frames

2019-10-16 Thread Ilias Apalodimas
bpf_xdp_adjust_head() can change the frame boundaries. Account for the potential shift properly by calculating the new offset before syncing the buffer to the device for XDP_TX Fixes: ba2b232108d3 ("net: netsec: add XDP support") Signed-off-by: Ilias Apalodimas --- drivers/net/ethernet/socionext