• Paolo Abeni's avatar
    veth: refine napi usage · 47e550e0
    Paolo Abeni authored
    After the previous patch, when enabling GRO, locally generated
    TCP traffic experiences some measurable overhead, as it traverses
    the GRO engine without any chance of aggregation.
    
    This change refine the NAPI receive path admission test, to avoid
    unnecessary GRO overhead in most scenarios, when GRO is enabled
    on a veth peer.
    
    Only skbs that are eligible for aggregation enter the GRO layer,
    the others will go through the traditional receive path.
    Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    47e550e0
veth.c 38 KB