]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: always assume no drop TC for performance reason
authorYunsheng Lin <linyunsheng@huawei.com>
Sun, 14 Apr 2019 01:47:41 +0000 (09:47 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 14 Apr 2019 20:47:35 +0000 (13:47 -0700)
commitf20cae47004be9ffdf83b58442b2c3e90b38ca43
treebbdd421772e18298609c4cec70ab9c6fe225f80c
parent5777198e2548d55be96d414c3b66368caebcd79f
net: hns3: always assume no drop TC for performance reason

Currently RX shared buffer' threshold size for speific TC is
set to smaller value when the TC's PFC is not enabled, which may
cause performance problem because hardware may not have enough
hardware buffer when PFC is not enabled.

This patch sets the same threshold size for all TC no matter if
the specific TC's PFC is enabled.

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c