]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: Add support for port shaper setting in TM module
authorYunsheng Lin <linyunsheng@huawei.com>
Wed, 27 Sep 2017 01:45:26 +0000 (09:45 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Sep 2017 17:35:11 +0000 (10:35 -0700)
commit95c1899dbb43e79afaee1db7a90c54b0da7143c9
treea967a80a6bcff72cbe8759b0d56901b7ac60a1ea
parent4650b5d3214afd08713b20ac60216d0685808ab5
net: hns3: Add support for port shaper setting in TM module

This patch add a tm_port_shaper cmd and set port shaper
to HCLGE_ETHER_MAX_RATE on TM initialization process.

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.h