| 1 | Index: src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c
|
|---|
| 2 | ===================================================================
|
|---|
| 3 | --- src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c (revision 139654)
|
|---|
| 4 | +++ src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c (working copy)
|
|---|
| 5 | @@ -211,6 +211,11 @@
|
|---|
| 6 | # endif
|
|---|
| 7 | #endif
|
|---|
| 8 |
|
|---|
| 9 | +#if defined(CONFIG_SUSE_VERSION)
|
|---|
| 10 | +# if CONFIG_SUSE_VERSION == 15 && CONFIG_SUSE_PATCHLEVEL == 2
|
|---|
| 11 | +# define OPENSUSE_152
|
|---|
| 12 | +# endif
|
|---|
| 13 | +#endif
|
|---|
| 14 |
|
|---|
| 15 | /*********************************************************************************************************************************
|
|---|
| 16 | * Internal Functions *
|
|---|
| 17 | @@ -924,7 +929,7 @@
|
|---|
| 18 | for (i = 0; i < skb_shinfo(pBuf)->nr_frags; i++)
|
|---|
| 19 | {
|
|---|
| 20 | skb_frag_t *pFrag = &skb_shinfo(pBuf)->frags[i];
|
|---|
| 21 | -# if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 0)
|
|---|
| 22 | +# if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 0) || defined(OPENSUSE_152)
|
|---|
| 23 | pSG->aSegs[iSeg].cb = pFrag->bv_len;
|
|---|
| 24 | pSG->aSegs[iSeg].pv = VBOX_SKB_KMAP_FRAG(pFrag) + pFrag->bv_offset;
|
|---|
| 25 | # else /* < KERNEL_VERSION(5, 4, 0) */
|
|---|
| 26 | @@ -945,7 +950,7 @@
|
|---|
| 27 | for (i = 0; i < skb_shinfo(pFragBuf)->nr_frags; i++)
|
|---|
| 28 | {
|
|---|
| 29 | skb_frag_t *pFrag = &skb_shinfo(pFragBuf)->frags[i];
|
|---|
| 30 | -# if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 0)
|
|---|
| 31 | +# if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 0) || defined(OPENSUSE_152)
|
|---|
| 32 | pSG->aSegs[iSeg].cb = pFrag->bv_len;
|
|---|
| 33 | pSG->aSegs[iSeg].pv = VBOX_SKB_KMAP_FRAG(pFrag) + pFrag->bv_offset;
|
|---|
| 34 | # else /* < KERNEL_VERSION(5, 4, 0) */
|
|---|