• D. Wythe's avatar
    net/smc: Limit SMC visits when handshake workqueue congested · 48b6190a
    D. Wythe authored
    This patch intends to provide a mechanism to put constraint on SMC
    connections visit according to the pressure of SMC handshake process.
    At present, frequent visits will cause the incoming connections to be
    backlogged in SMC handshake queue, raise the connections established
    time. Which is quite unacceptable for those applications who base on
    short lived connections.
    
    There are two ways to implement this mechanism:
    
    1. Put limitation after TCP established.
    2. Put limitation before TCP established.
    
    In the first way, we need to wait and receive CLC messages that the
    client will potentially send, and then actively reply with a decline
    message, in a sense, which is also a sort of SMC handshake, affect the
    connections established time on its way.
    
    In the second way, the only problem is that we need to inject SMC logic
    into TCP when it is about to reply the incoming SYN, since we already do
    that, it's seems not a problem anymore. And advantage is obvious, few
    additional processes are required to complete the constraint.
    
    This patch use the second way. After this patch, connections who beyond
    constraint will not informed any SMC indication, and SMC will not be
    involved in any of its subsequent processes.
    
    Link: https://lore.kernel.org/all/1641301961-59331-1-git-send-email-alibuda@linux.alibaba.com/Signed-off-by: default avatarD. Wythe <alibuda@linux.alibaba.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    48b6190a
af_smc.c 80.8 KB