1
0
forked from pool/virtualbox
virtualbox/fixes_for_kernel_5.18.patch
Larry Finger aa9cd92c07 Accepting request 965783 from home:lwfinger:branches:Virtualization
- Update fixes for kernel 5.17.
  Add fixes for kernel 5.18 - file "fixes_for_kernel_5.18.patch" added

- Fix build error for guest modules in Leap 15.3

OBS-URL: https://build.opensuse.org/request/show/965783
OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=628
2022-03-30 01:06:55 +00:00

19 lines
958 B
Diff

Index: VirtualBox-6.1.32/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c
===================================================================
--- VirtualBox-6.1.32.orig/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c
+++ VirtualBox-6.1.32/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c
@@ -2314,8 +2314,13 @@ int vboxNetFltPortOsXmit(PVBOXNETFLTINS
{
vboxNetFltDumpPacket(pSG, true, "host", (fDst & INTNETTRUNKDIR_WIRE) ? 0 : 1);
Log6(("vboxNetFltPortOsXmit: pBuf->cb dump:\n%.*Rhxd\n", sizeof(pBuf->cb), pBuf->cb));
+# if RTLNX_VER_MAX(5, 18, 0)
Log6(("vboxNetFltPortOsXmit: netif_rx_ni(%p)\n", pBuf));
err = netif_rx_ni(pBuf);
+#else
+ Log6(("vboxNetFltPortOsXmit: netif_rx(%p)\n", pBuf));
+ err = netif_rx(pBuf);
+#endif
if (err)
rc = RTErrConvertFromErrno(err);
}