net/hinic: fix setting promiscuous mode
authorXiaoyun Wang <cloud.wangxiaoyun@huawei.com>
Sat, 27 Jun 2020 03:55:46 +0000 (11:55 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 7 Jul 2020 21:38:26 +0000 (23:38 +0200)
commit224cff4bbaa307c6b8e38478d9492af8463720dd
tree5f4421172f43af57acde11b524399494255a19f1
parent214164a6bf7f840c3f111430c4e7d6373195afe1
net/hinic: fix setting promiscuous mode

When setting promiscuous or allmulticast mode, increase
multi-thread resource protection, because the patch
"net/bonding: prefer allmulti to promiscuous for LACP"
adds trying to use allmulti when adding a slave, and
EVS bond driver also sets promisc with another thread,
which may lead to thread reentry and cause failure to
set promiscuous mode.

Fixes: cb7b6606ebff ("net/hinic: add RSS stats and promiscuous ops")
Cc: stable@dpdk.org
Signed-off-by: Xiaoyun Wang <cloud.wangxiaoyun@huawei.com>
drivers/net/hinic/hinic_pmd_ethdev.c
drivers/net/hinic/hinic_pmd_ethdev.h