net/octeontx2: fix flow control initial state
authorVamsi Attunuru <vattunuru@marvell.com>
Thu, 6 Feb 2020 04:27:13 +0000 (09:57 +0530)
committerJerin Jacob <jerinj@marvell.com>
Sat, 15 Feb 2020 09:23:07 +0000 (10:23 +0100)
commit29bb974576a559daa96fc7894aaa432014ed12f2
treed04a43ffb2d08258ca8ac60452061f4a4067e3ea
parent5f081dea522e0a42f2ebd391c6ce04fd16f61e84
net/octeontx2: fix flow control initial state

Currently when application requests for RTE_FC_NONE earlier
than PMD's internal fc mode update, flow control set routine
is returning without updating the flow control state.

Patch updates the PMD's internal fc mode details during
dev_configure to ensure any flow control set requests
issued later are handled properly.

Fixes: 609945f1ce90 ("net/octeontx2: support flow control")
Cc: stable@dpdk.org
Signed-off-by: Vamsi Attunuru <vattunuru@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/net/octeontx2/otx2_ethdev.c
drivers/net/octeontx2/otx2_ethdev.h
drivers/net/octeontx2/otx2_flow_ctrl.c