net/hns3: refactor reset event report function
authorLijun Ou <oulijun@huawei.com>
Fri, 22 Jan 2021 10:18:45 +0000 (18:18 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 29 Jan 2021 17:16:11 +0000 (18:16 +0100)
commitd66ed07ed9026040f9783650ed884919a6285e7d
tree105930404d55e6d7382e1e372fcb8a1d147335d6
parent6f22672f3354e1349b6cfa4851b27961d954f2a7
net/hns3: refactor reset event report function

Here encapsulate the process code of the imp reset report and
global reset report into function in order to reduce the
complexity of the hns3_check_event_cause function.

Signed-off-by: Lijun Ou <oulijun@huawei.com>
drivers/net/hns3/hns3_ethdev.c