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 unchecked Rx free threshold
[ upstream commit c1f0cd3a4c834c2e550370b6d31b6bcd456a15f9 ] To reduce the frequency of updating the head pointer of Rx queue, driver just updates this pointer when the number of processed descriptors is greater than the Rx free threshold. If the Rx free threshold is set to a value greater than or equal to the number of descriptors in Rx queue, the driver does not update this pointer. As a result, the hardware cannot receive more packets. This patch fix it by adding Rx free threshold check. Fixes: bba6366 ("net/hns3: support Rx/Tx and related operations") Signed-off-by: Dengdui Huang <huangdengdui@huawei.com>
- Loading branch information