event/dlb2: support CQ weight
authorTimothy McDaniel <timothy.mcdaniel@intel.com>
Thu, 16 Jun 2022 22:21:35 +0000 (17:21 -0500)
committerJerin Jacob <jerinj@marvell.com>
Mon, 20 Jun 2022 17:32:02 +0000 (19:32 +0200)
commitffa46fc4a2b591d1c25862931a9f9f0a469016a4
tree28153cf4f562e76b14c10cb8466d97bb1648e50a
parentd0ce87e41cdc9094310b05d7f00c1a350cc95673
event/dlb2: support CQ weight

Enabling the weight limit on a CQ allows the enqueued QEs' 2-bit weight
value (representing weights of 1, 2, 4, and 8) to factor into whether a
CQ is full. If the sum of the weights of the QEs in the CQ meet or exceed
its weight limit, DLB will stop scheduling QEs to it (until software pops
enough QEs from the CQ to reverse that).

CQ weight support is enabled via the command line, and applies to
DLB 2.5 (and above) load balanced ports. The DLB2 documentation will
be updated with further details.

Signed-off-by: Timothy McDaniel <timothy.mcdaniel@intel.com>
drivers/event/dlb2/dlb2.c
drivers/event/dlb2/dlb2_avx512.c
drivers/event/dlb2/dlb2_iface.c
drivers/event/dlb2/dlb2_iface.h
drivers/event/dlb2/dlb2_priv.h
drivers/event/dlb2/dlb2_sse.c
drivers/event/dlb2/dlb2_user.h
drivers/event/dlb2/pf/base/dlb2_resource.c
drivers/event/dlb2/pf/base/dlb2_resource.h
drivers/event/dlb2/pf/dlb2_pf.c