diff options
author | Stefano Garzarella <[email protected]> | 2021-11-26 17:47:53 +0100 |
---|---|---|
committer | Michael S. Tsirkin <[email protected]> | 2022-01-14 18:50:52 -0500 |
commit | 539fec78edb4e084e7c532affc56cc42d4ceea4b (patch) | |
tree | 9133b2c1371f74c163528d9ec4d6bcaef25bcea5 /net/lapb/lapb_timer.c | |
parent | 9c25cdeb5f3ca9ef0d683ee8c29b7cb61a174165 (diff) |
vdpa: add driver_override support
`driver_override` allows to control which of the vDPA bus drivers
binds to a vDPA device.
If `driver_override` is not set, the previous behaviour is followed:
devices use the first vDPA bus driver loaded (unless auto binding
is disabled).
Tested on Fedora 34 with driverctl(8):
$ modprobe virtio-vdpa
$ modprobe vhost-vdpa
$ modprobe vdpa-sim-net
$ vdpa dev add mgmtdev vdpasim_net name dev1
# dev1 is attached to the first vDPA bus driver loaded
$ driverctl -b vdpa list-devices
dev1 virtio_vdpa
$ driverctl -b vdpa set-override dev1 vhost_vdpa
$ driverctl -b vdpa list-devices
dev1 vhost_vdpa [*]
Note: driverctl(8) integrates with udev so the binding is
preserved.
Suggested-by: Jason Wang <[email protected]>
Acked-by: Jason Wang <[email protected]>
Signed-off-by: Stefano Garzarella <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Michael S. Tsirkin <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions