Skip to contentSkip to conversation

app: fix configuration of pause frames in testpmd

PATCH Applied Ivan Boule 2 participants 2 messages Jul 10, 2013 1 message not in the archive

lore
Share & tools
lore

Ivan Boule

author
#0 lore raw

PATCH 1/1 app: fix configuration of pause frames in testpmd

From: Zijie Pan <[email protected]>

The entries for the configuration of the reception and of the transmission of pause frames are inverted in the mode conversion array.

---
 app/test-pmd/cmdline.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
app/test-pmd/cmdline.c +1 -1
index 28233a6..fab5313 100644
@@ -1405,7 +1405,7 @@ cmd_link_flow_ctrl_set_parsed(void *parsed_result,
 	 * the RTE_FC_RX_PAUSE, Respond to the pause frame at the Tx side.
 	 */
 	static enum rte_eth_fc_mode rx_tx_onoff_2_lfc_mode[2][2] = {
-			{RTE_FC_NONE, RTE_FC_RX_PAUSE}, {RTE_FC_TX_PAUSE, RTE_FC_FULL}
+			{RTE_FC_NONE, RTE_FC_TX_PAUSE}, {RTE_FC_RX_PAUSE, RTE_FC_FULL}
 	};
 
 	rx_fc_enable = (!strcmp(res->rx_lfc_mode, "on")) ? 1 : 0;
Signature · 1 line
1.7.2.5