Hi!
Linux 4.7-rc1 came out yesterday, and here's a new build failure:
netdev->trans_start has been moved to the transmit queue.

Here's a patch.  It uses a compat interface meant for "legacy drivers only",
but as its used in so many places in the kernel, I guess you'll have plenty
of time to migrate to the newest and greatest way.

Only lightly tested: the module builds, doesn't explode and basic networking
in guests seems to work.

Tested on 5.0.20 as shipped by Debian.

An one-liner (+#ifdefs) is usually not considered copyrightable; in case you
think it is, I contribute it as MIT.


Meow!
-- 
An imaginary friend squared is a real enemy.
--- virtualbox-5.0.20/vboxnetadp/linux/VBoxNetAdp-linux.c~	2016-04-28 15:14:24.000000000 +0200
+++ virtualbox-5.0.20/vboxnetadp/linux/VBoxNetAdp-linux.c	2016-05-30 11:07:38.806490593 +0200
@@ -153,7 +153,11 @@
     pPriv->Stats.tx_packets++;
     pPriv->Stats.tx_bytes += pSkb->len;
     /* Update transmission time stamp. */
+# if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 7, 0)
+    netif_trans_update(pNetDev);
+# else
     pNetDev->trans_start = jiffies;
+# endif
     /* Nothing else to do, just free the sk_buff. */
     dev_kfree_skb(pSkb);
     return 0;
_______________________________________________
vbox-dev mailing list
vbox-dev@virtualbox.org
https://www.virtualbox.org/mailman/listinfo/vbox-dev

Reply via email to