From 1282943aa05b2f211bd1b831b9d2962859323063 Mon Sep 17 00:00:00 2001 From: Harish Patil Date: Wed, 8 Nov 2017 22:52:20 -0800 Subject: [PATCH] net/qede: fix default config option Restore the default configuration as in previous releases and add a debug msg. Fixes: f07aa795c92a ("net/qede: disable per-VF Tx switching feature") Cc: stable@dpdk.org Signed-off-by: Harish Patil Signed-off-by: Rasesh Mody --- config/common_base | 2 +- drivers/net/qede/qede_ethdev.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/config/common_base b/config/common_base index 34f04a9fe7..e74febef48 100644 --- a/config/common_base +++ b/config/common_base @@ -415,7 +415,7 @@ CONFIG_RTE_LIBRTE_QEDE_DEBUG_INFO=n CONFIG_RTE_LIBRTE_QEDE_DEBUG_DRIVER=n CONFIG_RTE_LIBRTE_QEDE_DEBUG_TX=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. #Empty string denotes driver will use default firmware CONFIG_RTE_LIBRTE_QEDE_FW="" diff --git a/drivers/net/qede/qede_ethdev.c b/drivers/net/qede/qede_ethdev.c index 883214515d..6f5ba2a927 100644 --- a/drivers/net/qede/qede_ethdev.c +++ b/drivers/net/qede/qede_ethdev.c @@ -457,6 +457,7 @@ int qede_activate_vport(struct rte_eth_dev *eth_dev, bool flg) if (IS_VF(edev)) { params.update_tx_switching_flg = 1; params.tx_switching_flg = !flg; + DP_INFO(edev, "VF tx-switching is disabled\n"); } #endif for_each_hwfn(edev, i) { @@ -469,8 +470,8 @@ int qede_activate_vport(struct rte_eth_dev *eth_dev, bool flg) break; } } - DP_INFO(edev, "vport %s VF tx-switch %s\n", flg ? "activated" : "deactivated", - params.tx_switching_flg ? "enabled" : "disabled"); + DP_INFO(edev, "vport is %s\n", flg ? "activated" : "deactivated"); + return rc; }