VirtualBox

Changeset 75599 in vbox


Ignore:
Timestamp:
Nov 19, 2018 8:39:52 PM (6 years ago)
Author:
vboxsync
Message:

HostDrivers: fix some warnings on old Linux kernels and add missing functions in VBoxNetFlt.

Location:
trunk/src/VBox/HostDrivers
Files:
3 edited

Legend:

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

    r69500 r75599  
    127127};
    128128
     129# if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 19)
    129130static const struct ethtool_ops gEthToolOpsVBoxNetAdp =
     131# else
     132static struct ethtool_ops gEthToolOpsVBoxNetAdp =
     133# endif
    130134{
    131135    .get_drvinfo        = vboxNetAdpEthGetDrvinfo,
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c

    r73097 r75599  
    689689    struct sk_buff *pPkt;
    690690    struct net_device *pDev;
     691#if defined(VBOXNETFLT_WITH_GSO_XMIT_WIRE) || defined(VBOXNETFLT_WITH_GSO_XMIT_HOST)
    691692    unsigned fGsoType = 0;
     693#endif
    692694
    693695    if (pSG->cbTotal == 0)
     
    17821784}
    17831785
     1786#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 18)
     1787DECLINLINE(void) netif_tx_lock_bh(struct net_device *pDev)
     1788{
     1789    spin_lock_bh(&pDev->xmit_lock);
     1790}
     1791
     1792DECLINLINE(void) netif_tx_unlock_bh(struct net_device *pDev)
     1793{
     1794    spin_unlock_bh(&pDev->xmit_lock);
     1795}
     1796#endif
     1797
    17841798/**
    17851799 * Some devices need link state change when filter attaches/detaches
  • trunk/src/VBox/HostDrivers/VBoxPci/linux/VBoxPci-linux.c

    r75576 r75599  
    448448        int                iCmdLen;
    449449        const int          cMaxBuf = 128;
     450#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29)
    450451        const struct cred *pOldCreds;
    451452        struct cred       *pNewCreds;
     453#endif
    452454
    453455        /*
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