From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ivan Boule Subject: [PATCH] app: fix configuration of pause frames in testpmd Date: Wed, 10 Jul 2013 09:27:47 +0200 Message-ID: <1373441267-17440-1-git-send-email-ivan.boule@6wind.com> Cc: Zijie Pan To: dev-VfR2kkLFssw@public.gmane.org Return-path: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" From: Zijie Pan 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 --- app/test-pmd/cmdline.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 28233a6..fab5313 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -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; -- 1.7.2.5