net/qede: fix default config option

Restore the default configuration as in previous releases and
add a debug msg.

Fixes: f07aa795c9 ("net/qede: disable per-VF Tx switching feature")
Cc: stable@dpdk.org

Signed-off-by: Harish Patil <harish.patil@cavium.com>
Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
This commit is contained in:
Harish Patil 2017-11-08 22:52:20 -08:00 committed by Ferruh Yigit
parent db86fbe54d
commit 1282943aa0
2 changed files with 4 additions and 3 deletions

View File

@ -415,7 +415,7 @@ CONFIG_RTE_LIBRTE_QEDE_DEBUG_INFO=n
CONFIG_RTE_LIBRTE_QEDE_DEBUG_DRIVER=n CONFIG_RTE_LIBRTE_QEDE_DEBUG_DRIVER=n
CONFIG_RTE_LIBRTE_QEDE_DEBUG_TX=n CONFIG_RTE_LIBRTE_QEDE_DEBUG_TX=n
CONFIG_RTE_LIBRTE_QEDE_DEBUG_RX=n CONFIG_RTE_LIBRTE_QEDE_DEBUG_RX=n
CONFIG_RTE_LIBRTE_QEDE_VF_TX_SWITCH=n CONFIG_RTE_LIBRTE_QEDE_VF_TX_SWITCH=y
#Provides abs path/name of the firmware file. #Provides abs path/name of the firmware file.
#Empty string denotes driver will use default firmware #Empty string denotes driver will use default firmware
CONFIG_RTE_LIBRTE_QEDE_FW="" CONFIG_RTE_LIBRTE_QEDE_FW=""

View File

@ -457,6 +457,7 @@ int qede_activate_vport(struct rte_eth_dev *eth_dev, bool flg)
if (IS_VF(edev)) { if (IS_VF(edev)) {
params.update_tx_switching_flg = 1; params.update_tx_switching_flg = 1;
params.tx_switching_flg = !flg; params.tx_switching_flg = !flg;
DP_INFO(edev, "VF tx-switching is disabled\n");
} }
#endif #endif
for_each_hwfn(edev, i) { for_each_hwfn(edev, i) {
@ -469,8 +470,8 @@ int qede_activate_vport(struct rte_eth_dev *eth_dev, bool flg)
break; break;
} }
} }
DP_INFO(edev, "vport %s VF tx-switch %s\n", flg ? "activated" : "deactivated", DP_INFO(edev, "vport is %s\n", flg ? "activated" : "deactivated");
params.tx_switching_flg ? "enabled" : "disabled");
return rc; return rc;
} }