On 26 Aug 2019, at 19:25, Kevin Laatz wrote: > From: Maxim Mikityanskiy <maxi...@mellanox.com> > > Relax the requirements to the XSK frame size to allow it to be smaller > than a page and even not a power of two. The current implementation can > work in this mode, both with Striding RQ and without it. > > The code that checks `mtu + headroom <= XSK frame size` is modified > accordingly. Any frame size between 2048 and PAGE_SIZE is accepted. > > Functions that worked with pages only now work with XSK frames, even if > their size is different from PAGE_SIZE. > > With XSK queues, regardless of the frame size, Striding RQ uses the > stride size of PAGE_SIZE, and UMR MTTs are posted using starting > addresses of frames, but PAGE_SIZE as page size. MTU guarantees that no > packet data will overlap with other frames. UMR MTT size is made equal > to the stride size of the RQ, because UMEM frames may come in random > order, and we need to handle them one by one. PAGE_SIZE is just a power > of two that is bigger than any allowed XSK frame size, and also it > doesn't require making additional changes to the code. > > Signed-off-by: Maxim Mikityanskiy <maxi...@mellanox.com> > Reviewed-by: Saeed Mahameed <sae...@mellanox.com> Acked-by: Jonathan Lemon <jonathan.le...@gmail.com>
- [PATCH bpf-next v5 06/11] mlx5e: modify driver for handling... Kevin Laatz
- [PATCH bpf-next v5 07/11] libbpf: add flags to umem config Kevin Laatz
- [PATCH bpf-next v6 00/12] XDP unaligned chunk placement sup... Kevin Laatz
- [PATCH bpf-next v6 10/12] samples/bpf: add buffer recy... Kevin Laatz
- [PATCH bpf-next v6 09/12] samples/bpf: add unaligned c... Kevin Laatz
- [PATCH bpf-next v6 12/12] doc/af_xdp: include unaligne... Kevin Laatz
- [PATCH bpf-next v6 11/12] samples/bpf: use hugepages i... Kevin Laatz
- [PATCH bpf-next v6 05/12] ixgbe: modify driver for han... Kevin Laatz
- Re: [PATCH bpf-next v6 05/12] ixgbe: modify driver... Jonathan Lemon
- [PATCH bpf-next v6 07/12] net/mlx5e: Allow XSK frames ... Kevin Laatz
- Re: [PATCH bpf-next v6 07/12] net/mlx5e: Allow XSK... Jonathan Lemon
- [PATCH bpf-next v6 08/12] libbpf: add flags to umem co... Kevin Laatz
- Re: [PATCH bpf-next v6 08/12] libbpf: add flags to... Jonathan Lemon
- [PATCH bpf-next v6 01/12] i40e: simplify Rx buffer rec... Kevin Laatz
- Re: [PATCH bpf-next v6 01/12] i40e: simplify Rx bu... Jonathan Lemon
- [PATCH bpf-next v6 04/12] i40e: modify driver for hand... Kevin Laatz
- Re: [PATCH bpf-next v6 04/12] i40e: modify driver ... Jonathan Lemon
- [PATCH bpf-next v6 02/12] ixgbe: simplify Rx buffer re... Kevin Laatz
- Re: [PATCH bpf-next v6 02/12] ixgbe: simplify Rx b... Jonathan Lemon
- [PATCH bpf-next v6 03/12] xsk: add support to allow un... Kevin Laatz
- Re: [PATCH bpf-next v6 03/12] xsk: add support to ... Jonathan Lemon