• Eli Cohen's avatar
    IB/core: Fix false search of the IB_SA_WELL_KNOWN_GUID · b3556005
    Eli Cohen authored
    When virtualziation is supported, VFs may send SA MADs to a GID formed
    by the concatenation of the subnet prefix with the
    IB_SA_WELL_KNOWN_GUID. When a response is required, the current code
    will search the local HCA's port for the received GID to figure out the
    GID index of the entry containing this GID. However, since this is not a
    real GID it will not be found and error will be printed.
    
    We change the logic to check if the destination GID is this special GID
    and avoid lookup in this case and use GID index 0.
    
    Fixes: a0c1b2a3 ('IB/core: Support accessing SA in virtualized environment')
    Signed-off-by: default avatarEli Cohen <eli@mellanox.com>
    Signed-off-by: default avatarLeon Romanovsky <leon@kernel.org>
    Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
    b3556005
verbs.c 48.3 KB