From: Viacheslav Ovsiienko Date: Thu, 21 Jan 2021 12:46:33 +0000 (+0000) Subject: app/testpmd: fix queue reconfig request on Rx split update X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=293ca0aaafaaed4b0ff96f5fec30fbd54f8e9cb3;p=dpdk.git app/testpmd: fix queue reconfig request on Rx split update There is the "set rxpkts" command in the testpmd interactive mode, it configures the segment sizes to split the packet on receiving. The mentioned segment sizes are provided on the Rx queue setup as part of queue configuration. Hence, to take the rxpkts command into effect the Rx queues must be explicitly reconfigured. The explained above is related to the "set rxoffs" as well. The patch sets the queue reconfiguration request flag for all devices once Rx split settings are updated, to take the changes into effect the port(s) should be restarted. Fixes: 0f2096d7ab36 ("app/testpmd: add rxpkts commands and parameters") Fixes: 91c78e090eed ("app/testpmd: add rxoffs commands and parameters") Cc: stable@dpdk.org Signed-off-by: Viacheslav Ovsiienko Reviewed-by: Ferruh Yigit --- diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 789f35f099..59722d268b 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -3791,6 +3791,7 @@ cmd_set_rxoffs_parsed(void *parsed_result, MAX_SEGS_BUFFER_SPLIT, seg_offsets, 0); if (nb_segs > 0) set_rx_pkt_offsets(seg_offsets, nb_segs); + cmd_reconfig_device_queue(RTE_PORT_ALL, 0, 1); } cmdline_parse_token_string_t cmd_set_rxoffs_keyword = @@ -3837,6 +3838,7 @@ cmd_set_rxpkts_parsed(void *parsed_result, MAX_SEGS_BUFFER_SPLIT, seg_lengths, 0); if (nb_segs > 0) set_rx_pkt_segments(seg_lengths, nb_segs); + cmd_reconfig_device_queue(RTE_PORT_ALL, 0, 1); } cmdline_parse_token_string_t cmd_set_rxpkts_keyword =