-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/hns3: fix RSS indirection table configuration
For the current hns3 PMD driver, there are some RSS related bugs at the following scenes: 1. Start the application with the number of Rx queues equals 1(--rxq=1), modify the number of Rx queue to some number greater than 1 during normal operation. As a result, upper application can't receive packets from multiple rx queues. 2. Start testpmd application with the option disable-rss and the number of Rx queue is greater than 1(--disable-rss --rxq=N, N>1). As a result, upper application still can receive packets from multiple rx queues. The root cause as below: There are some error configuration in the RSS indirection table of hns3 network engine. This patch fixes them with the following modification. 1. When RSS size is changed, we need to update RSS redirection table maintained by driver and configure them to hardware. Besides, during the entire reset process, we need to ensure that the RSS table information are not overwritten and configured directly to the hardware in the RESET_STAGE_RESTORE stage of the reset process. 2. When sarting testpmd application with the options disable-rss, it doesn't need to configure RSS redirection table to hardware. Fixes: c37ca66 ("net/hns3: support RSS") Cc: stable@dpdk.org Signed-off-by: Lijun Ou <oulijun@huawei.com> Signed-off-by: Huisong Li <lihuisong@huawei.com> Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
- Loading branch information
Showing
6 changed files
with
64 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters