[openib-general] [PATCH] cm: fix for service_id/service_mask hole

Sean Hefty mshefty at ichips.intel.com
Tue Jun 28 09:38:02 PDT 2005


Jordan, Bill wrote:
> Sean,
> 
> Here is a to fix a bug in service_id/service_mask
> handling in CM.
> 
> Previously, if you tried to listen on service_id:
> service_mask of 0x00:0x0F, followed by a listen
> on 0xF0:0xF0, the second listen would fail because
> the two ranges overlap (0xF0 appears in both ranges).
> But, if you tried the listens in the reverse order,
> both would succeed leading to an ambigious listen.
> 
> This patch forces both service_ids in the compare to be
> masked against both mask values first.

Thanks - committed.

- Sean



More information about the general mailing list