Commit 66c4484a authored by Hao Lan's avatar Hao Lan Committed by Greg Kroah-Hartman
Browse files

net: hns3: refactor function hclge_mbx_handler()



[ Upstream commit 09431ed8 ]

Currently, the function hclge_mbx_handler() has too many switch-case
statements, it makes this function too long. To improve code readability,
refactor this function and use lookup table instead.

Signed-off-by: default avatarHao Lan <lanhao@huawei.com>
Signed-off-by: default avatarGuangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Stable-dep-of: fec73521 ("net: hns3: refine the handling for VF heartbeat")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 5df57bb0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment