net/dpaa2: allocate SGT from first segment
authorHemant Agrawal <hemant.agrawal@nxp.com>
Wed, 24 Feb 2021 12:42:53 +0000 (18:12 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 24 Feb 2021 17:03:30 +0000 (18:03 +0100)
commitcc8569f03ff92984a62df89e446d396c297d394f
tree1ba985f2e11716dccdc176164aaf92dadea23d6e
parent89b9bb08dd7f742a7ba20d1812b4fe1b4ddf5008
net/dpaa2: allocate SGT from first segment

This patch enables support to use the first segment
headroom to build the HW required Scatter Gather
Table. (if space is available).
This will avoid 1 less buffer for SG buffer creation.

Signed-off-by: Sachin Saxena <sachin.saxena@oss.nxp.com>
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
drivers/bus/fslmc/portal/dpaa2_hw_pvt.h
drivers/net/dpaa2/dpaa2_rxtx.c