Yonglong Liu c2d5689781 net: hns3: fix ETS bandwidth validation bug
Some device only support 4 TCs, but the driver check the total
bandwidth of 8 TCs, so may cause wrong configurations write to
the hw.

This patch uses hdev->tc_max to instead HNAE3_MAX_TC to fix it.

Fixes: e432abfb99e5 ("net: hns3: add common validation in hclge_dcb")
Signed-off-by: Yonglong Liu <liuyonglong@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-11-14 18:06:34 -08:00
..
2019-11-14 10:38:30 +01:00
2019-11-05 17:54:59 -08:00
2019-10-24 14:53:48 -07:00
2019-11-14 01:50:10 -08:00
2019-09-26 08:56:17 +02:00
2019-09-27 20:58:35 +02:00
2019-10-24 14:53:48 -07:00