]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: Fix for mac pause not disable in pfc mode
authorYunsheng Lin <linyunsheng@huawei.com>
Fri, 6 Jul 2018 10:27:56 +0000 (11:27 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Jul 2018 02:13:06 +0000 (11:13 +0900)
commit9a1ff9ac21eff521f51723acf49d7827a47e8b30
treef443a61934459736b34076de5fddb913fbdab12c
parent48b0b1b1893f4e4399548908ddd14c54519fb983
net: hns3: Fix for mac pause not disable in pfc mode

When pfc pause mode is enable, the mac pause mode need to be
disabled, otherwise the pfc pause packet will not be sent when
congestion happens.

This patch fixes by disabling the mac pause when pfc pause is
enabled.

Fixes: c701070a20f5 ("net: hns3: Add support of TX Scheduler & Shaper to HNS3 driver")
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c