]> git.droids-corp.org - dpdk.git/commitdiff
event/cnxk: initialize work slot read cache
authorVolodymyr Fialko <vfialko@marvell.com>
Mon, 20 Jun 2022 11:26:16 +0000 (13:26 +0200)
committerJerin Jacob <jerinj@marvell.com>
Mon, 20 Jun 2022 19:00:40 +0000 (21:00 +0200)
Initialize gw_rdata with tag type EMPTY. Leaving tag type as
zero(ATOMIC) may cause some unnecessary head wait, if cache will be used
before the first update in dequeue/get_work functions.

Signed-off-by: Volodymyr Fialko <vfialko@marvell.com>
drivers/event/cnxk/cn10k_eventdev.c

index 2f15ff869211e5b89268ee72c45ed1778873aaf9..d28eeb3f2f71ddbcddc0de6374ceaec44121d149 100644 (file)
@@ -56,6 +56,7 @@ cn10k_sso_init_hws_mem(void *arg, uint8_t port_id)
        ws->hws_id = port_id;
        ws->swtag_req = 0;
        ws->gw_wdata = cn10k_sso_gw_mode_wdata(dev);
+       ws->gw_rdata = SSO_TT_EMPTY << 32;
        ws->lmt_base = dev->sso.lmt_base;
 
        return ws;