Kernel 3.17-rc3 – Breaks VMNET – and a Fix..

Just tested Kernel 3.17-rc3, and it breaks VMware (10.0.3) – vmnet:

................
/tmp/modconfig-d0zqLW/vmnet-only/netif.c: In function ‘VNetNetIf_Create’:
/tmp/modconfig-d0zqLW/vmnet-only/netif.c:152:64: error: macro "alloc_netdev" requires 4 arguments, but only 3 given
    dev = alloc_netdev(sizeof *netIf, deviceName, VNetNetIfSetup);
                                                                ^
/tmp/modconfig-d0zqLW/vmnet-only/netif.c:152:10: error: ‘alloc_netdev’ undeclared (first use in this function)
    dev = alloc_netdev(sizeof *netIf, deviceName, VNetNetIfSetup);
...............

Thanks to Erwin Zoer (see his comment below the earlier post for 3.17-rc1..), there is a fix available – for ~/vmware-only/netif.c

For kernel 3.17-rc3 and later, change line 152 from

dev = alloc_netdev(sizeof *netIf, deviceName, VNetNetIfSetup);
to 
dev = alloc_netdev(sizeof *netIf, deviceName, NET_NAME_UNKNOWN, VNetNetIfSetup);

Then re-TAR etc.. and re-run the VMware compile/install:

# vmware-modconfig --console --install-all

I have applied this on my test system, and it works OK..

Robert Gadsdon. September 3, 2014.


Comments

Kernel 3.17-rc3 – Breaks VMNET – and a Fix.. — 4 Comments

  1. Same patch applies for VirtualBox rpm on fedora 20 in file /usr/share/virtualbox/src/vboxhost/vboxnetadp/linux/VBoxNetAdp-linux.c
    Thanks !

Leave a Reply

Your email address will not be published. Required fields are marked *