Changeset 15979 in vbox for trunk/src/VBox/HostDrivers/VBoxNetFlt
- Timestamp:
- Jan 15, 2009 9:22:17 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c
r15894 r15979 478 478 } 479 479 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 480 496 /* Add the packet to transmit queue and schedule the bottom half. */ 481 497 skb_queue_tail(&pThis->u.s.XmitQueue, pBuf); … … 552 568 { 553 569 uint32_t fSrc = pBuf->pkt_type == PACKET_OUTGOING ? INTNETTRUNKDIR_HOST : INTNETTRUNKDIR_WIRE; 554 555 #ifndef VBOXNETFLT_SG_SUPPORT556 /*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 #endif568 570 569 571 if (VBOX_SKB_IS_GSO(pBuf))
Note:
See TracChangeset
for help on using the changeset viewer.