VirtualBox

Ignore:
Timestamp:
Nov 19, 2018 8:39:52 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
126767
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
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