octeontx2-af: Use DMA_ATTR_FORCE_CONTIGUOUS attribute in DMA alloc
authorGeetha sowjanya <gakula@marvell.com>
Sun, 22 Aug 2021 12:02:23 +0000 (17:32 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Aug 2021 20:38:15 +0000 (21:38 +0100)
commit73d33dbc0723ac4d94e9e01fe53404b28ec6abab
tree76b661045b24797295837472038f59380342ef09
parent10df5a13ac6785b409ad749c4b10d4b220cc7e71
octeontx2-af: Use DMA_ATTR_FORCE_CONTIGUOUS attribute in DMA alloc

CN10K platform requires physically contiguous memory for LMTST
operations which goes beyond a single page. Not having physically
contiguous memory will result in HW fetching transmit descriptors from
a wrong memory location.

Hence use DMA_ATTR_FORCE_CONTIGUOUS attribute while allocating
LMTST regions.

Signed-off-by: Geetha sowjanya <gakula@marvell.com>
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/common.h