• Jakub Kicinski's avatar
    nfp: remove cpp mutex cache · 832ff948
    Jakub Kicinski authored
    CPP mutex cache was introduced to work around the fact that the
    same host could successfully acquire a lock multiple times.  It
    used to collapse multiple users to the same struct nfp_cpp_mutex
    and track use count.  Unfortunately it's racy.  Since we now force
    all nfp_mutex_lock() callers within the host to actually succeed
    at acquiring the lock we no longer need the cache, let's remove it.
    Signed-off-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    832ff948
nfp_cppcore.c 39.9 KB