linux/drivers/vdpa/mlx5/net
Eli Cohen f0417e72ad vdpa/mlx5: Add and remove debugfs in setup/teardown driver
The right place to add the debugfs create is in
setup_driver() and remove it in teardown_driver().

Current code adds the debugfs when creating the device but resetting a
device will remove the debugfs subtree and subsequent set_driver will
not be able to create the files since the debugfs pointer is NULL.

Fixes: 2942210043 ("vdpa/mlx5: Add debugfs subtree")
Signed-off-by: Eli Cohen <elic@nvidia.com>

v3 -> v4:
Fix error flow in setup_driver()
Message-Id: <20230403114039.11102-1-elic@nvidia.com>

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
2023-04-04 11:08:30 -04:00
..
debug.c vdpa/mlx5: Add RX counters to debugfs 2023-02-20 19:26:54 -05:00
mlx5_vnet.c vdpa/mlx5: Add and remove debugfs in setup/teardown driver 2023-04-04 11:08:30 -04:00
mlx5_vnet.h vdpa/mlx5: Add RX counters to debugfs 2023-02-20 19:26:54 -05:00