VirtualBox

Changeset 94967 in vbox


Ignore:
Timestamp:
May 9, 2022 4:58:18 PM (3 years ago)
Author:
vboxsync
Message:

HostDrivers/{VBoxNetAdp,VBoxNetFlt}: Advertise TSO support to increase performance, bugref:9723

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

Legend:

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

    r93421 r94967  
    283283#endif /* RTLNX_VER_MAX(2,6,29) */
    284284#if RTLNX_VER_MIN(4,10,0)
    285     pNetDev->max_mtu = 16110;
     285    pNetDev->max_mtu = 65536;
     286    pNetDev->features =   NETIF_F_TSO
     287                        | NETIF_F_TSO6
     288                        | NETIF_F_TSO_ECN
     289                        | NETIF_F_SG
     290                        | NETIF_F_HW_CSUM;
    286291#endif /* RTLNX_VER_MIN(4,10,0) */
    287292
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c

    r94501 r94967  
    15321532              skb_shinfo(pBuf)->gso_segs, skb_shinfo(pBuf)->gso_type,
    15331533              skb_shinfo(pBuf)->frag_list, pBuf->pkt_type, pBuf->ip_summed));
    1534 #ifndef VBOXNETFLT_SG_SUPPORT
     1534
    15351535        if (RT_LIKELY(fSrc & INTNETTRUNKDIR_HOST))
    15361536        {
     
    15461546# endif
    15471547        }
    1548 #endif /* !VBOXNETFLT_SG_SUPPORT */
     1548
    15491549# ifdef VBOXNETFLT_WITH_GSO_RECV
    15501550        if (   (skb_shinfo(pBuf)->gso_type & (SKB_GSO_TCPV6 | SKB_GSO_TCPV4))
     
    16991699static void vboxNetFltLinuxReportNicGsoCapabilities(PVBOXNETFLTINS pThis)
    17001700{
    1701 #ifdef VBOXNETFLT_WITH_GSO_XMIT_WIRE
     1701#if defined(VBOXNETFLT_WITH_GSO_XMIT_WIRE) || defined(VBOXNETFLT_WITH_GSO_XMIT_HOST)
    17021702    if (vboxNetFltTryRetainBusyNotDisconnected(pThis))
    17031703    {
     
    17331733        vboxNetFltRelease(pThis, true /*fBusy*/);
    17341734    }
    1735 #endif /* VBOXNETFLT_WITH_GSO_XMIT_WIRE */
     1735#endif /* VBOXNETFLT_WITH_GSO_XMIT_WIRE || VBOXNETFLT_WITH_GSO_XMIT_HOST */
    17361736}
    17371737
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