[ofa-general] Re: [PATCH ofed-1.2] ehca (kernel space): return proper error code if register_mr fails

Vladimir Sokolovsky vlad at mellanox.co.il
Wed May 16 07:33:14 PDT 2007


On Wed, 2007-05-16 at 15:05 +0200, Hoang-Nam Nguyen wrote:
> Hello Tziporet!
> Please accept below patch for ofed-1.2, because it fixes a mr resources
> limitation problem reported by Troy and Kyle on this mailing list. Only
> with this patch their application is able to release no longer used mrs
> properly.
> Thanks!
> Regards
> Nam
> 
> 
> 
> This patch sets the return code of ehca_register_mr() to ENOMEM
> if corresponding firmware call fails due to out of resources.
> Some of error codes were mapped to EINVAL. They are now mapped
> to default case, which already returns EINVAL anyway.
> 
> 
> Signed-off-by: Hoang-Nam Nguyen <hnguyen at de.ibm.com>

Added: kernel_patches/fixes/ehca_8_fix_mr_resources_limitation.patch


-- 
Vladimir Sokolovsky <vlad at mellanox.co.il>
Mellanox Technologies Ltd.



More information about the general mailing list