Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update vmnetInt.h #297

Open
wants to merge 1 commit into
base: workstation-17.5.1
Choose a base branch
from

Conversation

sudo-arash
Copy link

Hi

Based on this issue #295, you can fix the problem with 'dev_base_lock' undeclared by just changing these 2 lines.

Please fix your code.

Thanks to @l0veormiss

@@ -41,8 +41,8 @@
compat_skb_set_network_header(skb, sizeof (struct ethhdr)), \
dev_queue_xmit(skb) \
)
#define dev_lock_list() read_lock(&dev_base_lock)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does change work for all Kernel versions or should it depend on a particular version?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it changes most of them.

@PavelBlinnikov
Copy link

For me it says now implicit declaration of function ‘dev_lock_list’; did you mean ‘read_lock_list’

@sudo-arash
Copy link
Author

For me it says now implicit declaration of function ‘dev_lock_list’; did you mean ‘read_lock_list’

It works fine for me. Mine is Linux.

@Spanni26
Copy link

Here on openSUSE Tumbleweed with 6.11.5, it compiles. But when loading vmnet, the module is loaded (listet with lsmod) but there is no log message on dmesg nor on journalctl. The network interface is also not usable in the vm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants