Re: [PATCH] opensm/mcast_tbl: set max_mlid_ho as actually configured mlid

Hal Rosenstock
2009-11-02T16:44:51Z

On Mon, Nov 2, 2009 at 12:43 PM, Sasha Khapyorsky <sashak-smomgflXvOZWk0Htik3J/w@public.gmane.org> wrote:
> On 12:18 Mon 02 Nov     , Hal Rosenstock wrote:
>> >
>> > Yet another (likely even more efficient) approach would be memset()ing
>> > MFTs in realloc function above requested mlid_offset, then we will be
>> > able to remove osm_mcast_tbl_clear_mlid() completely.
>>
>> Isn't mlid clearing done on a per mlid basis rather than based on
>> above some mlid (offset) ? Also and perhaps more significantly, an
>> mlid can be removed in the middle of a range of mlids. So I don't see
>> how clear_mlid can be removed.
>
> Yes, correct, we cannot remove clear_mlid completely.

clear_mlid could be implemented with memset rather than loop. Is that
worthwhile ?

-- Hal

>
> Sasha