Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/bonding: fix dedicated queue mode in vector burst
[ upstream commit b8cfca2 ] If the vector burst mode is selected, the dedicated queue mode will not take effect on some PMDs because these PMDs may have some limitations in vector burst mode. For example, the limit on burst size. Currently, both hns3 and intel I40E require four alignments when receiving packets in vector mode. As a result, they can't accept packets if burst size below four. However, in dedicated queue mode, the burst size of periodic packets processing is one. This patch fixes the above problem by modifying the burst size to 32. This approach also makes the packet processing of the dedicated queue mode more reasonable. Currently, if multiple LACP protocol packets are received in the hardware queue in a cycle, only one LACP packet will be processed in this cycle, and the left packets will be processed in the following cycle. After the modification, all the LACP packets will be processed at one time, which seems more reasonable and closer to the behavior of the bonding driver when the dedicated queue is not turned on. Fixes: 112891c ("net/bonding: add dedicated HW queues for LACP control") Signed-off-by: Chengchang Tang <tangchengchang@huawei.com> Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
- Loading branch information