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:Hao Lan <lanhao@huawei.com> Signed-off-by:
Guangbin Huang <huangguangbin2@huawei.com> Signed-off-by:
Jakub Kicinski <kuba@kernel.org> Stable-dep-of: fec73521 ("net: hns3: refine the handling for VF heartbeat") Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading
Please sign in to comment