VirtualBox

Changeset 58845 in vbox for trunk/src/VBox/HostDrivers


Ignore:
Timestamp:
Nov 25, 2015 9:29:56 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
104319
Message:

Linux hosts/guests: fix for EL7.2 Linux kernel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c

    r58656 r58845  
    6868
    6969
    70 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 20, 0)
    71 # define vlan_tx_tag_get(skb)       skb_vlan_tag_get(skb)
    72 # define vlan_tx_tag_present(skb)   skb_vlan_tag_present(skb)
    73 #endif
    74 
    75 
    7670/*********************************************************************************************************************************
    7771*   Defined Constants And Macros                                                                                                 *
     
    129123#endif
    130124
     125#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 20, 0)
     126# define VBOX_HAVE_SKB_VLAN
     127#else
     128# ifdef RHEL_RELEASE_CODE
     129#  if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(7, 2)
     130#   define VBOX_HAVE_SKB_VLAN
     131#  endif
     132# endif
     133#endif
     134
     135#ifdef VBOX_HAVE_SKB_VLAN
     136# define vlan_tx_tag_get(skb)       skb_vlan_tag_get(skb)
     137# define vlan_tx_tag_present(skb)   skb_vlan_tag_present(skb)
     138#endif
     139
    131140#ifndef NET_IP_ALIGN
    132141# define NET_IP_ALIGN 2
     
    140149
    141150#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 18)
     151
    142152/** Indicates that the linux kernel may send us GSO frames. */
    143153# define VBOXNETFLT_WITH_GSO                1
     
    157167# define VBOXNETFLT_WITH_GSO_RECV           1
    158168
    159 #endif
     169#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 18) */
    160170
    161171#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29)
     
    163173# define VBOXNETFLT_WITH_GRO                1
    164174#endif
     175
    165176/*
    166177 * GRO support was backported to RHEL 5.4
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette