Skip to content

Commit 95226e0

Browse files
committed
Support Linux 6.11
To align with the virtio subsystem changes introduced in Linux kernel v6.11 API, this commit updates the virtqueue setup logic to use `struct virtqueue_info` and the new `virtio_find_vqs()` interface. The old `virtio_find_vqs()` interface has been reworked and renamed to use `struct virtqueue_info` starting from Linux 6.11, replacing the legacy helpers entirely. Since the original code uses `virtio_find_vqs()` (which internally passes `NULL` for ctx), `ctx` is conservatively set to `false`. ref: Introduce struct virtqueue_info and find_vqs_info() config op torvalds/linux@c502eb8 Rename virtio_find_vqs_info() to virtio_find_vqs torvalds/linux@6c85d6b Remove legacy virtio_find_vqs() and virtio_find_vqs_ctx() helpers torvalds/linux@3e8d51c
1 parent 181fe4c commit 95226e0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

vwifi.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#include <linux/netlink.h>
1818
#include <net/sock.h>
1919

20-
2120
MODULE_LICENSE("Dual MIT/GPL");
2221
MODULE_AUTHOR("National Cheng Kung University, Taiwan");
2322
MODULE_DESCRIPTION("virtual cfg80211 driver");
@@ -3173,7 +3172,7 @@ static int vwifi_virtio_init_vqs(struct virtio_device *vdev)
31733172
for (int i = 0; i < VWIFI_NUM_VQS; i++) {
31743173
vqs_info[i].callback = callbacks[i];
31753174
vqs_info[i].name = names[i];
3176-
vqs_info[i].ctx = NULL;
3175+
vqs_info[i].ctx = false;
31773176
}
31783177

31793178
return virtio_find_vqs(vdev, VWIFI_NUM_VQS, vwifi_vqs, vqs_info, NULL);

0 commit comments

Comments
 (0)