summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZijie Pan <zijie.pan@6wind.com>2013-07-10 09:27:47 +0200
committerThomas Monjalon <thomas.monjalon@6wind.com>2013-09-17 14:46:08 +0200
commit44279eb11adb881d460d9ced36fed7c35c44187f (patch)
tree0dfd8c9364c74a1f153f974910b65224100464a4
parent39f8c46e74cce704763cfefb8fb9599efd3c9bb5 (diff)
downloaddpdk-44279eb11adb881d460d9ced36fed7c35c44187f.zip
dpdk-44279eb11adb881d460d9ced36fed7c35c44187f.tar.gz
dpdk-44279eb11adb881d460d9ced36fed7c35c44187f.tar.xz
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 <zijie.pan@6wind.com> Acked-by: Ivan Boule <ivan.boule@6wind.com>
-rw-r--r--app/test-pmd/cmdline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c
index 9c1bda9..930746b 100644
--- a/app/test-pmd/cmdline.c
+++ b/app/test-pmd/cmdline.c
@@ -2933,7 +2933,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;