• E
    net: add __sock_wfree() helper · 1d2077ac
    Eric Dumazet 提交于
    Hosts sending lot of ACK packets exhibit high sock_wfree() cost
    because of cache line miss to test SOCK_USE_WRITE_QUEUE
    
    We could move this flag close to sk_wmem_alloc but it is better
    to perform the atomic_sub_and_test() on a clean cache line,
    as it avoid one extra bus transaction.
    
    skb_orphan_partial() can also have a fast track for packets that either
    are TCP acks, or already went through another skb_orphan_partial()
    Signed-off-by: NEric Dumazet <edumazet@google.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    1d2077ac
tcp_output.c 102.3 KB