From: Zijie Pan Date: Wed, 10 Jul 2013 07:27:47 +0000 (+0200) Subject: app/testpmd: fix configuration of pause frames X-Git-Tag: spdx-start~10923 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=926fe27039bbef3a72e95a96d1948299a5a781e8;p=dpdk.git app/testpmd: fix configuration of pause frames The entries for the configuration of the reception and of the transmission of pause frames are inverted in the mode conversion array. Signed-off-by: Zijie Pan Acked-by: Ivan Boule --- diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 8c47c01f0b..37aa3d2ce0 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -3459,7 +3459,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;