net: hns3: reconstruct function hclge_ets_validate()
authorGuangbin Huang <huangguangbin2@huawei.com>
Mon, 30 Aug 2021 06:06:38 +0000 (14:06 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Aug 2021 08:43:18 +0000 (09:43 +0100)
commit161ad669e6c23529415bffed5cb3bfa012e46cb4
tree8dba59ce041e67d93bcd24edf79d6f9b6a55cd92
parent4c8dab1c709c5a715bce14efdb8f4e889d86aa04
net: hns3: reconstruct function hclge_ets_validate()

This patch reconstructs function hclge_ets_validate() to reduce the code
cycle complexity and make code more concise.

Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c