• Jon Grimm's avatar
    [SCTP] Shorten SACK generation path. · 5cab1102
    Jon Grimm authored
    1) Remove sctp_tsnmap_update_pending from the SACK path.  The
    pending_data variable is only used by a socket option, so just
    calculate it when needed rather than the I/O path.
    2) Instead of walking the tsnmap twice, change the interface to
    allow walking once.
    3) Only report a fixed number of gabs and reserve this room in the 
    association, saving us a kmalloc every sack generation.
    TBD: Still need to kick out of tanmap walking early if we get to
    max_tsn_seen.   
    5cab1102
tsnmap.c 10.1 KB