event/dlb2: optimize credit allocations using port
authorPravin Pathak <pravin.pathak@intel.com>
Thu, 14 Oct 2021 14:51:41 +0000 (14:51 +0000)
committerJerin Jacob <jerinj@marvell.com>
Thu, 21 Oct 2021 08:16:00 +0000 (10:16 +0200)
commite4869c0b4702b06b912d256c3f899562bd2b2b5b
tree6d3c82e9e11de9250bae262e78853869f20459dc
parent5f94d10897ef7b5050af24118a2f862099495f49
event/dlb2: optimize credit allocations using port

This commit implements the changes required for using suggested
port type hint feature. Each port uses different credit quanta
based on port type specified using port configuration flags.

Each port has separate quanta defined in dlb2_priv.h
Producer and consumer ports will need larger quanta value to reduce number
of credit calls they make. Workers can use small quanta as they mostly
work out of locally cached credits and don't request/return credits often.

Signed-off-by: Pravin Pathak <pravin.pathak@intel.com>
drivers/event/dlb2/dlb2.c
drivers/event/dlb2/dlb2_priv.h
drivers/event/dlb2/pf/dlb2_pf.c