On 26 Aug 2019, at 19:25, Kevin Laatz wrote: > This patch adds buffer recycling support for unaligned buffers. Since we > don't mask the addr to 2k at umem_reg in unaligned mode, we need to make > sure we give back the correct (original) addr to the fill queue. We achieve > this using the new descriptor format and associated masks. The new format > uses the upper 16-bits for the offset and the lower 48-bits for the addr. > Since we have a field for the offset, we no longer need to modify the > actual address. As such, all we have to do to get back the original address > is mask for the lower 48 bits (i.e. strip the offset and we get the address > on it's own). > > Signed-off-by: Kevin Laatz <kevin.la...@intel.com> > Signed-off-by: Bruce Richardson <bruce.richard...@intel.com> Acked-by: Jonathan Lemon <jonathan.le...@gmail.com>
- [PATCH bpf-next v5 04/11] i40e: modify driver for handling ... Kevin Laatz
- [PATCH bpf-next v5 09/11] samples/bpf: add buffer recycling... Kevin Laatz
- [PATCH bpf-next v5 11/11] doc/af_xdp: include unaligned chu... Kevin Laatz
- [PATCH bpf-next v5 05/11] ixgbe: modify driver for handling... Kevin Laatz
- [PATCH bpf-next v5 10/11] samples/bpf: use hugepages in xdp... Kevin Laatz
- [PATCH bpf-next v5 08/11] samples/bpf: add unaligned chunks... Kevin Laatz
- [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
- Re: [PATCH bpf-next v6 10/12] samples/bpf: add buf... Jonathan Lemon
- [PATCH bpf-next v6 09/12] samples/bpf: add unaligned c... Kevin Laatz
- Re: [PATCH bpf-next v6 09/12] samples/bpf: add una... Jonathan Lemon
- [PATCH bpf-next v6 12/12] doc/af_xdp: include unaligne... Kevin Laatz
- Re: [PATCH bpf-next v6 12/12] doc/af_xdp: include ... Jonathan Lemon
- [PATCH bpf-next v6 11/12] samples/bpf: use hugepages i... Kevin Laatz
- Re: [PATCH bpf-next v6 11/12] samples/bpf: use hug... Jonathan Lemon
- [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