• Xin Long's avatar
    sctp: improve the code for pmtu probe send and recv update · 058e6e0e
    Xin Long authored
    This patch does 3 things:
    
      - make sctp_transport_pl_send() and sctp_transport_pl_recv()
        return bool type to decide if more probe is needed to send.
    
      - pr_debug() only when probe is really needed to send.
    
      - count pl.raise_count in sctp_transport_pl_send() instead of
        sctp_transport_pl_recv(), and it's only incremented for the
        1st probe for the same size.
    
    These are preparations for the next patch to make probes happen
    only when there's packet loss in Search Complete state.
    Signed-off-by: default avatarXin Long <lucien.xin@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    058e6e0e
sm_statefuns.c 208 KB