staging: qlge: Initialize devlink health dump framework
authorCoiby Xu <coiby.xu@gmail.com>
Sat, 23 Jan 2021 10:46:07 +0000 (18:46 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Jan 2021 15:54:20 +0000 (16:54 +0100)
commit953b94009377419f28fd0153f91fcd5b5a347608
treeb7b514af61a99d8e970f5c9953f456d69857ba6c
parentf8c047be540197ec69cde33e00e82d23961459ea
staging: qlge: Initialize devlink health dump framework

Initialize devlink health dump framework for the qlge driver so the
coredump could be done via devlink.

struct qlge_adapter is now used as the private data structure of
struct devlink so it could exist independently of struct net_device
and devlink reload could be supported in the future. The private data
of PCIe driver now points to qlge_adapter.

Since devlink_alloc will zero out struct qlge_adapter, memset in
qlge_init_device is not necessary.

Signed-off-by: Coiby Xu <coiby.xu@gmail.com>
Link: https://lore.kernel.org/r/20210123104613.38359-3-coiby.xu@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/qlge/Kconfig
drivers/staging/qlge/Makefile
drivers/staging/qlge/qlge.h
drivers/staging/qlge/qlge_devlink.c [new file with mode: 0644]
drivers/staging/qlge/qlge_devlink.h [new file with mode: 0644]
drivers/staging/qlge/qlge_ethtool.c
drivers/staging/qlge/qlge_main.c