Thread (21 messages) 21 messages, 3 authors, 2018-03-23

Re: [bpf-next V4 PATCH 01/15] mlx5: basic XDP_REDIRECT forward support

flat view

From: Tariq Toukan <hidden>
Date: 2018-03-22 16:37:03


On 22/03/2018 4:21 PM, Jesper Dangaard Brouer wrote:
This implements basic XDP redirect support in mlx5 driver.

Notice that the ndo_xdp_xmit() is NOT implemented, because that API
need some changes that this patchset is working towards.

The main purpose of this patch is have different drivers doing
XDP_REDIRECT to show how different memory models behave in a cross
driver world.

Update(pre-RFCv2 Tariq): Need to DMA unmap page before xdp_do_redirect,
as the return API does not exist yet to to keep this mapped.

Update(pre-RFCv3 Saeed): Don't mix XDP_TX and XDP_REDIRECT flushing,
introduce xdpsq.db.redirect_flush boolian.

Signed-off-by: Jesper Dangaard Brouer <redacted>
---
  drivers/net/ethernet/mellanox/mlx5/core/en.h    |    1 +
  drivers/net/ethernet/mellanox/mlx5/core/en_rx.c |   27 ++++++++++++++++++++---
  2 files changed, 25 insertions(+), 3 deletions(-)
Reviewed-by: Tariq Toukan <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help