net/hns3: fix flow control exception
authorHuisong Li <lihuisong@huawei.com>
Wed, 31 Mar 2021 10:01:39 +0000 (18:01 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 8 Apr 2021 16:57:09 +0000 (18:57 +0200)
commitf1c555219fee71fe76cc53955cd0c052c88b2848
treeee04871310876df98c39789d59e363a5b8690ff5
parent39c4fe7042acaeea7a4dff0213ed3fd453a2c255
net/hns3: fix flow control exception

In multi-TC scenarios, MAC pause is not supported. Otherwise, only
TC0 can trigger pause frames, and other TCs cannot trigger pause
frames. In this case, flow control does not meet the expectation.

Fixes: 62e3ccc2b94c ("net/hns3: support flow control")
Cc: stable@dpdk.org
Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/hns3/hns3_ethdev.c