• X
    sctp: improve the code for pmtu probe send and recv update · 058e6e0e
    Xin Long 提交于
    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: NXin Long <lucien.xin@gmail.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    058e6e0e
transport.c 25.6 KB