summarylogtreecommitdiffstats
path: root/vmnet.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vmnet.patch')
-rw-r--r--vmnet.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/vmnet.patch b/vmnet.patch
index 04f8080b22d3..b8886fe6c4bd 100644
--- a/vmnet.patch
+++ b/vmnet.patch
@@ -580,3 +580,22 @@ index 5f41269d..cb25e3b8 100644
/*
*----------------------------------------------------------------------
+Patch for Linux 6.9 from https://github.com/mkubecek/vmware-host-modules/issues/239
+--- a/vmnet-only/vmnetInt.h
++++ b/vmnet-only/vmnetInt.h
+@@ -41,8 +41,13 @@
+ compat_skb_set_network_header(skb, sizeof (struct ethhdr)), \
+ dev_queue_xmit(skb) \
+ )
+-#define dev_lock_list() read_lock(&dev_base_lock)
+-#define dev_unlock_list() read_unlock(&dev_base_lock)
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 9, 0)
++# define dev_lock_list() rcu_read_lock()
++# define dev_unlock_list() rcu_read_unlock()
++#else
++# define dev_lock_list() read_lock(&dev_base_lock)
++# define dev_unlock_list() read_unlock(&dev_base_lock)
++#endif
+
+
+ extern struct proto vmnet_proto;