Re: [net PATCH v2] octeon_ep: fix tx dma unmap len values in SG

From: Simon Horman
Date: Thu Sep 14 2023 - 06:58:12 EST


On Wed, Sep 13, 2023 at 01:41:56AM -0700, Shinas Rasheed wrote:
> Lengths of SG pointers are kept in the following order in
> the SG entries in hardware.
> 63 48|47 32|31 16|15 0
> -----------------------------------------
> | Len 0 | Len 1 | Len 2 | Len 3 |
> -----------------------------------------
> | Ptr 0 |
> -----------------------------------------
> | Ptr 1 |
> -----------------------------------------
> | Ptr 2 |
> -----------------------------------------
> | Ptr 3 |
> -----------------------------------------
> Dma pointers have to be unmapped based on their
> respective lengths given in this format.
>
> Fixes: 37d79d059606 ("octeon_ep: add Tx/Rx processing and interrupt support")
> Signed-off-by: Shinas Rasheed <srasheed@xxxxxxxxxxx>

Reviewed-by: Simon Horman <horms@xxxxxxxxxx>