VirtualBox

Ignore:
Timestamp:
Jan 15, 2009 9:22:17 PM (16 years ago)
Author:
vboxsync
Message:

I got positive report from Lubomir who was running this patch. It seems to fix the second issue in tracker/2885

File:
1 edited

Legend:

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

    r15894 r15979  
    478478    }
    479479
     480#ifndef VBOXNETFLT_SG_SUPPORT
     481    {
     482        /*
     483         * Get rid of fragmented packets, they cause too much trouble.
     484         */
     485        struct sk_buff *pCopy = skb_copy(pBuf, GFP_ATOMIC);
     486        kfree_skb(pBuf);
     487        if (!pCopy)
     488        {
     489            LogRel(("VBoxNetFlt: Failed to allocate packet buffer, dropping the packet.\n"));
     490            return 0;
     491        }
     492        pBuf = pCopy;
     493    }
     494#endif
     495
    480496    /* Add the packet to transmit queue and schedule the bottom half. */
    481497    skb_queue_tail(&pThis->u.s.XmitQueue, pBuf);
     
    552568{
    553569    uint32_t fSrc = pBuf->pkt_type == PACKET_OUTGOING ? INTNETTRUNKDIR_HOST : INTNETTRUNKDIR_WIRE;
    554 
    555 #ifndef VBOXNETFLT_SG_SUPPORT
    556     /*
    557      * Get rid of fragmented packets, they cause too much trouble.
    558      */
    559     struct sk_buff *pCopy = skb_copy(pBuf, GFP_KERNEL);
    560     kfree_skb(pBuf);
    561     if (!pCopy)
    562     {
    563         LogRel(("VBoxNetFlt: Failed to allocate packet buffer, dropping the packet.\n"));
    564         return;
    565     }
    566     pBuf = pCopy;
    567 #endif
    568570
    569571    if (VBOX_SKB_IS_GSO(pBuf))
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