• Willem de Bruijn's avatar
    udp: better wmem accounting on gso · ad405857
    Willem de Bruijn authored
    skb_segment by default transfers allocated wmem from the gso skb
    to the tail of the segment list. This underreports real truesize
    of the list, especially if the tail might be dropped.
    
    Similar to tcp_gso_segment, update wmem_alloc with the aggregate
    list truesize and make each segment responsible for its own
    share by setting skb->destructor.
    
    Clear gso_skb->destructor prior to calling skb_segment to skip
    the default assignment to tail.
    Signed-off-by: default avatarWillem de Bruijn <willemb@google.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    ad405857
udp_offload.c 11.8 KB