From: Jingjing Wu Date: Tue, 11 Apr 2017 07:35:49 +0000 (+0800) Subject: net/i40e: fix default PFC setting X-Git-Tag: spdx-start~3605 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=1d43099033ecc515c3be18a715b19540aeaeb2c2;p=dpdk.git net/i40e: fix default PFC setting To keep consistent with previous release, Priority Flow Control (PFC) need to be disabled by default. This patch fixes it. This also fixes an issue where traffic was not forwarded by testpmd occasionally. In those cases ~4770 pps seen on one of the ports rather than the full rate (>20mpps). Fixes: 6f0a707e5b55 ("net/i40e: enable DCB on SRIOV VFs") Signed-off-by: Jingjing Wu Tested-by: David Hunt --- diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 6cec8bb35a..50e037e724 100644 --- a/drivers/net/i40e/i40e_ethdev.c +++ b/drivers/net/i40e/i40e_ethdev.c @@ -10303,8 +10303,6 @@ i40e_dcb_init_configure(struct rte_eth_dev *dev, bool sw_dcb) hw->local_dcbx_config.pfc.willing = 0; hw->local_dcbx_config.pfc.pfccap = I40E_MAX_TRAFFIC_CLASS; - hw->local_dcbx_config.pfc.pfcenable = - I40E_DEFAULT_TCMAP; /* FW needs one App to configure HW */ hw->local_dcbx_config.numapps = 1; hw->local_dcbx_config.app[0].selector =