• Lijun Ou's avatar
    RDMA/hns: Bugfix for filling the sge of srq · 4f18904c
    Lijun Ou authored
    When user post recv a srq with multiple sges, the hardware will get the
    last correct sge and count the sge numbers according to the specific
    identifier with lkey. For example, when the driver fills the sges with
    every wr less than the max sge that the user configured when creating srq,
    the hardware will stop getting the sge according to the specific lkey in
    the sge. However, it will always end with the first sge in the current
    post srq recv interface implementation.
    
    Fixes: c7bcb134 ("RDMA/hns: Add SRQ support for hip08 kernel mode")
    Signed-off-by: default avatarLijun Ou <oulijun@huawei.com>
    Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
    4f18904c
hns_roce_hw_v2.c 190 KB