VirtualBox

Ignore:
Timestamp:
Jul 9, 2010 5:26:55 PM (14 years ago)
Author:
vboxsync
Message:

vboxnetflt: RHEL 5 GRO fix

File:
1 edited

Legend:

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

    r30732 r30771  
    122122#endif
    123123
     124#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29)
     125/** This enables or disables handling of GSO frames coming from the wire (GRO). */
     126# define VBOXNETFLT_WITH_GRO                1
     127#endif
     128/*
     129 * GRO support was backported to RHEL 5.4
     130 */
     131#ifdef RHEL_RELEASE_CODE
     132# if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(5, 4)
     133#  define VBOXNETFLT_WITH_GRO               1
     134# endif
     135#endif
    124136
    125137/*******************************************************************************
     
    14251437    {
    14261438        Log5(("vboxNetFltLinuxCanForwardAsGso: fSrc=wire\n"));
    1427 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29)
     1439#ifdef VBOXNETFLT_WITH_GRO
    14281440        /*
    14291441         * The packet came from the wire and the driver has already consumed
     
    14341446        Log5(("vboxNetFltLinuxCanForwardAsGso: mac_len=%d data=%p mac_header=%p network_header=%p\n",
    14351447              pSkb->mac_len, pSkb->data, skb_mac_header(pSkb), skb_network_header(pSkb)));
    1436 #else /* LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 29) */
     1448#else /* !VBOXNETFLT_WITH_GRO */
    14371449        /* Older kernels didn't have GRO. */
    14381450        return false;
    1439 #endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 29) */
     1451#endif /* !VBOXNETFLT_WITH_GRO */
    14401452    }
    14411453    else
Note: See TracChangeset for help on using the changeset viewer.

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