• Shinas Rasheed's avatar
    octeon_ep: fix tx dma unmap len values in SG · 350db8a5
    Shinas Rasheed authored
    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: 37d79d05 ("octeon_ep: add Tx/Rx processing and interrupt support")
    Signed-off-by: default avatarShinas Rasheed <srasheed@marvell.com>
    Reviewed-by: default avatarSimon Horman <horms@kernel.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    350db8a5
octep_tx.h 7.07 KB