net/bonding: fix dead loop on RSS RETA update
authorZhiguang He <hezhiguang3@huawei.com>
Sun, 2 Aug 2020 12:27:27 +0000 (20:27 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 5 Aug 2020 15:51:49 +0000 (17:51 +0200)
commiteb8939538fddced05b906c34ba9f545bf6717ad2
tree8a0c1abd3701497d65940e4234c1aa1700bcb337
parentb5f615612ae68cbc4b64fb12d6efb4e545fcd0eb
net/bonding: fix dead loop on RSS RETA update

When parameter reta_size < RTE_RETA_GROUP_SIZE, reta_count will be 0.
Then this function will be deadloop.

Fixes: 734ce47f71e0 ("bonding: support RSS dynamic configuration")
Cc: stable@dpdk.org
Signed-off-by: Zhiguang He <hezhiguang3@huawei.com>
Acked-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
drivers/net/bonding/rte_eth_bond_pmd.c