Changeset 85701 in vbox
- Timestamp:
- Aug 11, 2020 5:46:17 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 139841
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/linux/version.h
r85698 r85701 52 52 && LINUX_VERSION_CODE < KERNEL_VERSION(a_MajorMax, a_MinorMax, a_PatchMax) ) 53 53 54 55 /** @def VBOX_RHEL_MAJ_PREREQ 56 * Require a minimum minor release number for the given RedHat release. 57 * @param a_iMajor RHEL_MAJOR must _equal_ this. 58 * @param a_iMinor RHEL_MINOR must be greater or equal to this. 59 */ 60 #if defined(RHEL_MAJOR) && defined(RHEL_MINOR) 61 # define VBOX_RHEL_MAJ_PREREQ(a_iMajor, a_iMinor) ((RHEL_MAJOR) == (a_iMajor) && (RHEL_MINOR) >= (a_iMinor)) 62 #else 63 # define VBOX_RHEL_MAJ_PREREQ(a_iMajor, a_iMinor) (0) 64 #endif 65 66 /** @def RTLNX_SUSE_MAJ_PREREQ 67 * Require a minimum minor release number for the given SUSE release. 68 * @param a_iMajor CONFIG_SUSE_VERSION must _equal_ this. 69 * @param a_iMinor CONFIG_SUSE_PATCHLEVEL must be greater or equal to this. 70 */ 71 #if defined(CONFIG_SUSE_VERSION) && defined(CONFIG_SUSE_PATCHLEVEL) 72 # define RTLNX_SUSE_MAJ_PREREQ(a_iMajor, a_iMinor) ((CONFIG_SUSE_VERSION) == (a_iMajor) && (CONFIG_SUSE_PATCHLEVEL) >= (a_iMinor)) 73 #else 74 # define RTLNX_SUSE_MAJ_PREREQ(a_iMajor, a_iMinor) (0) 75 #endif 76 77 54 78 #endif /* !IPRT_INCLUDED_linux_version_h */ 55 79 -
trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c
r85698 r85701 206 206 * GRO support was backported to RHEL 5.4 207 207 */ 208 #ifdef RHEL_RELEASE_CODE 209 # if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(5, 4) 210 # define VBOXNETFLT_WITH_GRO 1 211 # endif 212 #endif 213 214 #if defined(CONFIG_SUSE_VERSION) 215 # if CONFIG_SUSE_VERSION == 15 && CONFIG_SUSE_PATCHLEVEL == 2 216 # define OPENSUSE_152 217 # endif 208 #if RTLNX_RHEL_MAJ_PREREQ(5, 4) 209 # define VBOXNETFLT_WITH_GRO 1 218 210 #endif 219 211 … … 929 921 { 930 922 skb_frag_t *pFrag = &skb_shinfo(pBuf)->frags[i]; 931 # if RTLNX_VER_MIN(5,4,0) || defined(OPENSUSE_152)923 # if RTLNX_VER_MIN(5,4,0) || RTLNX_SUSE_MAJ_PREREQ(15, 2) 932 924 pSG->aSegs[iSeg].cb = pFrag->bv_len; 933 925 pSG->aSegs[iSeg].pv = VBOX_SKB_KMAP_FRAG(pFrag) + pFrag->bv_offset; … … 950 942 { 951 943 skb_frag_t *pFrag = &skb_shinfo(pFragBuf)->frags[i]; 952 # if RTLNX_VER_MIN(5,4,0) || defined(OPENSUSE_152)944 # if RTLNX_VER_MIN(5,4,0) || RTLNX_SUSE_MAJ_PREREQ(15, 2) 953 945 pSG->aSegs[iSeg].cb = pFrag->bv_len; 954 946 pSG->aSegs[iSeg].pv = VBOX_SKB_KMAP_FRAG(pFrag) + pFrag->bv_offset; -
trunk/src/VBox/Runtime/r0drv/linux/waitqueue-r0drv-linux.h
r85698 r85701 49 49 { 50 50 /** The wait queue entry. */ 51 #if LINUX_VERSION_CODE > KERNEL_VERSION(4, 13, 0) \ 52 || defined(CONFIG_SUSE_VERSION) && CONFIG_SUSE_VERSION == 12 && CONFIG_SUSE_PATCHLEVEL >= 4 \ 53 || defined(CONFIG_SUSE_VERSION) && CONFIG_SUSE_VERSION == 15 51 #if RTLNX_VER_MIN(4,13,0) || RTLNX_SUSE_MAJ_PREREQ(12, 4) || RTLNX_SUSE_MAJ_PREREQ(15, 0) 54 52 wait_queue_entry_t WaitQE; 55 53 #else
Note:
See TracChangeset
for help on using the changeset viewer.