From: Kiran Kumar K Date: Thu, 30 Jan 2020 16:23:24 +0000 (+0530) Subject: net/octeontx2: fix Tx flow control for HIGIG X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=184a3235735a2fae78bcc019c6cd9973426da3f1;p=dpdk.git net/octeontx2: fix Tx flow control for HIGIG Tx flow controlled is disabled in the Ax silicon version due to an errata. This errata is not applicable for HIGIG Tx flow control, therefore not enabling in HIGIG case. Fixes: 602009ee2dfb ("net/octeontx2: support HIGIG2") Cc: stable@dpdk.org Signed-off-by: Kiran Kumar K Acked-by: Jerin Jacob --- diff --git a/drivers/net/octeontx2/otx2_flow_ctrl.c b/drivers/net/octeontx2/otx2_flow_ctrl.c index c6d7b1971a..1c6929e764 100644 --- a/drivers/net/octeontx2/otx2_flow_ctrl.c +++ b/drivers/net/octeontx2/otx2_flow_ctrl.c @@ -213,6 +213,7 @@ otx2_nix_update_flow_ctrl_mode(struct rte_eth_dev *eth_dev) /* To avoid Link credit deadlock on Ax, disable Tx FC if it's enabled */ if (otx2_dev_is_Ax(dev) && + (dev->npc_flow.switch_header_type != OTX2_PRIV_FLAGS_HIGIG) && (fc_conf.mode == RTE_FC_FULL || fc_conf.mode == RTE_FC_RX_PAUSE)) { fc_conf.mode = (fc_conf.mode == RTE_FC_FULL ||