• Paolo Abeni's avatar
    udp: do rmem bulk free even if the rx sk queue is empty · 0d4a6608
    Paolo Abeni authored
    The commit 6b229cf7
     ("udp: add batching to udp_rmem_release()")
    reduced greatly the cacheline contention between the BH and the US
    reader batching the rmem updates in most scenarios.
    Such optimization is explicitly avoided if the US reader is faster
    then BH processing.
    My fault, I initially suggested this kind of behavior due to concerns
    of possible regressions with small sk_rcvbuf values. Tests showed
    such concerns are misplaced, so this commit relaxes the condition
    for rmem bulk updates, obtaining small but measurable performance
    gain in the scenario described above.
    Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>