OpenCloudOS-Kernel/drivers/net/ethernet/hisilicon/hns3
Yunsheng Lin e432abfb99 net: hns3: add common validation in hclge_dcb
Before setting tm related configuration to hardware, driver
needs to check the configuration provided by user is valid.
Currently hclge_ieee_setets and hclge_setup_tc both implement
their own checking, which has a lot in common.

This patch addes hclge_dcb_common_validate to do the common
checking. The checking in hclge_tm_prio_tc_info_update
and hclge_tm_schd_info_update is unnecessary now, so change
the return type to void, which removes the need to do error
handling when one of the checking fails.

Also, ets->prio_tc is indexed by user prio and ets->tc_tsa is
indexed by tc num, so this patch changes them to use different
index.

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Tan Xiaojun <tanxiaojun@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-11-19 18:32:11 -08:00
..
hns3pf net: hns3: add common validation in hclge_dcb 2018-11-19 18:32:11 -08:00
hns3vf net: hns3: Add mtu setting support for vf 2018-11-17 21:57:29 -08:00
Makefile net: hns3: Unified HNS3 {VF|PF} Ethernet Driver for hip08 SoC 2017-12-15 10:55:34 -05:00
hclge_mbx.h net: hns3: Add mtu setting support for vf 2018-11-17 21:57:29 -08:00
hnae3.c net: hns3: Fix client initialize state issue when roce client initialize failed 2018-09-19 21:20:22 -07:00
hnae3.h net: hns3: Add vport alive state checking support 2018-11-17 21:57:29 -08:00
hns3_dcbnl.c net: hns3: use HNS3_NIC_STATE_RESETTING to indicate resetting 2018-11-07 11:42:17 -08:00
hns3_enet.c net: hns3: up/down netdev in hclge module when setting mtu 2018-11-17 21:57:29 -08:00
hns3_enet.h net: hns3: Refactor mac mtu setting related functions 2018-11-17 21:57:29 -08:00
hns3_ethtool.c net: hns3: use HNS3_NIC_STATE_RESETTING to indicate resetting 2018-11-07 11:42:17 -08:00