[ewg] Re: [ofa-general] [PATCH v4] libibmad: Handle MAD redirection

Sasha Khapyorsky sashak at voltaire.com
Mon Jul 20 06:29:59 PDT 2009


On 16:20 Tue 07 Jul     , Joachim Fenkes wrote:
> Previously, libibmad reacted to GSI MAD responses with a "redirect" status
> by throwing an error. IBM eHCA adapters use redirection, so most
> infiniband_diags tools didn't work against eHCA.
> 
> Fix: Modify mad_rpc() so that it resends the request to the redirection
> target if a "redirect" GS response is received. This is repeated until no
> "redirect" response is received, allowing for multiple levels of
> indirection.
> 
> The dport argument is updated with the redirection target, so subsequent
> MADs will not go through the redirection process again but reach the target
> directly.
> 
> Tested using perfquery between ehca, mlx4 and mthca in all possible
> combinations.
> 
> Signed-off-by: Joachim Fenkes <fenkes at de.ibm.com>

Applied. Thanks.

Sasha



More information about the ewg mailing list