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-07-25 16:08:01 +0200
commit16b24267a8584b1bd85986403555f51fcfd48222 (patch)
tree7a80f12912b081d693b32a46fd3e5665338d51cb
parent7b5e2854da725ce91e626a7778f40580e44fd5b2 (diff)
downloaddpdk-16b24267a8584b1bd85986403555f51fcfd48222.zip
dpdk-16b24267a8584b1bd85986403555f51fcfd48222.tar.gz
dpdk-16b24267a8584b1bd85986403555f51fcfd48222.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 b7a88f6..1ef4f15 100644
--- a/app/test-pmd/cmdline.c
+++ b/app/test-pmd/cmdline.c
@@ -2559,7 +2559,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;