diff options
author | Jesper Dangaard Brouer <brouer@redhat.com> | 2020-05-14 13:49:17 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-05-15 07:21:54 +0300 |
commit | 494f44d54e25dd79af0ed6734c2d6be0aa0b6d94 (patch) | |
tree | 1af0fc96fdf441274a429dd15c4576444a71a06b /drivers/net/ethernet/socionext | |
parent | 983e43451830742fa93f83656ccbdcb865ea4259 (diff) | |
download | linux-494f44d54e25dd79af0ed6734c2d6be0aa0b6d94.tar.xz |
mvneta: Add XDP frame size to driver
This marvell driver mvneta uses PAGE_SIZE frames, which makes it
really easy to convert. Driver updates rxq and now frame_sz
once per NAPI call.
This driver takes advantage of page_pool PP_FLAG_DMA_SYNC_DEV that
can help reduce the number of cache-lines that need to be flushed
when doing DMA sync for_device. Due to xdp_adjust_tail can grow the
area accessible to the by the CPU (can possibly write into), then max
sync length *after* bpf_prog_run_xdp() needs to be taken into account.
For XDP_TX action the driver is smart and does DMA-sync. When growing
tail this is still safe, because page_pool have DMA-mapped the entire
page size.
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Lorenzo Bianconi <lorenzo@kernel.org>
Cc: thomas.petazzoni@bootlin.com
Link: https://lore.kernel.org/bpf/158945335786.97035.12714388304493736747.stgit@firesoul
Diffstat (limited to 'drivers/net/ethernet/socionext')
0 files changed, 0 insertions, 0 deletions